mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-26 16:48:13 +00:00
Add tool execution result to ToolUsageFinishedEvent
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user