pub struct PluginToolSpec {
pub plugin_name: String,
pub plugin_dir: PathBuf,
pub name: String,
pub description: String,
pub command: String,
pub timeout_ms: u64,
pub input_schema: Value,
pub policy: SandboxPolicy,
}Expand description
A flattened, ready-to-register tool contributed by a plugin manifest.
Fields§
§plugin_name: StringOwning plugin name (for diagnostics + capabilities).
plugin_dir: PathBufPlugin directory, exported to the child as LEAN_CTX_PLUGIN_DIR.
name: StringTool name as exposed to agents.
description: StringHuman-readable description.
command: StringCommand to run (whitespace-split into program + args).
timeout_ms: u64Per-call timeout.
input_schema: ValueJSON Schema for the tool’s arguments.
policy: SandboxPolicySandbox policy inherited from the owning plugin’s [trust] (EPIC 12.3).
Trait Implementations§
Source§impl Clone for PluginToolSpec
impl Clone for PluginToolSpec
Source§fn clone(&self) -> PluginToolSpec
fn clone(&self) -> PluginToolSpec
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 moreAuto Trait Implementations§
impl Freeze for PluginToolSpec
impl RefUnwindSafe for PluginToolSpec
impl Send for PluginToolSpec
impl Sync for PluginToolSpec
impl Unpin for PluginToolSpec
impl UnsafeUnpin for PluginToolSpec
impl UnwindSafe for PluginToolSpec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more