AgentExecutionResult
junjo.agent.result.AgentExecutionResult
Kind: Class
SDK version: 0.64.0
Documentation channel: Next source preview
Signature
Section titled “Signature”AgentExecutionResult(*, agent_key: str, name: str, definition_id: str, structural_id: str, run_id: str, output: OutputT, transcript: tuple[AgentMessage, ...], usage: AgentUsage, model_request_count: int, tool_call_requested_count: int, tool_call_admitted_count: int, tool_call_started_count: int, tool_call_completed_count: int)Frozen detached result returned only after validated final output.
Constructor
Section titled “Constructor”Create a detached successful Agent execution result.
The public constructor enforces portable identities, exact Agent
fingerprint form, a complete normalized transcript, usage/request
consistency, and completed <= started <= admitted <= requested.
Parameters
Section titled “Parameters”| Name | Type | Description | Default |
|---|---|---|---|
output |
OutputT |
Already validated typed output owned by the caller. | |
transcript |
tuple[AgentMessage, ...] |
One or more complete normalized exchanges. | |
usage |
AgentUsage |
Immutable aggregate usage evidence. |
Raises
Section titled “Raises”| Exception | Description |
|---|---|
TypeError |
If typed members have the wrong public type. |
ValueError |
If identities, transcript, or counters conflict. |
Members
Section titled “Members”agent_key
Section titled “agent_key”agent_key: strPublic attribute.
name: strPublic attribute.
definition_id
Section titled “definition_id”definition_id: strPublic attribute.
structural_id
Section titled “structural_id”structural_id: strPublic attribute.
run_id
Section titled “run_id”run_id: strPublic attribute.
output
Section titled “output”output: OutputTPublic attribute.
transcript
Section titled “transcript”transcript: tuple[AgentMessage, ...]Public attribute.
usage: AgentUsagePublic attribute.
model_request_count
Section titled “model_request_count”model_request_count: intPublic attribute.
tool_call_requested_count
Section titled “tool_call_requested_count”tool_call_requested_count: intPublic attribute.
tool_call_admitted_count
Section titled “tool_call_admitted_count”tool_call_admitted_count: intPublic attribute.
tool_call_started_count
Section titled “tool_call_started_count”tool_call_started_count: intPublic attribute.
tool_call_completed_count
Section titled “tool_call_completed_count”tool_call_completed_count: intPublic attribute.
termination_reason
Section titled “termination_reason”termination_reason: strPublic attribute.