MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / agent

Method agent

tests/tool_tests/test_agentspex.py:1540–1551  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1538
1539 @pytest.fixture
1540 def agent(self):
1541 mock_client = Mock()
1542 mock_client.list_tools.return_value = [
1543 {"function": Mock(name="fs_read", description="Read file")},
1544 {"function": Mock(name="shell_run", description="Run shell command")},
1545 ]
1546 mock_client.make_mcp_tool_function.return_value = Mock()
1547 mock_client.process_tool_calls.return_value = ([], [])
1548 with patch("harness.agent.LLMClient"):
1549 with patch("harness.agent.MCPClient", return_value=mock_client):
1550 agent = AgentSPEX(mcp_url="http://localhost:7002/mcp")
1551 return agent
1552
1553 def test_inline_tool_calls_disabled_by_default(self, agent, mock_llm_client):
1554 """Test that inline tool calls are NOT executed when enable_inline_tool_calls is not set"""

Callers

nothing calls this directly

Calls 1

AgentSPEXClass · 0.90

Tested by

no test coverage detected