Ask a question to get started
Enter to sendā¢Shift+Enter new line
on_tool_end( self, output: Any, *, run_id: UUID, parent_run_id: Optional[UUID
output
Any
The tool result (string, dict, or Command-like).
Command
run_id
UUID
Unique identifier for this tool run.
parent_run_id
Optional[UUID]
None
Run ID of the parent chain/agent.
**kwargs
{}
Finalize a tool span with results and close it.
Records the tool output. If the output is a LangGraph Command-like object, GOTO routing metadata is also captured.
Additional LangChain callback keyword arguments.