An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# Toolkit


Sora Banner

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)