Skip to content

AgentExecutionResult

junjo.agent.result.AgentExecutionResult

Kind: Class

SDK version: 0.64.0

Documentation channel: Next source preview

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)

View source

Frozen detached result returned only after validated final output.

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.

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.
Exception Description
TypeError If typed members have the wrong public type.
ValueError If identities, transcript, or counters conflict.

agent_key: str

View source

Public attribute.

name: str

View source

Public attribute.

definition_id: str

View source

Public attribute.

structural_id: str

View source

Public attribute.

run_id: str

View source

Public attribute.

output: OutputT

View source

Public attribute.

transcript: tuple[AgentMessage, ...]

View source

Public attribute.

usage: AgentUsage

View source

Public attribute.

model_request_count: int

View source

Public attribute.

tool_call_requested_count: int

View source

Public attribute.

tool_call_admitted_count: int

View source

Public attribute.

tool_call_started_count: int

View source

Public attribute.

tool_call_completed_count: int

View source

Public attribute.

termination_reason: str

View source

Public attribute.