pub struct AgentResponseContentPart {
pub type_: AgentResponseContentType,
pub text: Option<String>,
pub file_url: Option<String>,
pub image_url: Option<String>,
pub audio_url: Option<String>,
pub video_url: Option<String>,
}Expand description
One multimodal part in an Agent invocation response.
Fields§
§type_: AgentResponseContentTypeFrozen content discriminator.
text: Option<String>Text value for type=text.
file_url: Option<String>File URL for type=file_url.
image_url: Option<String>Image URL for type=image_url.
audio_url: Option<String>Audio URL for type=audio_url.
video_url: Option<String>Video URL for type=video_url.
Trait Implementations§
Source§impl Clone for AgentResponseContentPart
impl Clone for AgentResponseContentPart
Source§fn clone(&self) -> AgentResponseContentPart
fn clone(&self) -> AgentResponseContentPart
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 AgentResponseContentPart
impl Debug for AgentResponseContentPart
Source§impl<'de> Deserialize<'de> for AgentResponseContentPart
impl<'de> Deserialize<'de> for AgentResponseContentPart
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 AgentResponseContentPart
impl RefUnwindSafe for AgentResponseContentPart
impl Send for AgentResponseContentPart
impl Sync for AgentResponseContentPart
impl Unpin for AgentResponseContentPart
impl UnsafeUnpin for AgentResponseContentPart
impl UnwindSafe for AgentResponseContentPart
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