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