pub struct ToolRequest {
pub name: String,
pub description: String,
pub parameters_schema: Value,
}Expand description
A tool definition included in a completion request.
parameters_schema must already be normalized via
schema::for_structured_output before being placed here (D-14).
Fields§
§name: StringThe tool name. Must match the name in crate::tools::ToolDef.
description: StringHuman-readable description of what the tool does.
parameters_schema: ValueJSON Schema for the tool’s input parameters (normalized).
Trait Implementations§
Source§impl Clone for ToolRequest
impl Clone for ToolRequest
Source§fn clone(&self) -> ToolRequest
fn clone(&self) -> ToolRequest
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 moreAuto Trait Implementations§
impl Freeze for ToolRequest
impl RefUnwindSafe for ToolRequest
impl Send for ToolRequest
impl Sync for ToolRequest
impl Unpin for ToolRequest
impl UnsafeUnpin for ToolRequest
impl UnwindSafe for ToolRequest
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