fix: correct AgentEvent field name for tool_result (content, not tool_result)
- SHA
dc9c4ca7513cb5d7bc7f35a5e77fa69a54e1b5b5- Parents
-
4d661fd - Tree
e832ff4
dc9c4ca
dc9c4ca7513cb5d7bc7f35a5e77fa69a54e1b5b54d661fd
e832ff4| Status | File | + | - |
|---|---|---|---|
| M |
src/loader/agent/loop.py
|
2 | 1 |
src/loader/agent/loop.pymodified@@ -1053,8 +1053,9 @@ class Agent: | ||
| 1053 | 1053 | |
| 1054 | 1054 | await emit(AgentEvent( |
| 1055 | 1055 | type="tool_result", |
| 1056 | + content=result_text, | |
| 1056 | 1057 | tool_name=tc.name, |
| 1057 | - tool_result=result_text, | |
| 1058 | + is_error="Error:" in result_text, | |
| 1058 | 1059 | )) |
| 1059 | 1060 | |
| 1060 | 1061 | self.messages.append(Message( |