pub enum ConversationContent {
User(Vec<ContentBlock>),
Assistant(Vec<ContentBlock>),
Thought(Vec<ContentBlock>),
Tool(ToolCall),
Notice(String),
}Expand description
Content an item holds
Variants§
User(Vec<ContentBlock>)
Assistant(Vec<ContentBlock>)
Thought(Vec<ContentBlock>)
Tool(ToolCall)
Notice(String)
Information from the host rather than the agent.
Trait Implementations§
Source§impl Clone for ConversationContent
impl Clone for ConversationContent
Source§impl Debug for ConversationContent
impl Debug for ConversationContent
Source§impl JsonSchema for ConversationContent
impl JsonSchema for ConversationContent
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ConversationContent
impl PartialEq for ConversationContent
Source§impl Serialize for ConversationContent
impl Serialize for ConversationContent
impl StructuralPartialEq for ConversationContent
Auto Trait Implementations§
impl Freeze for ConversationContent
impl RefUnwindSafe for ConversationContent
impl Send for ConversationContent
impl Sync for ConversationContent
impl Unpin for ConversationContent
impl UnsafeUnpin for ConversationContent
impl UnwindSafe for ConversationContent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.