DocsAPI reference

Interface@astack-tech/components

AgentOutput

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

Agent result.

Properties

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