Expand description
Lifecycle module — agent lifecycle management.
Provides AgentHandle, AgentSupervisor, and SnapshotStore for
spawn / suspend / resume / checkpoint / terminate operations.
§Module layout
| File | Responsibility |
|---|---|
mod.rs | AgentStatus, AgentLifecycleEvent, MetricsSnapshot, re-exports |
supervisor.rs | AgentSupervisor, SupervisorPolicy, RestartBackoff, AgentHandle |
snapshot.rs | AgentSnapshot, ToolManifest, SnapshotStore, FileSnapshotStore |
Re-exports§
pub use hub::HubKind;pub use hub::HubStatus;pub use crate::metrics::MetricsSnapshot;
Modules§
- hub
- Display metadata for the Agent Hub overlay (advisor + subagent monitoring). Kept separate from supervisor.rs (lifecycle state machine) so display concerns don’t pollute the supervisor API.
Structs§
- Agent
Handle - Agent execution handle returned by
AgentSupervisor::spawn(). - Agent
Pool - Pool of live
Agentinstances keyed by string ID. - Agent
Snapshot - A complete snapshot of an agent at a point in time.
- Agent
Supervisor - Manages a pool of agents with lifecycle operations.
- File
Snapshot Store - Snapshot store backed by the local filesystem.
- Subagent
Coordinator - Subagent coordinator.
- Subagent
Spawn Request - Inputs to
SubagentCoordinator::spawn. - Subagent
Tracker - Per-subagent tracker — exposes cancellation and completion polling.
- Supervisor
Policy - Supervisor restart policy.
- Tool
Manifest - A serializable manifest of tools registered in an agent.
Enums§
- Agent
Lifecycle Event - Events emitted during agent lifecycle transitions.
- Agent
Status - Lifecycle status of an agent.
- Restart
Backoff - Restart backoff strategy.
- Subagent
Coordinator Error - Coordinator error.
- Subagent
State - One subagent’s lifecycle state.
Constants§
- DEFAULT_
MAX_ SUBAGENT_ DEPTH - Default ceiling on subagent nesting depth.
Traits§
- Snapshot
Store - Trait for persisting and retrieving agent snapshots.