Ceylon Runtime
A Rust-based agent mesh framework for building local and distributed AI agent systems.
Features
- Agent Framework: Build autonomous AI agents with a simple trait-based API
- Local Mesh: Connect multiple agents in a local mesh for inter-agent communication
- LLM Integration: Built-in support for various LLM providers (OpenAI, Ollama, Vertex AI, etc.)
- Memory Backends: Pluggable memory systems with in-memory, SQLite, and Redis support
- Async-first: Built on Tokio for high-performance async operations
- Logging & Metrics: Structured logging and metrics collection built-in
Installation
Add to your Cargo.toml:
[]
= "0.1"
Feature Flags
sqlite- Enable SQLite memory backendredis- Enable Redis memory backendfull- Enable all optional backends
[]
= { = "0.1", = ["sqlite", "redis"] }
Quick Start
use ;
use async_trait;
async
Using LLM Agents
use ;
async
Core Components
| Component | Description |
|---|---|
Agent |
Trait for defining agent behavior |
LocalMesh |
Local multi-agent coordination |
LlmAgent |
Pre-built agent with LLM capabilities |
Memory |
Trait for memory backends |
InMemoryBackend |
In-memory storage (default) |
SqliteBackend |
SQLite persistent storage (feature: sqlite) |
RedisBackend |
Redis distributed storage (feature: redis) |
Documentation
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.