| Name | Type | Description |
|---|---|---|
outputs* | dict[str, Any] | The chain/agent output dictionary. May contain messages
under the keys configured via message_keys / message_paths,
or be a LangGraph |
run_id* | UUID | Unique identifier for this run (matches |
parent_run_id | Optional[UUID] | Default: None |
**kwargs | Any | Default: {} |
Handle completion of a chain/agent invocation.
Closes the invoke_agent span started by :meth:on_chain_start,
records output messages and GOTO routing metadata, propagates
accumulated token usage to parent agent spans, and emits the final
StatusCode.OK.
Run ID of the parent chain, if any.
Additional LangChain callback keyword arguments.