rpc-agent
A modular Rust library for building RPC-based agents with pluggable provider integrations.
Overview
rpc-agent is a Rust crate that lets you build resilient, extensible agents which talk to LLM services over RPC. Leveraging the Rig framework, it supports multiple provider backends, currently OpenAI and Ollama, and is designed for straightforward extension and robust error handling.
Features
- Modular agent architecture for easy extension
- Pluggable provider integrations (Ollama, OpenAI, etc.)
- Centralized error handling
- Async support (Tokio-based)
- Written in idiomatic Rust
Getting Started
Prerequisites
Add this crate to your Cargo.toml:
[]
= "0.1.3"
= { = "1.48.0", = ["macros", "rt-multi-thread"] }
Example Usage
Here is a minimal example of how to set up and run an Ollama RPC agent:
use Providers;
async
Note: Adjust the parameters as needed for your provider and use case. See the source files for more details and available options.
Contributing
Pull requests and issues are welcome! Please open an issue to discuss your ideas or report bugs.
License
This project is licensed under the MIT License.