pub enum PartKind {
Text,
Image,
Code,
Output,
Error,
Prose,
ToolCall,
ToolResult,
Reasoning,
}Variants§
Text
Image
Code
Output
Error
Prose
ToolCall
ToolResult
Reasoning
Chain-of-thought / reasoning item captured from providers that expose
a reasoning channel. content holds the human-readable summary for
display (fix 1.3a). The encrypted blob and raw summary/id needed
to re-feed the model on the next turn (fix 1.3b) live in
reasoning_meta. Reasoning parts are preserved across snapshots so
next-turn re-feeding survives session resume; they are never rendered
into the flat chat prompt. Provider adapters decide whether and how
to re-emit them through their native channel.
Trait Implementations§
impl Copy for PartKind
Source§impl<'de> Deserialize<'de> for PartKind
impl<'de> Deserialize<'de> for PartKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PartKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PartKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PartKind
impl Serialize for PartKind
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 PartKind
Auto Trait Implementations§
impl Freeze for PartKind
impl RefUnwindSafe for PartKind
impl Send for PartKind
impl Sync for PartKind
impl Unpin for PartKind
impl UnsafeUnpin for PartKind
impl UnwindSafe for PartKind
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