Open Agent Loops
API Reference

TrajectoryStep

@open-agent-loops/core


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

PropertyTypeDescriptionDefined in
assistant?AssistantMessageThe assistant message produced this turn (the action).observability/tracer.types.ts:161
durationMs?numberWall-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
stepnumber-observability/tracer.types.ts:159
toolsTrajectoryTool[]Tool calls requested this turn and their results (the observations).observability/tracer.types.ts:163

On this page