pub enum SessionUpdate {
AgentMessageChunk {
content: ContentBlock,
},
UsageUpdate {
used: usize,
size: usize,
},
}Expand description
One session/update payload, discriminated by sessionUpdate.
Only the variants Leviath emits are modelled. The spec also defines
agent_thought_chunk, tool_call, tool_call_update, plan,
available_commands_update and current_mode_update; adding one is a
matter of adding a variant here.
Variants§
AgentMessageChunk
A chunk of the agent’s user-visible output.
Fields
§
content: ContentBlockThe chunk’s content.
UsageUpdate
Context-window consumption, for host-side progress display.
Trait Implementations§
Source§impl Clone for SessionUpdate
impl Clone for SessionUpdate
Source§fn clone(&self) -> SessionUpdate
fn clone(&self) -> SessionUpdate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionUpdate
impl Debug for SessionUpdate
Source§impl<'de> Deserialize<'de> for SessionUpdate
impl<'de> Deserialize<'de> for SessionUpdate
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
Source§impl PartialEq for SessionUpdate
impl PartialEq for SessionUpdate
Source§impl Serialize for SessionUpdate
impl Serialize for SessionUpdate
impl StructuralPartialEq for SessionUpdate
Auto Trait Implementations§
impl Freeze for SessionUpdate
impl RefUnwindSafe for SessionUpdate
impl Send for SessionUpdate
impl Sync for SessionUpdate
impl Unpin for SessionUpdate
impl UnsafeUnpin for SessionUpdate
impl UnwindSafe for SessionUpdate
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