JobParams
Everything a job dispatch needs, in one object. Pass it as params= to job() or request_job().
cancellable governs requests from outside the worker. Cancellation the
worker initiates itself — on shutdown, on a timeout, or through
cancel_on_error — proceeds either way.
JobGroupParams
Carries every JobParams field, which apply to the group as a whole, plus one of its own. Pass it as params= to job_group(), request_job_group(), or create_job_group_and_request_job().
JobStatus
Status of a completed job. Inherits from str so values compare naturally with plain strings.
WorkerActivationArgs
Base activation arguments for any agent.
Methods
LLMWorkerActivationArgs
Activation arguments for LLMWorker. Extends WorkerActivationArgs.
JobContext
Async context manager and iterator for a single-agent job. Sends a job 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 JobError.
Properties
Usage
JobGroupContext
Async context manager and iterator for structured job group execution. Sends job 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 JobGroupError.
Properties
Usage
JobEvent
An event received from a worker during a single-agent job. Yielded by async for over a JobContext.
Event Type Constants
JobGroupResponse
Collected results from a completed job group. Passed to on_job_completed.
JobGroup
Tracks a group of agents launched together by a job request. Exposed via BaseWorker.job_groups and returned by create_job_group_and_request_job.
Properties
Methods
JobGroupEvent
An event received from a worker during job group execution. Yielded by async for over a JobGroupContext.
Event Type Constants
WorkerReadyData
Information about a registered agent. Passed to on_worker_ready and @worker_ready handlers.
WorkerErrorData
Information about an agent error. Passed to on_worker_failed.
WorkerRegistryEntry
Information about an agent in a registry snapshot.
WorkerRegistry
Tracks all known agents across local and remote runners. Owned by the WorkerRunner 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.