pub struct RegisterTool {
pub name: String,
pub description: String,
pub schema_json: Vec<u8>,
pub timeout_sec: u32,
pub has_detail: bool,
}Expand description
Registers an LLM tool; schema_json is opaque JSON Schema bytes.
Fields§
§name: String§description: String§schema_json: Vec<u8>§timeout_sec: u32Host RPC wait for this tool’s result, in seconds. 0 omits the field
(host default). Host clamps to a maximum.
has_detail: boolExtension can answer TYPE_TOOL_DETAIL_INVOKE.
false omits the wire field (backward compatible).
Trait Implementations§
Source§impl Clone for RegisterTool
impl Clone for RegisterTool
Source§fn clone(&self) -> RegisterTool
fn clone(&self) -> RegisterTool
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 RegisterTool
impl Debug for RegisterTool
Source§impl Default for RegisterTool
impl Default for RegisterTool
Source§fn default() -> RegisterTool
fn default() -> RegisterTool
Returns the “default value” for a type. Read more
impl Eq for RegisterTool
Source§impl PartialEq for RegisterTool
impl PartialEq for RegisterTool
impl StructuralPartialEq for RegisterTool
Auto Trait Implementations§
impl Freeze for RegisterTool
impl RefUnwindSafe for RegisterTool
impl Send for RegisterTool
impl Sync for RegisterTool
impl Unpin for RegisterTool
impl UnsafeUnpin for RegisterTool
impl UnwindSafe for RegisterTool
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