Skip to main content

NormalizedDecision

Defined in: types.ts:558

A single decision made by an agent during execution — agent-agnostic.

Properties

action

readonly action: string

Defined in: types.ts:560

What was decided (tool name, function call, task).


args?

readonly optional args?: Record<string, unknown>

Defined in: types.ts:566

Parameters passed to the tool/function.


durationMs?

readonly optional durationMs?: number

Defined in: types.ts:574

Time taken in milliseconds.


error?

readonly optional error?: string

Defined in: types.ts:572

Error message if failed.


index

readonly index: number

Defined in: types.ts:576

Position in the decision chain (0-indexed).


outcome

readonly outcome: "failed" | "timeout" | "ok" | "skipped"

Defined in: types.ts:568

Outcome of the decision.


output?

readonly optional output?: string

Defined in: types.ts:570

Result summary (truncated).


reasoning?

readonly optional reasoning?: string

Defined in: types.ts:562

Why the agent made this decision (thinking block, chain description).


tool?

readonly optional tool?: string

Defined in: types.ts:564

Specific tool or function used.