agent.AgentWorkflowResults
The result of an agent workflow execution.
Members
- agent_label
- choice
- description
- effort_level
- iterations_to_choice
- max_iterations_reached
- model
- reflection_gaps
- reflection_handoff
- tokens_input
- tokens_output
- total_errors
agent_label
agent.AgentWorkflowResults.agent_labelstringLabel identifying this agent invocation, mirrors the label= kwarg passed to agent.execute().
choice
agent.AgentWorkflowResults.choicestringThe choice made by the agent.
description
agent.AgentWorkflowResults.descriptionstringThe description of the agent’s decision.
effort_level
agent.AgentWorkflowResults.effort_levelstringResolved reasoning_effort used for the last iteration.
iterations_to_choice
agent.AgentWorkflowResults.iterations_to_choiceintNumber of iterations taken to reach the choice.
max_iterations_reached
agent.AgentWorkflowResults.max_iterations_reachedboolWhether the agent reached the maximum iteration limit.
model
agent.AgentWorkflowResults.modelstringLLM model used for the last iteration (may differ from config default if the capability ladder swapped).
reflection_gaps
agent.AgentWorkflowResults.reflection_gapsnoneCapability gaps the agent reported after choosing; present only when reflect_gaps was set and the agent reported something, otherwise None.
reflection_handoff
agent.AgentWorkflowResults.reflection_handoffnoneSuggested next steps for a human (advisory, never executed); present only when reflect_handoff was set and the agent had a useful suggestion, otherwise None.
tokens_input
agent.AgentWorkflowResults.tokens_inputintTotal LLM input (prompt) tokens summed across all agent iterations.
tokens_output
agent.AgentWorkflowResults.tokens_outputintTotal LLM output (completion) tokens summed across all agent iterations.
total_errors
agent.AgentWorkflowResults.total_errorsintTotal number of errors encountered during execution.