pub struct ClientTool { /* private fields */ }Expand description
One client-executed tool advertised to the model.
Implementations§
Source§impl ClientTool
impl ClientTool
Sourcepub const fn new(name: Name, description: String, input_schema: Payload) -> Self
pub const fn new(name: Name, description: String, input_schema: Payload) -> Self
Creates an owned local-tool descriptor.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the model-facing description.
Sourcepub const fn input_schema(&self) -> &Payload
pub const fn input_schema(&self) -> &Payload
Returns the provider-neutral input schema bytes.
Uninterpreted: core never parses them, so this is where a per-tool constrained-sampling setting — a strict schema, a grammar, or a provider envelope around either — reaches the adapter that wrote it.
Trait Implementations§
Source§impl Clone for ClientTool
impl Clone for ClientTool
Auto Trait Implementations§
impl Freeze for ClientTool
impl RefUnwindSafe for ClientTool
impl Send for ClientTool
impl Sync for ClientTool
impl Unpin for ClientTool
impl UnsafeUnpin for ClientTool
impl UnwindSafe for ClientTool
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