pub struct FunctionToolParam {
pub name: String,
pub description: Option<String>,
pub parameters: Option<Value>,
pub strict: Option<bool>,
pub defer_loading: Option<bool>,
}Available on crate feature
response-types only.Expand description
A function tool that can be used within a namespace or with tool search.
Fields§
§name: StringThe name of the function.
description: Option<String>A description of the function.
parameters: Option<Value>A JSON schema object describing the parameters of the function.
strict: Option<bool>Whether to enforce strict parameter validation.
defer_loading: Option<bool>Whether this function should be deferred and discovered via tool search.
Trait Implementations§
Source§impl Clone for FunctionToolParam
impl Clone for FunctionToolParam
Source§fn clone(&self) -> FunctionToolParam
fn clone(&self) -> FunctionToolParam
Returns a duplicate of the value. Read more
1.0.0 · 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 FunctionToolParam
impl Debug for FunctionToolParam
Source§impl Default for FunctionToolParam
impl Default for FunctionToolParam
Source§fn default() -> FunctionToolParam
fn default() -> FunctionToolParam
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FunctionToolParam
impl<'de> Deserialize<'de> for FunctionToolParam
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 FunctionToolParam
impl PartialEq for FunctionToolParam
Source§impl Serialize for FunctionToolParam
impl Serialize for FunctionToolParam
impl StructuralPartialEq for FunctionToolParam
Auto Trait Implementations§
impl Freeze for FunctionToolParam
impl RefUnwindSafe for FunctionToolParam
impl Send for FunctionToolParam
impl Sync for FunctionToolParam
impl Unpin for FunctionToolParam
impl UnsafeUnpin for FunctionToolParam
impl UnwindSafe for FunctionToolParam
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