Skip to main content

TaskStatus

Status of a completed task. Inherits from str so values compare naturally with plain strings.

AgentActivationArgs

Base activation arguments for any agent.

Methods

LLMAgentActivationArgs

Activation arguments for LLMAgent. Extends AgentActivationArgs.

TaskContext

Async context manager and iterator for a single-agent task. Sends a task request on enter, waits for the response on exit. Supports async for to receive intermediate events. On normal completion, the result is available via response. On worker error or timeout, raises TaskError.

Properties

Usage

TaskGroupContext

Async context manager and iterator for structured task group execution. Sends task requests on enter, waits for all responses on exit. Supports async for to receive intermediate events. On normal completion, results are available via responses. On worker error (with cancel_on_error=True) or timeout, raises TaskGroupError.

Properties

Usage

TaskGroupResponse

Collected results from a completed task group. Passed to on_task_completed.

TaskGroupEvent

An event received from a worker during task group execution.

Event Type Constants

AgentReadyData

Information about a registered agent. Passed to on_agent_ready and @agent_ready handlers.

AgentErrorData

Information about an agent error. Passed to on_agent_error.

AgentRegistryEntry

Information about an agent in a registry snapshot.

AgentRegistry

Tracks all known agents across local and remote runners. Owned by the AgentRunner and shared with its agents.

Properties

Methods

get

Look up a registered agent by name.

watch

Watch for a specific agent’s registration. If the agent is already registered, the handler fires immediately.

register

Register an agent. Returns True if the agent was newly registered, False if already known.