Module tool

Module tool 

Source
Expand description

Tool definitions and execution framework for LLM function calling

This module provides:

  • ToolDefinition - Metadata describing a tool’s interface
  • Tool trait - The core interface all tools must implement
  • ToolRegistry - Dynamic registration and lookup of tools
  • Capability - Sandboxing hints for security isolation

§VEX Innovation

VEX tools are unique in that every execution is:

  1. Validated against JSON schema
  2. Executed with timeout protection
  3. Hashed into the Merkle audit chain

This provides cryptographic proof of what tools were used.

§Security Considerations

  • Tools declare required capabilities for sandboxing
  • All tool execution has configurable timeouts (DoS protection)
  • Input validation is mandatory before execution
  • Registry prevents name collisions

Structs§

ToolDefinition
Definition of a tool that can be called by an LLM.
ToolRegistry
Registry for dynamically registered tools.

Enums§

Capability
Capability requirements for sandboxing (future WASM isolation)

Traits§

Tool
The core Tool trait — interface all tools must implement.