pub enum AssistantInputItem {
Text(String),
Reasoning(String),
Refusal(String),
}Expand description
Assistant-authored request items that can be replayed into a future model input.
This is intentionally narrower than AssistantTurnItem: tool calls are represented
as ToolUse at the surrounding ModelInputItem level so call/result pairs stay bundled.
Variants§
Trait Implementations§
Source§impl Clone for AssistantInputItem
impl Clone for AssistantInputItem
Source§fn clone(&self) -> AssistantInputItem
fn clone(&self) -> AssistantInputItem
Returns a duplicate of the value. Read more
1.0.0 · 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 AssistantInputItem
impl Debug for AssistantInputItem
Source§impl<'de> Deserialize<'de> for AssistantInputItem
impl<'de> Deserialize<'de> for AssistantInputItem
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
Source§impl PartialEq for AssistantInputItem
impl PartialEq for AssistantInputItem
Source§impl Serialize for AssistantInputItem
impl Serialize for AssistantInputItem
impl Eq for AssistantInputItem
impl StructuralPartialEq for AssistantInputItem
Auto Trait Implementations§
impl Freeze for AssistantInputItem
impl RefUnwindSafe for AssistantInputItem
impl Send for AssistantInputItem
impl Sync for AssistantInputItem
impl Unpin for AssistantInputItem
impl UnsafeUnpin for AssistantInputItem
impl UnwindSafe for AssistantInputItem
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