AxonerAI
A type-safe, high-performance agentic AI framework in Rust.
Why AxonerAI?
- 🦀 Type-safe - Catch errors at compile time, not runtime
- ⚡ Fast - Native Rust performance, no Python overhead
- 🔧 Simple - Clean API, minimal boilerplate
- 📦 Single binary - No dependency hell, easy deployment
Installation
Add to your Cargo.toml:
[]
= "0.1"
= { = "1", = ["full"] }
= { = "1", = ["v4"] }
Quick Start
use Agent;
use GroqProvider;
use ToolRegistry;
use ;
use FileSessionManager;
use PathBuf;
use Instant;
async
Supported Providers
The Framework is currently hardcoded to use :
- groq :
openai/gpt-oss-20b - openai:
gpt-5-mini
Feel free to modify this in the respective files in the src crate
| Provider | Model Examples |
|---|---|
| Groq | openai/gpt-oss-20b(currently hardcoded, but can be changed to llama-3.3-70b-versatile or something else,) |
| Anthropic | claude-sonnet-4-20250514, claude-3-haiku-20240307 |
| OpenAI | gpt-5-mini (currently hardcoded), gpt-4o-mini |
// Groq (free tier available!)
use GroqProvider;
let provider = new;
// Anthropic
use AnthropicProvider;
let provider = new;
// OpenAI
use OpenAIProvider;
let provider = new;
Built-in Tools
- Calculator - Basic arithmetic operations
- WebSearch - Search the web via Google Custom Search API
- WebScraper - Scrape content from URLs
Creating Custom Tools
use ;
use ;
use Result;
;
Register it:
use ToolRegistry;
let mut registry = new;
registry.register;
Environment Variables
# Required for your chosen provider
GROQ_API_KEY=your_groq_key
ANTHROPIC_API_KEY=your_anthropic_key
OPENAI_API_KEY=your_openai_key
# For WebSearch tool
GOOGLE_API_KEY=your_google_key
GOOGLE_CX=your_search_engine_id
Features
- Multi-provider support (Groq, Anthropic, OpenAI)
- Tool system with custom tool support
- Session management (file-based)
- System prompts
Comparison with Python Frameworks
| Feature | AxonerAI | LangChain |
|---|---|---|
| Language | Rust | Python |
| Type Safety | Compile-time | Runtime |
| Performance | Fast | Slow |
| Learning Curve | Moderate | Easy |
Responsible Use
Important: AxonerAI provides tools for web search and web scraping. Users are responsible for ensuring their use complies with applicable laws, terms of service, and ethical guidelines.
Web Tools Guidelines
WebSearch Tool:
- Requires a Google Custom Search API key and Search Engine ID
- Subject to Google's Custom Search JSON API Terms of Service
- Respect rate limits (100 queries/day on free tier)
- Commercial use may require paid quota
WebScraper Tool:
- Always respect
robots.txtdirectives - Check website Terms of Service before scraping
- Implement appropriate rate limiting to avoid overloading servers
- Some websites explicitly prohibit automated scraping
- Consider legal implications in your jurisdiction
API Provider Terms
When using AxonerAI with LLM providers, you must comply with their respective terms:
Your Responsibility
By using AxonerAI, you agree that:
- You are responsible for your use of the framework and its tools
- You will comply with all applicable laws and third-party terms of service
- The maintainers of AxonerAI are not liable for misuse of the framework
Use responsibly. Respect the web.
License
MIT
Contributing
Contributions welcome! Please open an issue or PR on GitHub.