Add tool execution result to ToolUsageFinishedEvent

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-03-22 00:55:25 +00:00
parent bb3829a9ed
commit 23aeaf67ba
3 changed files with 5 additions and 1 deletions

View File

@@ -358,6 +358,7 @@ def test_tools_emits_finished_events():
assert received_events[0].tool_args == {}
assert received_events[0].type == "tool_usage_finished"
assert isinstance(received_events[0].timestamp, datetime)
assert received_events[0].result == "hi" # The SayHiTool returns "hi"
@pytest.mark.vcr(filter_headers=["authorization"])