pub struct PluginTool { /* private fields */ }Expand description
A model-callable tool backed by one plugin’s declared [[tools]] entry
— see the module doc comment’s “Subprocess execution model” section for
the full spawn/sandbox/bound/no-orphan contract Tool::execute below
implements.
Implementations§
Source§impl PluginTool
impl PluginTool
Sourcepub fn new(plugin_name: &str, tool_name: &str, spec: &PluginToolSpec) -> Self
pub fn new(plugin_name: &str, tool_name: &str, spec: &PluginToolSpec) -> Self
Build the namespaced (plugin__<plugin>__<tool>) tool for one
manifest [[tools]] entry — mirrors
crate::mcp::McpServerHandle::tools’s mcp__<server>__<tool>
convention. Uses DEFAULT_PLUGIN_TOOL_TIMEOUT_SECS; see
Self::with_timeout to override (test-only — this module exposes
no config knob for it, matching weakest-form scope).
Trait Implementations§
Source§impl Clone for PluginTool
impl Clone for PluginTool
Source§fn clone(&self) -> PluginTool
fn clone(&self) -> PluginTool
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 PluginTool
impl Debug for PluginTool
Source§impl Tool for PluginTool
impl Tool for PluginTool
Source§fn description(&self) -> &str
fn description(&self) -> &str
The built-in description. May be overridden via
crate::Config.Source§fn parameters(&self) -> Value
fn parameters(&self) -> Value
JSON Schema describing the tool’s input object.
Auto Trait Implementations§
impl Freeze for PluginTool
impl RefUnwindSafe for PluginTool
impl Send for PluginTool
impl Sync for PluginTool
impl Unpin for PluginTool
impl UnsafeUnpin for PluginTool
impl UnwindSafe for PluginTool
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