Test getting next tool result
(self)
| 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""" |
nothing calls this directly
no test coverage detected