Interface: AgentRunResult
Defined in: agent.ts:804
Agent run result
Properties
aborted
aborted: boolean;
Defined in: agent.ts:832
Whether the run was aborted
contextStats?
optional contextStats?: ContextStats;
Defined in: agent.ts:837
Context statistics (if context manager is enabled)
iterations
iterations: number;
Defined in: agent.ts:818
Number of iterations (tool use loops) executed
messages
messages: Message[];
Defined in: agent.ts:813
All messages in the conversation
response
response: string;
Defined in: agent.ts:808
Final text response from the agent
toolCalls
toolCalls: {
input: Record<string, unknown>;
name: string;
result: ToolExecutionResult;
}[];
Defined in: agent.ts:823
Tool calls made during execution
input
input: Record<string, unknown>;
name
name: string;
result
result: ToolExecutionResult;