agent.agent_result
Data structures for agentic execution results.
Data structures for agentic execution results.
- class ToolCallRecord(round, tool_name, tool_call_id='', arguments=<factory>, result='', duration_ms=0.0, error=None)[source]
Bases:
objectRecord of a single tool call within an agentic loop.
- Parameters:
- class AgentResult(response='', tool_calls=<factory>, total_rounds=0, total_llm_calls=0, status='success')[source]
Bases:
objectResult of an agentic execution loop.
- Parameters:
- tool_calls
List of tool call records from all rounds.
- status
Execution status - “success”, “failed”, or “max_rounds_exceeded”.
- Type:
Literal[‘success’, ‘failed’, ‘max_rounds_exceeded’]
- tool_calls: list[ToolCallRecord]
- property failed_tool_calls: list[ToolCallRecord]
List of tool calls that resulted in errors.
Classes
- class AgentResult(response='', tool_calls=<factory>, total_rounds=0, total_llm_calls=0, status='success')[source]
Bases:
objectResult of an agentic execution loop.
- Parameters:
- tool_calls
List of tool call records from all rounds.
- status
Execution status - “success”, “failed”, or “max_rounds_exceeded”.
- Type:
Literal[‘success’, ‘failed’, ‘max_rounds_exceeded’]
- tool_calls: list[ToolCallRecord]
- property failed_tool_calls: list[ToolCallRecord]
List of tool calls that resulted in errors.