pub enum TranscriptRewriteMessage {
System {
content: String,
created_at: Option<String>,
},
SystemNotice {
kind: SystemNoticeKind,
body: Option<String>,
blocks: Vec<SystemNoticeBlock>,
created_at: Option<String>,
},
User {
content: WireContentInput,
transcript_role: TranscriptUserRole,
created_at: Option<String>,
},
BlockAssistant {
blocks: Vec<WireAssistantBlock>,
stop_reason: WireStopReason,
created_at: Option<String>,
},
ToolResults {
results: Vec<WireToolResult>,
created_at: Option<String>,
},
}Expand description
Public transcript message accepted by same-session rewrite APIs.
Variants§
System
SystemNotice
User
Fields
§
content: WireContentInput§
transcript_role: TranscriptUserRoleTyped transcript role for the user channel. Hosts may declare
conversational (the omitted default) or injected_context so a
rewrite preserves the typed indexing exemption instead of
laundering injected context back to conversation;
compaction_summary is runtime-mintable only and is rejected
fail-closed by TranscriptRewriteMessage::into_core.
BlockAssistant
ToolResults
Implementations§
Source§impl TranscriptRewriteMessage
impl TranscriptRewriteMessage
pub fn into_core(self) -> Result<Message, WireConversionError>
Trait Implementations§
Source§impl Clone for TranscriptRewriteMessage
impl Clone for TranscriptRewriteMessage
Source§fn clone(&self) -> TranscriptRewriteMessage
fn clone(&self) -> TranscriptRewriteMessage
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 TranscriptRewriteMessage
impl Debug for TranscriptRewriteMessage
Source§impl<'de> Deserialize<'de> for TranscriptRewriteMessage
impl<'de> Deserialize<'de> for TranscriptRewriteMessage
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
Auto Trait Implementations§
impl Freeze for TranscriptRewriteMessage
impl RefUnwindSafe for TranscriptRewriteMessage
impl Send for TranscriptRewriteMessage
impl Sync for TranscriptRewriteMessage
impl Unpin for TranscriptRewriteMessage
impl UnsafeUnpin for TranscriptRewriteMessage
impl UnwindSafe for TranscriptRewriteMessage
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