pub enum WireAssistantBlock {
Text {
text: String,
meta: Option<WireProviderMeta>,
},
Reasoning {
text: String,
meta: Option<WireProviderMeta>,
},
ToolUse {
id: String,
name: String,
args: Value,
meta: Option<WireProviderMeta>,
},
Unknown,
}Expand description
Transcript block inside a block-assistant message.
Variants§
Trait Implementations§
Source§impl Clone for WireAssistantBlock
impl Clone for WireAssistantBlock
Source§fn clone(&self) -> WireAssistantBlock
fn clone(&self) -> WireAssistantBlock
Returns a duplicate of the value. Read more
1.0.0 · 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 WireAssistantBlock
impl Debug for WireAssistantBlock
Source§impl<'de> Deserialize<'de> for WireAssistantBlock
impl<'de> Deserialize<'de> for WireAssistantBlock
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 From<AssistantBlock> for WireAssistantBlock
impl From<AssistantBlock> for WireAssistantBlock
Source§fn from(value: AssistantBlock) -> Self
fn from(value: AssistantBlock) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WireAssistantBlock
impl PartialEq for WireAssistantBlock
Source§impl Serialize for WireAssistantBlock
impl Serialize for WireAssistantBlock
impl StructuralPartialEq for WireAssistantBlock
Auto Trait Implementations§
impl Freeze for WireAssistantBlock
impl RefUnwindSafe for WireAssistantBlock
impl Send for WireAssistantBlock
impl Sync for WireAssistantBlock
impl Unpin for WireAssistantBlock
impl UnsafeUnpin for WireAssistantBlock
impl UnwindSafe for WireAssistantBlock
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