agentle.agents.agent_run_outputΒΆ

Updated AgentRunOutput class with enhanced streaming support.

Key additions: 1. New properties for streaming state detection 2. Better handling of partial vs complete states 3. Streaming-specific convenience methods

Functions

Field()

!!! abstract "Usage Documentation"

Classes

AgentRunOutput(*[, generation, ...])

Represents the complete result of an agent execution.

Any(*args, **kwargs)

Special type indicating an unconstrained type.

BaseModel()

Alias for pydantic.BaseModel.

Context(*[, context_id, message_history, ...])

Container for contextual information that guides an agent's behavior.

Generation(*, id, object, created, model, ...)

Primary container for AI-generated content with metadata.

PerformanceMetrics(*, ...[, step_metrics])

Comprehensive performance metrics for agent execution.

Sequence()

All the operations on a read-only sequence.

ToolExecutionResult(*[, type, ...])

Represents the result of a tool execution within a step.

ToolExecutionSuggestion(*[, type, id, args])

Represents a suggestion to execute a specific tool.