pub struct Tool {
pub version: String,
pub requires_filesystem: bool,
pub commands: CommandTree,
pub schema: SchemaGraph,
}Expand description
Top level
Fields§
§version: String§requires_filesystem: bool§commands: CommandTree§schema: SchemaGraphSelf-contained type-node pool holding every type referenced from
this tool’s commands. Command bodies reference entries by
type-node-index. schema.root is a structurally-required
placeholder and is not the semantic root of the tool (mirrors
golem:agent/common’s agent-type.schema).
Trait Implementations§
Source§impl TryFrom<&Tool> for Tool
impl TryFrom<&Tool> for Tool
Source§fn try_from(tool: &Tool) -> Result<Tool, <Tool as TryFrom<&Tool>>::Error>
fn try_from(tool: &Tool) -> Result<Tool, <Tool as TryFrom<&Tool>>::Error>
Encode a Tool into the flat golem:tool/common@0.1.0 wire form. The
tool’s defs plus every type embedded in its command tree are folded
into one shared wire::SchemaGraph.
Source§type Error = ToolWitError
type Error = ToolWitError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for Tool
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnsafeUnpin for Tool
impl UnwindSafe for Tool
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