Support Step/Event Correlation #1523
contextablemark
started this conversation in
Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
Within a single agent's run,
STEP_STARTED/FINISHEDcreates named lifecycle boundaries for workflow phases, but events emitted between those boundaries have no field linking them to the step. This means:This is a different concern from supporting concurrent/nested runs. That proposal handles inter-agent hierarchy (which agent produced this event). This proposal handles intra-agent structure (which workflow node within an agent's execution produced this event).
Community Remarks
From Discord:
Proposed Changes
Add optional
stepIdtoBaseEventand toSTEP_STARTED:Example: LangGraph Workflow with Parallel Nodes
A LangGraph agent with parallel branches — all within one run:
Example: AWS Strands Multi-Agent Node Execution
STEP_STARTED/FINISHEDwith node names, but the events between step boundaries (text, tool calls, state changes) can't be linked back to the step. This is the framework where the gap is most visible today.multiagent_node_start/stop, but events within the step float freely in the stream.maxStepsenables multi-turn tool execution. Each iteration could be a step, but tool call events within an iteration have no step link.All reactions