Skip to main content

NormalizedDecision

Defined in: types.ts:642

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

Properties

action

readonly action: string

Defined in: types.ts:644

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


args?

readonly optional args?: Record<string, unknown>

Defined in: types.ts:650

Parameters passed to the tool/function.


durationMs?

readonly optional durationMs?: number

Defined in: types.ts:658

Time taken in milliseconds.


error?

readonly optional error?: string

Defined in: types.ts:656

Error message if failed.


index

readonly index: number

Defined in: types.ts:660

Position in the decision chain (0-indexed).


outcome

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

Defined in: types.ts:652

Outcome of the decision.


output?

readonly optional output?: string

Defined in: types.ts:654

Result summary (truncated).


reasoning?

readonly optional reasoning?: string

Defined in: types.ts:646

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


tool?

readonly optional tool?: string

Defined in: types.ts:648

Specific tool or function used.