Expand description
Tool definitions and execution framework for LLM function calling
This module provides:
ToolDefinition- Metadata describing a tool’s interfaceTooltrait - The core interface all tools must implementToolRegistry- Dynamic registration and lookup of toolsCapability- Sandboxing hints for security isolation
§VEX Innovation
VEX tools are unique in that every execution is:
- Validated against JSON schema
- Executed with timeout protection
- 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§
- Tool
Definition - Definition of a tool that can be called by an LLM.
- Tool
Registry - 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.