DOCSAPI reference

INTERFACE

AgentOutput

Defined in: packages/components/src/agents/types.ts:139

Agent result.

Properties

Property Type Description Defined in
error? string Set when the agent failed inside a pipeline. packages/components/src/agents/types.ts:151
history AgentMessage[] Full message history, including tool rounds. packages/components/src/agents/types.ts:147
message string Final assistant text. packages/components/src/agents/types.ts:141
thinking? string Reserved for providers that expose reasoning text. packages/components/src/agents/types.ts:143
toolCalls? ToolCallRecord[] Tool calls that ran, including failed ones. packages/components/src/agents/types.ts:145
usage? TokenUsage Token usage summed over every model call. packages/components/src/agents/types.ts:149