Skip to content

[codex] Include tool_call_id on tool start events#37445

Draft
Mukunda Rao Katta (MukundaKatta) wants to merge 1 commit into
langchain-ai:masterfrom
MukundaKatta:codex/langchain-tool-start-call-id
Draft

[codex] Include tool_call_id on tool start events#37445
Mukunda Rao Katta (MukundaKatta) wants to merge 1 commit into
langchain-ai:masterfrom
MukundaKatta:codex/langchain-tool-start-call-id

Conversation

@MukundaKatta
Copy link
Copy Markdown

Summary

  • Surface tool_call_id in on_tool_start stream event data
  • Add v2 event tests for provided and missing tool call ids

Fixes #37426.

Tests

  • Attempted: python3 -m pytest libs/core/tests/unit_tests/runnables/test_runnable_events_v2.py -q -k 'tool_start_event or tool_error_event_includes_tool_call_id or tool_error_event_tool_call_id_is_none_when_not_provided'
  • Blocked locally because this checkout's Python environment is missing langchain_core during pytest config parsing.

@github-actions github-actions Bot added core `langchain-core` package issues & PRs size: S 50-199 LOC labels May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core `langchain-core` package issues & PRs external new-contributor size: S 50-199 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tool_call_id to on_tool_start event's data

1 participant