pub struct ToolProfile {
pub origin: ToolOrigin,
pub read_only: bool,
pub destructive: bool,
pub open_world: bool,
}Expand description
The classification inputs for one tool: its spec’s MCP-style annotations plus its registry provenance.
Built by the executor surface (#592) — ToolProfile::for_spec reads
the annotations off the spec, and the executor supplies the origin from
what it knows about the tool’s source.
Fields§
§origin: ToolOriginRegistry provenance — see ToolOrigin.
read_only: boolMCP readOnlyHint: the tool does not modify its environment.
destructive: boolMCP destructiveHint: the tool may perform irreversible or
side-effecting changes.
open_world: boolMCP openWorldHint: the tool’s RESULT may carry content of
uncontrolled provenance. An ingestion-source property: it drives
taint, not the required set (a registered connector’s open-world read
still dials only its fixed, operator-vouched endpoint).
Implementations§
Source§impl ToolProfile
impl ToolProfile
Sourcepub const fn for_spec(spec: &ToolSpec, origin: ToolOrigin) -> Self
pub const fn for_spec(spec: &ToolSpec, origin: ToolOrigin) -> Self
Read the classification annotations off spec, with the
executor-supplied registry provenance.
Trait Implementations§
Source§impl Clone for ToolProfile
impl Clone for ToolProfile
Source§fn clone(&self) -> ToolProfile
fn clone(&self) -> ToolProfile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more