pub enum SessionTranscriptItem {
UserMessage {
text: String,
images: Vec<ImageSummary>,
},
AssistantText {
text: String,
},
AssistantReasoning {
text: String,
},
ToolCall {
call: PendingToolCall,
},
ToolResult {
call_id: ToolCallId,
result: ToolCallResult,
output: Option<ToolOutput>,
},
}Expand description
Read-only public projection of persisted session transcript items.
This is intended for UI/SDK resume views. It is not provider wire history and does not mutate runtime state.
Variants§
Trait Implementations§
Source§impl Clone for SessionTranscriptItem
impl Clone for SessionTranscriptItem
Source§impl Debug for SessionTranscriptItem
impl Debug for SessionTranscriptItem
impl Eq for SessionTranscriptItem
Source§impl PartialEq for SessionTranscriptItem
impl PartialEq for SessionTranscriptItem
impl StructuralPartialEq for SessionTranscriptItem
Auto Trait Implementations§
impl Forget for SessionTranscriptItem
impl Freeze for SessionTranscriptItemwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ImageSummary>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for SessionTranscriptItem
impl RefUnwindSafe for SessionTranscriptItem
impl Send for SessionTranscriptItem
impl Sync for SessionTranscriptItem
impl Unpin for SessionTranscriptItem
impl UnsafeUnpin for SessionTranscriptItemwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ImageSummary>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for SessionTranscriptItem
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.