pub enum EventKind {
AgentSpawned,
AgentDiscovered,
AgentInit {
model: String,
tools: Vec<String>,
session_id: String,
},
StatusChanged {
from: AgentStatus,
to: AgentStatus,
},
Output {
stream: OutputStream,
chunk: String,
},
ToolStarted {
id: String,
name: String,
input: Value,
},
ToolFinished {
id: String,
name: String,
ok: bool,
},
AgentFinished {
outcome: String,
cost_usd: f64,
turns: u32,
},
AgentGone,
StorePersistFailed {
lost_seq: u64,
detail: String,
},
RepoHealth {
state: WorkspaceHealth,
},
}Expand description
The semantic payload of a fleet event.
Variants§
AgentSpawned
Prospero asked caliband to spawn this agent.
AgentDiscovered
A poll discovered an agent Prospero had not seen before.
AgentInit
The agent’s stream emitted its init frame.
Fields
StatusChanged
A poll observed a lifecycle transition.
Output
A chunk of streamed output.
ToolStarted
A tool call started.
Fields
ToolFinished
A tool call finished.
Fields
id: StringCaliban’s tool_use_id, correlating this finish with its
[ToolStarted]. Caliban’s ToolCallEnd carries the id but not the
name, so consumers pair on the id. #[serde(default)] for pre-#106
stored events.
AgentFinished
The agent finished; carries the final accounting.
Fields
AgentGone
A poll observed the agent disappear from caliband’s registry.
StorePersistFailed
A durable-store append failed, so the event with lost_seq reached the
live bus but is absent from durable history. This marker is itself
persisted (best-effort) so a history reader — not just a log scraper —
sees that the live and durable views diverged here. See ADR-0004.
Fields
RepoHealth
A workspace’s caliband health changed. (Variant name kept as RepoHealth
for event-store wire compatibility; the payload type is the renamed
WorkspaceHealth, whose serialization is unchanged.)
Fields
state: WorkspaceHealthThe new health state.