pub enum EventBody {
Show 25 variants
Created {
parent: Option<u64>,
params: GenParams,
},
Appended {
text: Option<String>,
span: Vec<u32>,
},
Message {
role: u32,
text: String,
span: Vec<u32>,
},
GenerationPrompt {
span: Vec<u32>,
},
Generated {
span: Vec<u32>,
text: String,
channel: u32,
finish: u32,
},
ToolUse {
name: String,
arguments: String,
},
ToolResult {
call_id: u64,
content: String,
span: Vec<u32>,
},
EpochBump,
GenerationFingerprint {
digest: u64,
},
ToolParseFailure {
raw: String,
},
Forked {
parent: u64,
fork_at: u64,
params: GenParams,
},
MetaUpdated {
version: u64,
title: Option<String>,
archived: Option<bool>,
},
Rebased {
parent: u64,
fork_at: u64,
params: GenParams,
edits: Vec<RebaseEdit>,
},
ToolExpired {
call_id: u64,
reason: String,
},
Purged {
generation: u64,
descendants: PurgeMode,
},
Rerooted {
purged_parent: u64,
prefix: Vec<(u64, EventBody)>,
},
QosSet {
class: u8,
batch_invariant: bool,
},
Block {
role: u32,
kind: u32,
payload: String,
span: Vec<u32>,
visibility_version: u32,
},
PermissionRequest {
call_id: u64,
text: String,
},
PermissionResponse {
request_id: u64,
granted: bool,
},
ToolCancelRequested {
call_id: u64,
},
ToolOutcome {
call_id: u64,
outcome: u8,
note: String,
},
ToolReconciliation {
call_id: u64,
note: String,
},
ToolLease {
call_id: u64,
deadline_unix_ms: u64,
},
Pinned {
deadline_unix_ms: u64,
},
}Variants§
Created
Appended
Message
GenerationPrompt
Generated
ToolUse
ToolResult
EpochBump
GenerationFingerprint
ToolParseFailure
Forked
MetaUpdated
Rebased
ToolExpired
Purged
Rerooted
QosSet
Block
PermissionRequest
PermissionResponse
ToolCancelRequested
ToolOutcome
ToolReconciliation
ToolLease
Pinned
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventBody
impl<'de> Deserialize<'de> for EventBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for EventBody
Auto Trait Implementations§
impl Freeze for EventBody
impl RefUnwindSafe for EventBody
impl Send for EventBody
impl Sync for EventBody
impl Unpin for EventBody
impl UnsafeUnpin for EventBody
impl UnwindSafe for EventBody
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
Converts
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> ⓘ
Converts
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