pub enum Part {
Text(TextPart),
File(FilePart),
Tool(ToolPart),
StepStart(StepStartPart),
StepFinish(StepFinishPart),
Snapshot(SnapshotPart),
Patch(PatchPart),
}Expand description
A part within a message — discriminated by type.
Variants§
Text(TextPart)
A text content part.
File(FilePart)
A file attachment part.
Tool(ToolPart)
A tool invocation part.
StepStart(StepStartPart)
Start of a reasoning step.
StepFinish(StepFinishPart)
End of a reasoning step.
Snapshot(SnapshotPart)
A session state snapshot.
Patch(PatchPart)
A file patch.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Part
impl<'de> Deserialize<'de> for Part
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
impl StructuralPartialEq for Part
Auto Trait Implementations§
impl Freeze for Part
impl RefUnwindSafe for Part
impl Send for Part
impl Sync for Part
impl Unpin for Part
impl UnwindSafe for Part
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