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