https://github.com/soralabs/toolkit
A dual-language package (Go/Rust) for building and managing LLM function calling tools and toolkits.
https://github.com/soralabs/toolkit
agent ai automation go rust toolkit
Last synced: over 1 year ago
JSON representation
A dual-language package (Go/Rust) for building and managing LLM function calling tools and toolkits.
- Host: GitHub
- URL: https://github.com/soralabs/toolkit
- Owner: soralabs
- License: mit
- Created: 2024-12-26T00:10:25.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-22T02:11:13.000Z (over 1 year ago)
- Last Synced: 2025-01-22T03:20:02.267Z (over 1 year ago)
- Topics: agent, ai, automation, go, rust, toolkit
- Language: Rust
- Homepage:
- Size: 2.77 MB
- Stars: 12
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Toolkit
A dual-language package (Go/Rust) for building and managing LLM function calling tools and toolkits. Built specifically for Zen.
## Features
- Abstract Tool interface for implementing LLM-compatible functions
- Default tool implementation with required metadata
- Toolkit management for grouping related tools
- Functional options pattern for configuration (Go)
- Builder pattern for configuration (Rust)
- JSON schema support for function parameters and returns
## Installation
### Go
```bash
go get github.com/soralabs/toolkit/go
```
### Rust
```toml
[dependencies]
toolkit = { git = "https://github.com/soralabs/toolkit", subdirectory = "rust" }
```
## Usage
Both implementations provide similar functionality with language-specific idioms:
- Go uses the functional options pattern for configuration
- Rust uses the builder pattern for configuration
- Both support async execution of tools
- Both use JSON schemas for parameter and return type definitions
For examples, see the language-specific directories:
- Go examples in [go/examples](go/examples)
- Rust examples in [rust/examples](rust/examples)