pub enum ToolOutputPart {
Text {
text: String,
provider_options: Option<ProviderOptions>,
},
File {
data: FileData,
media_type: String,
filename: Option<String>,
provider_options: Option<ProviderOptions>,
},
Custom {
provider_options: Option<ProviderOptions>,
},
}Expand description
One part inside ToolResultOutput::Content.
Variants§
Text
Text fragment.
Fields
§
provider_options: Option<ProviderOptions>Provider-specific options.
File
File fragment.
Fields
§
provider_options: Option<ProviderOptions>Provider-specific options.
Custom
Custom opaque fragment.
Fields
§
provider_options: Option<ProviderOptions>Provider-specific options.
Trait Implementations§
Source§impl Clone for ToolOutputPart
impl Clone for ToolOutputPart
Source§fn clone(&self) -> ToolOutputPart
fn clone(&self) -> ToolOutputPart
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 ToolOutputPart
impl Debug for ToolOutputPart
Source§impl<'de> Deserialize<'de> for ToolOutputPart
impl<'de> Deserialize<'de> for ToolOutputPart
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 ToolOutputPart
impl PartialEq for ToolOutputPart
Source§fn eq(&self, other: &ToolOutputPart) -> bool
fn eq(&self, other: &ToolOutputPart) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolOutputPart
impl Serialize for ToolOutputPart
impl StructuralPartialEq for ToolOutputPart
Auto Trait Implementations§
impl Freeze for ToolOutputPart
impl RefUnwindSafe for ToolOutputPart
impl Send for ToolOutputPart
impl Sync for ToolOutputPart
impl Unpin for ToolOutputPart
impl UnsafeUnpin for ToolOutputPart
impl UnwindSafe for ToolOutputPart
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