pub struct DynamicToolRecord {
pub position: i64,
pub name: String,
pub description: Option<String>,
pub input_schema: Value,
}Expand description
A dynamically registered tool associated with a thread.
Fields§
§position: i64Ordinal position of this tool in the thread tool list.
name: StringUnique name identifying the tool.
description: Option<String>Human-readable description of what the tool does.
input_schema: ValueJSON Schema describing the tool input parameters.
Trait Implementations§
Source§impl Clone for DynamicToolRecord
impl Clone for DynamicToolRecord
Source§fn clone(&self) -> DynamicToolRecord
fn clone(&self) -> DynamicToolRecord
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 DynamicToolRecord
impl Debug for DynamicToolRecord
Source§impl<'de> Deserialize<'de> for DynamicToolRecord
impl<'de> Deserialize<'de> for DynamicToolRecord
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 DynamicToolRecord
impl RefUnwindSafe for DynamicToolRecord
impl Send for DynamicToolRecord
impl Sync for DynamicToolRecord
impl Unpin for DynamicToolRecord
impl UnsafeUnpin for DynamicToolRecord
impl UnwindSafe for DynamicToolRecord
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