Files
crewAI/lib
Vinicius Brasil 58fc692b03 Expose raw tool result to after_tool_call hooks
Typed tools format their output to JSON before handing it to the agent,
so `tool_result` reaches after hooks as a string and the original Python
object is lost. Thread the unformatted result through as
`raw_tool_result` so hooks can inspect the typed value. This covers all
execution paths: native tool calls, the ReAct `ToolUsage` path, cached
results, and error/blocked branches.
2026-06-18 21:20:30 -07:00
..