pub enum ConversationPart {
Text {
text: String,
},
Summary {
text: String,
},
Encoded {
label: String,
value: String,
},
Json {
summary: String,
raw_payload_id: RawPayloadId,
},
Code {
language: String,
source: String,
},
PayloadRef {
label: String,
raw_payload_id: RawPayloadId,
},
}Expand description
Public reduced trace model returned by replay. One model-visible part inside a conversation item.
Variants§
Text
Summary
A model-provided summary of content whose full form may also be present.
Reasoning summaries are not interchangeable with raw reasoning text: both can be present in one payload, and replay/debug tooling needs to preserve which representation the model actually returned.
Encoded
Opaque model-visible content that is intentionally not decoded here.
Reasoning can be carried as encrypted_content with no readable text.
Keeping that blob inline makes it part of item identity, unlike a raw
payload reference whose ID changes every time the same item is replayed
in a later inference request.
Json
Small JSON-ish body represented by a summary plus a raw ref.
Code
PayloadRef
Large or uncommon payload that should be lazy-loaded from details UI.
Trait Implementations§
Source§impl Clone for ConversationPart
impl Clone for ConversationPart
Source§fn clone(&self) -> ConversationPart
fn clone(&self) -> ConversationPart
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConversationPart
impl Debug for ConversationPart
Source§impl<'de> Deserialize<'de> for ConversationPart
impl<'de> Deserialize<'de> for ConversationPart
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>,
Source§impl PartialEq for ConversationPart
impl PartialEq for ConversationPart
Source§impl Serialize for ConversationPart
impl Serialize for ConversationPart
impl StructuralPartialEq for ConversationPart
Auto Trait Implementations§
impl Freeze for ConversationPart
impl RefUnwindSafe for ConversationPart
impl Send for ConversationPart
impl Sync for ConversationPart
impl Unpin for ConversationPart
impl UnsafeUnpin for ConversationPart
impl UnwindSafe for ConversationPart
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more