Skip to navigation

agent.AgentWorkflowResults

View as MarkdownOpen in Claude

The result of an agent workflow execution.

Members

agent_label

agent.AgentWorkflowResults.agent_labelstring

Label identifying this agent invocation, mirrors the label= kwarg passed to agent.execute().

choice

agent.AgentWorkflowResults.choicestring

The choice made by the agent.

description

agent.AgentWorkflowResults.descriptionstring

The description of the agent’s decision.

effort_level

agent.AgentWorkflowResults.effort_levelstring

Resolved reasoning_effort used for the last iteration.

iterations_to_choice

agent.AgentWorkflowResults.iterations_to_choiceint

Number of iterations taken to reach the choice.

max_iterations_reached

agent.AgentWorkflowResults.max_iterations_reachedbool

Whether the agent reached the maximum iteration limit.

model

agent.AgentWorkflowResults.modelstring

LLM model used for the last iteration (may differ from config default if the capability ladder swapped).

reflection_gaps

agent.AgentWorkflowResults.reflection_gapsnone

Capability 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_handoffnone

Suggested 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_inputint

Total LLM input (prompt) tokens summed across all agent iterations.

tokens_output

agent.AgentWorkflowResults.tokens_outputint

Total LLM output (completion) tokens summed across all agent iterations.

total_errors

agent.AgentWorkflowResults.total_errorsint

Total number of errors encountered during execution.