pub enum AssistantChild {
Text {
id: u64,
version: u64,
markdown: MarkdownDocument,
},
Thinking {
id: u64,
version: u64,
text: String,
},
Tool {
call_id: ToolCallId,
},
Attribution {
resolved_model: ResolvedModelRef,
},
CommittedTool {
turn_seq: u64,
content_index: u32,
name: SafeCode,
},
MediaFile {
turn_seq: u64,
content_index: u32,
file: PersistedFilePart,
},
}Expand description
One ordered child segment inside an assistant item, owned by the committed turn/tool ownership events. There are no top-level reasoning or tool items.
Variants§
Text
Fields
§
markdown: MarkdownDocumentThinking
Fields
Tool
Fields
§
call_id: ToolCallIdAttribution
Inline producer change within one run-scoped assistant item.
Fields
§
resolved_model: ResolvedModelRefCommittedTool
A durable tool placeholder from committed turn content, carrying the
exact content index. A started tool replaces its placeholder through
owner.content_index; an unstarted placeholder renders its committed
call.
Fields
MediaFile
A durable assistant media part at its exact committed content index.
Implementations§
Trait Implementations§
Source§impl Clone for AssistantChild
impl Clone for AssistantChild
Source§fn clone(&self) -> AssistantChild
fn clone(&self) -> AssistantChild
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 moreAuto Trait Implementations§
impl Freeze for AssistantChild
impl RefUnwindSafe for AssistantChild
impl Send for AssistantChild
impl Sync for AssistantChild
impl Unpin for AssistantChild
impl UnsafeUnpin for AssistantChild
impl UnwindSafe for AssistantChild
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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