pub struct PluginTool {
pub tool: Arc<dyn Tool>,
pub policy: Policy,
pub source: ToolSource,
}Expand description
What Plugins::tools produces: tools to register, and the reasons some were rejected.
One tool a plugin offers, with the policy it asked for and the plugin to blame or credit.
Fields§
§tool: Arc<dyn Tool>§policy: Policy§source: ToolSourceWhere the tool came from, as tools list prints it: plugin:<name> for a plugin’s own
tool, plugin:mcp:<server> for one an MCP server listed, config:mcp:<server> for a
server config.toml declares (#352).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PluginTool
impl !UnwindSafe for PluginTool
impl Forget for PluginTool
impl Freeze for PluginTool
impl Move for PluginTool
impl Send for PluginTool
impl Sync for PluginTool
impl Unpin for PluginTool
impl UnsafeUnpin for PluginToolwhere
*const ArcInner<dyn Tool> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Tool>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
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