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

Method test_next_tool_result

tests/tool_tests/test_tracing.py:223–240  ·  view source on GitHub ↗

Test getting next tool result

(self)

Source from the content-addressed store, hash-verified

221 replayer.next_llm_message(step_id="step2", iteration=0)
222
223 def test_next_tool_result(self):
224 """Test getting next tool result"""
225 events = [
226 {
227 "type": "tool_result",
228 "step_id": "step1",
229 "iteration": 0,
230 "call": 0,
231 "name": "test_tool",
232 "result": "success",
233 }
234 ]
235 replayer = TraceReplayer(events)
236
237 result = replayer.next_tool_result(
238 step_id="step1", iteration=0, call=0, name="test_tool"
239 )
240 assert result["result"] == "success"
241
242 def test_next_tool_result_mismatch(self):
243 """Test tool result mismatches raise ValueError"""

Callers

nothing calls this directly

Calls 2

next_tool_resultMethod · 0.95
TraceReplayerClass · 0.90

Tested by

no test coverage detected