pub enum Response {
Show 27 variants
Created {
session: u64,
},
Delta {
event: EventMsg,
},
Cancelling,
Committed {
event: EventMsg,
},
Generated {
events: Vec<EventMsg>,
tokens_generated: u32,
finish: u32,
warm_prefix: u64,
},
Events {
events: Vec<EventMsg>,
},
Sessions {
ids: Vec<u64>,
},
ToolCalls {
calls: Vec<(u64, String, String)>,
},
Subscribed {
sub: u64,
},
SubEvent {
sub: u64,
event: EventMsg,
},
SubProvisional {
sub: u64,
channel: u32,
text: String,
},
SubEnded {
sub: u64,
reason: String,
},
Unsubscribed,
Err {
message: String,
},
Tree {
nodes: Vec<(u64, Option<u64>, u64)>,
},
SessionList {
sessions: Vec<SessionSummary>,
},
Meta {
version: u64,
},
Purged {
sessions: Vec<u64>,
},
Ack,
Inspection {
inspection: Inspection,
},
Text {
text: String,
},
Ledger {
entries: Vec<(u64, LedgerEntry)>,
},
Media {
hash: String,
},
Gc {
kept: u64,
removed: u64,
},
Completion {
text: String,
tokens: Vec<u32>,
cached: bool,
expired: bool,
},
Pinned {
deadline_unix_ms: u64,
},
Throttled {
retry_after_ms: u64,
},
}Variants§
Created
Delta
Cancelling
Committed
Generated
Events
Sessions
ToolCalls
Subscribed
SubEvent
SubProvisional
SubEnded
Unsubscribed
Err
Tree
SessionList
Fields
§
sessions: Vec<SessionSummary>Meta
Purged
Ack
Inspection
Fields
§
inspection: InspectionText
Ledger
Fields
§
entries: Vec<(u64, LedgerEntry)>Media
Gc
Completion
Pinned
Throttled
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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
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