pub enum AgentContent {
Text(String),
Part(AgentRequestContentPart),
Parts(Vec<AgentRequestContentPart>),
}Expand description
Agent request content in one of the three frozen wire forms.
Variants§
Text(String)
Plain text content.
Part(AgentRequestContentPart)
One multimodal content part.
Parts(Vec<AgentRequestContentPart>)
Multiple multimodal content parts.
Trait Implementations§
Source§impl Clone for AgentContent
impl Clone for AgentContent
Source§fn clone(&self) -> AgentContent
fn clone(&self) -> AgentContent
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 AgentContent
impl Debug for AgentContent
Source§impl<'de> Deserialize<'de> for AgentContent
impl<'de> Deserialize<'de> for AgentContent
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 From<&str> for AgentContent
impl From<&str> for AgentContent
Source§impl From<AgentRequestContentPart> for AgentContent
impl From<AgentRequestContentPart> for AgentContent
Source§fn from(value: AgentRequestContentPart) -> Self
fn from(value: AgentRequestContentPart) -> Self
Converts to this type from the input type.
Source§impl From<String> for AgentContent
impl From<String> for AgentContent
Source§impl From<Vec<AgentRequestContentPart>> for AgentContent
impl From<Vec<AgentRequestContentPart>> for AgentContent
Source§fn from(value: Vec<AgentRequestContentPart>) -> Self
fn from(value: Vec<AgentRequestContentPart>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AgentContent
impl RefUnwindSafe for AgentContent
impl Send for AgentContent
impl Sync for AgentContent
impl Unpin for AgentContent
impl UnsafeUnpin for AgentContent
impl UnwindSafe for AgentContent
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