pub enum AgentResponseContent {
Text(String),
Part(AgentResponseContentPart),
Parts(Vec<AgentResponseContentPart>),
}Expand description
Agent invocation response content in one of the frozen wire forms.
Variants§
Text(String)
Plain text response.
Part(AgentResponseContentPart)
One multimodal response part.
Parts(Vec<AgentResponseContentPart>)
Multiple multimodal response parts.
Trait Implementations§
Source§impl Clone for AgentResponseContent
impl Clone for AgentResponseContent
Source§fn clone(&self) -> AgentResponseContent
fn clone(&self) -> AgentResponseContent
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 AgentResponseContent
impl Debug for AgentResponseContent
Source§impl<'de> Deserialize<'de> for AgentResponseContent
impl<'de> Deserialize<'de> for AgentResponseContent
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
Auto Trait Implementations§
impl Freeze for AgentResponseContent
impl RefUnwindSafe for AgentResponseContent
impl Send for AgentResponseContent
impl Sync for AgentResponseContent
impl Unpin for AgentResponseContent
impl UnsafeUnpin for AgentResponseContent
impl UnwindSafe for AgentResponseContent
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