API Reference
TrajectoryStep
Defined in: observability/tracer.types.ts:158
One turn of the agent's trajectory: the model's action paired with the
observations it produced. assistant is the action (text and/or tool calls);
tools are the observations (each call's result).
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
assistant? | AssistantMessage | The assistant message produced this turn (the action). | observability/tracer.types.ts:161 |
durationMs? | number | Wall-clock ms from this turn's turn_start to the next turn / end. | observability/tracer.types.ts:171 |
injected? | InjectedTurn[] | Caller-injected turns (steering / follow-up) that arrived after this turn's action — recorded here so a redirect is visible in the folded trajectory, not only in the raw timeline. See InjectedTurn. | observability/tracer.types.ts:169 |
step | number | - | observability/tracer.types.ts:159 |
tools | TrajectoryTool[] | Tool calls requested this turn and their results (the observations). | observability/tracer.types.ts:163 |