Skip to content

Commit de3b262

Browse files
Shreyanshsingh23mdrxy
authored andcommitted
docs(core): add tool_call_id to EventData schema
1 parent 580ba89 commit de3b262

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

libs/core/langchain_core/runnables/schema.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ class EventData(TypedDict, total=False):
4545
chunks support addition in general, and adding them up should result
4646
in the output of the `Runnable` that generated the event.
4747
"""
48+
tool_call_id: NotRequired[str | None]
49+
"""The tool call ID associated with the tool execution.
50+
51+
This field is only available for tool-related events (e.g., `on_tool_error`)
52+
and can be used to link errors to specific tool calls in stateless agent
53+
implementations.
54+
55+
!!! version-added "Added in version 1.0.0"
56+
"""
4857

4958

5059
class BaseStreamEvent(TypedDict):

0 commit comments

Comments
 (0)