pub struct ProviderTool {
pub id: String,
pub name: String,
pub args: Option<JsonObject>,
pub provider_options: Option<ProviderOptions>,
}Expand description
Provider-defined tool referenced by id.
Fields§
§id: StringProvider-defined tool id, e.g. "openai.web_search_preview".
name: StringLogical name within the call.
args: Option<JsonObject>Provider-defined arguments.
provider_options: Option<ProviderOptions>Provider-specific options.
Trait Implementations§
Source§impl Clone for ProviderTool
impl Clone for ProviderTool
Source§fn clone(&self) -> ProviderTool
fn clone(&self) -> ProviderTool
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 ProviderTool
impl Debug for ProviderTool
Source§impl<'de> Deserialize<'de> for ProviderTool
impl<'de> Deserialize<'de> for ProviderTool
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 ProviderTool
impl PartialEq for ProviderTool
Source§fn eq(&self, other: &ProviderTool) -> bool
fn eq(&self, other: &ProviderTool) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProviderTool
impl Serialize for ProviderTool
impl StructuralPartialEq for ProviderTool
Auto Trait Implementations§
impl Freeze for ProviderTool
impl RefUnwindSafe for ProviderTool
impl Send for ProviderTool
impl Sync for ProviderTool
impl Unpin for ProviderTool
impl UnsafeUnpin for ProviderTool
impl UnwindSafe for ProviderTool
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