TrajectoryStep
type TrajectoryStep = object & | { agentId: string; arguments: Record<string, unknown>; input?: never; kind: "tool" | "code" | "delegation" | "handoff"; output?: never; result?: ToolResult; status: "pending" | "running" | "completed" | "interrupted"; turn: number; workflowId?: never;} | { action: RemoteReceipt["action"]; agentId: string; arguments?: never; attemptId: string; billing: "unknown"; input?: unknown; kind: "remote-operation"; output?: never; result?: never; status: RemoteReceipt["status"]; turn?: never; version: string; workflowId?: never;} | { agentId?: never; arguments?: never; input?: unknown; kind: StepKind; output?: unknown; result?: never; status: StepExecution["status"]; turn?: never; workflowId: string;};Defined in: agents/src/evals/types.ts:142
Type Declaration
Section titled “Type Declaration”asks: AskRecord[];attempts
Section titled “attempts”attempts: number;Admitted effects/children, excluding reconciled not-run attempts. Questions and sleeps count once.
children
Section titled “children”children: object & | { agentId: string; kind: "agent";} | { agentId: string; kind: "remote"; version: string;} | { kind: "workflow"; workflowId: string;}[];name: string;Tool name or workflow step key.
operationId
Section titled “operationId”operationId: string;parentOperationId?
Section titled “parentOperationId?”optional parentOperationId?: string;The real program operation for an inner tool, never a child run.
runId: string;