pub struct ExternalToolTextResultForLlmBinaryResultsForLlm {
pub data: String,
pub description: Option<String>,
pub metadata: Option<HashMap<String, Value>>,
pub mime_type: String,
pub type: ExternalToolTextResultForLlmBinaryResultsForLlmType,
}Expand description
Binary result returned by a tool for the model
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§data: StringBase64-encoded binary data
description: Option<String>Human-readable description of the binary data
metadata: Option<HashMap<String, Value>>Optional metadata from the producing tool.
mime_type: StringMIME type of the binary data
type: ExternalToolTextResultForLlmBinaryResultsForLlmTypeBinary result type discriminator. Use “image” for images and “resource” for other binary data.
Trait Implementations§
Source§impl Clone for ExternalToolTextResultForLlmBinaryResultsForLlm
impl Clone for ExternalToolTextResultForLlmBinaryResultsForLlm
Source§fn clone(&self) -> ExternalToolTextResultForLlmBinaryResultsForLlm
fn clone(&self) -> ExternalToolTextResultForLlmBinaryResultsForLlm
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 Default for ExternalToolTextResultForLlmBinaryResultsForLlm
impl Default for ExternalToolTextResultForLlmBinaryResultsForLlm
Source§fn default() -> ExternalToolTextResultForLlmBinaryResultsForLlm
fn default() -> ExternalToolTextResultForLlmBinaryResultsForLlm
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExternalToolTextResultForLlmBinaryResultsForLlm
impl<'de> Deserialize<'de> for ExternalToolTextResultForLlmBinaryResultsForLlm
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 ExternalToolTextResultForLlmBinaryResultsForLlm
impl RefUnwindSafe for ExternalToolTextResultForLlmBinaryResultsForLlm
impl Send for ExternalToolTextResultForLlmBinaryResultsForLlm
impl Sync for ExternalToolTextResultForLlmBinaryResultsForLlm
impl Unpin for ExternalToolTextResultForLlmBinaryResultsForLlm
impl UnsafeUnpin for ExternalToolTextResultForLlmBinaryResultsForLlm
impl UnwindSafe for ExternalToolTextResultForLlmBinaryResultsForLlm
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