Skip to main content

Crate agent_service

Crate agent_service 

Source
Expand description

Orchestration and lifecycle management for concurrent agent runs.

This crate owns run submission, worker coordination, cancellation, supervision, and event routing. Task definitions and scheduling live in the dedicated tasks-tool crate.

Structs§

AgentRuntimeExecutor
Adapts the agent runtime to the service’s run executor contract.
AuthorizedGoogleCalendar
Data required by the Google adapter after a successful authorization check.
ExecutionReport
Runtime outcome and the events emitted while executing it.
FamilyService
Family management use-cases and centralized role policy.
GoogleCalendarAccessService
Checks current EME permissions and resolves the owner’s credential for a read.
InvalidRunTransition
ResolvedAgent
An agent definition paired with the runtime configured to execute it.
Run
Service-level representation of a submitted run.
RunEvent
An immutable, ordered entry in a run’s lifecycle history.
RunId
Stable identifier assigned to a run when it is accepted by the service.
RunManager
Coordinates run admission, in-memory state, and bounded execution.

Enums§

CancelRunError
Errors returned when cancellation targets an unknown run.
CancelRunOutcome
Result of requesting cancellation for a run.
ExecutionOutcome
Outcome reported by a run executor.
FamilyServiceError
GoogleCalendarAccessError
A fail-closed result from Google Calendar authorization.
RunEventKind
An event recorded in the ordered history of a run.
RunManagerConfigError
Configuration errors for a run manager.
RunStatus
Public lifecycle state of an agent run.
SubmitRunError
Errors returned when a run cannot be accepted.

Traits§

AgentRuntimeResolver
Resolves an agent name to its definition and configured runtime.
RunExecutor
Executes an accepted agent run with its conversation history and trusted context.