pub enum LlmOutputPart {
Text {
text: String,
response_meta: Option<ResponseTextMeta>,
},
Reasoning {
text: String,
replay: Option<ProviderReasoningReplay>,
},
ToolCall {
call_id: String,
tool_name: String,
input_json: String,
replay: Option<ProviderReplayMeta>,
},
}Variants§
Text
Reasoning
Model “thinking” / reasoning output from providers that expose a chain-of-thought channel.
text— human-readable summary for display.replay— opaque provider replay state. Provider crates decide how to map it back to their wire format on the next turn.
ToolCall
Trait Implementations§
Source§impl Clone for LlmOutputPart
impl Clone for LlmOutputPart
Source§fn clone(&self) -> LlmOutputPart
fn clone(&self) -> LlmOutputPart
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 LlmOutputPart
impl Debug for LlmOutputPart
Source§impl<'de> Deserialize<'de> for LlmOutputPart
impl<'de> Deserialize<'de> for LlmOutputPart
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LlmOutputPart, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LlmOutputPart, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LlmOutputPart
Source§impl PartialEq for LlmOutputPart
impl PartialEq for LlmOutputPart
Source§fn eq(&self, other: &LlmOutputPart) -> bool
fn eq(&self, other: &LlmOutputPart) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LlmOutputPart
impl Serialize for LlmOutputPart
Source§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,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LlmOutputPart
Auto Trait Implementations§
impl Freeze for LlmOutputPart
impl RefUnwindSafe for LlmOutputPart
impl Send for LlmOutputPart
impl Sync for LlmOutputPart
impl Unpin for LlmOutputPart
impl UnsafeUnpin for LlmOutputPart
impl UnwindSafe for LlmOutputPart
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