🎁 Trinkets
Tool registry and execution system for AI agents - goblin loot and treasures.
Overview
Trinkets provides a unified system for AI agents to discover and execute tools:
- Tool Trait: Simple interface for implementing tools
- Registry: Central registry for tool discovery
- Router: Routes tool calls to appropriate handlers
- Orchestrator: Coordinates parallel/sequential execution
Features
- 🔧 Easy-to-implement
Tooltrait - 📋 JSON Schema support for LLM function calling
- ⚡ Parallel tool execution with concurrency limits
- 🔒 Risk-based approval system
- 🛠️ Built-in tools (shell, file, search)
Installation
[]
= "0.1"
Usage
use ;
use async_trait;
use ;
;
// Register and use
let mut registry = new;
registry.register;
let schemas = registry.schemas; // For LLM function calling
Built-in Tools
shell- Execute shell commandsread_file- Read file contentswrite_file- Write to fileslist_files- List directory contentsgrep- Search with ripgrepglob- Find files by pattern
Part of the Goblin Family
- warhorn - Protocol types
- trinkets - Tool registry (you are here)
- wardstone - Sandboxing
- skulk - MCP connections
- hutch - Checkpoints
- ambush - Task planning
- cabal - Orchestration
License
MIT OR Apache-2.0