#[non_exhaustive]pub enum ToolResultContentPart {
Text {
text: String,
provider_options: Option<ProviderOptions>,
},
File {
data: FileData,
media_type: MediaType,
filename: Option<String>,
provider_options: Option<ProviderOptions>,
},
Custom {
provider_options: Option<ProviderOptions>,
},
}Expand description
A part of a multi-part tool result.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text
Text.
File
A file.
Fields
§
provider_options: Option<ProviderOptions>Provider-specific options.
Custom
Provider-specific content carried entirely in provider options.
Fields
§
provider_options: Option<ProviderOptions>Provider-specific options.
Trait Implementations§
Source§impl Clone for ToolResultContentPart
impl Clone for ToolResultContentPart
Source§fn clone(&self) -> ToolResultContentPart
fn clone(&self) -> ToolResultContentPart
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 ToolResultContentPart
impl Debug for ToolResultContentPart
Source§impl<'de> Deserialize<'de> for ToolResultContentPart
impl<'de> Deserialize<'de> for ToolResultContentPart
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 ToolResultContentPart
impl PartialEq for ToolResultContentPart
Source§impl Serialize for ToolResultContentPart
impl Serialize for ToolResultContentPart
impl StructuralPartialEq for ToolResultContentPart
Auto Trait Implementations§
impl !Freeze for ToolResultContentPart
impl RefUnwindSafe for ToolResultContentPart
impl Send for ToolResultContentPart
impl Sync for ToolResultContentPart
impl Unpin for ToolResultContentPart
impl UnsafeUnpin for ToolResultContentPart
impl UnwindSafe for ToolResultContentPart
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