Enum EventKind
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.
Trait Implementations§
§impl<'de> Deserialize<'de> for EventKind
impl<'de> Deserialize<'de> for EventKind
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl Serialize for EventKind
impl Serialize for EventKind
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for EventKind
Auto Trait Implementations§
impl Freeze for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnsafeUnpin for EventKind
impl UnwindSafe for EventKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more