pub struct HostTool {
pub name: String,
pub description: String,
pub input_schema: Value,
pub timeout_ms: Option<u64>,
pub execute: ToolCallback,
}Expand description
A single host tool within a ToolKit.
Fields§
§name: String§description: String§input_schema: ValueJSON Schema for the tool input (forwarded to the sidecar register_host_callbacks definition).
timeout_ms: Option<u64>§execute: ToolCallbackHost-side implementation, invoked when the guest calls <toolkit>:<tool>.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HostTool
impl !UnwindSafe for HostTool
impl Freeze for HostTool
impl Send for HostTool
impl Sync for HostTool
impl Unpin for HostTool
impl UnsafeUnpin for HostTool
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