Here is your full README.md file in proper markdown format, cleaned up and properly structured so you can copy and paste directly:
[](https://crates.io/crates/runagent)
[](https://docs.rs/runagent)
[](https://opensource.org/licenses/MIT)
[](https://github.com/runagent-dev/runagent/actions)
RunAgent is a comprehensive Rust SDK for deploying and managing AI agents with support for multiple frameworks including **LangChain**, **LangGraph**, **LlamaIndex**, and more. Whether you're building chatbots, autonomous agents, or complex AI workflows, RunAgent provides the tools you need to deploy, test, and scale your AI applications.
- ------
```bash
cargo add runagent tokio
Or add manually to Cargo.toml:
[]
= "0.1.0"
= { = "1.35", = ["full"] }
๐ Quick Start
โ Basic Agent Interaction
use *;
use json;
async
๐ Streaming Agent Interaction
use *;
use StreamExt;
use json;
async
๐ง Configuration
โ Environment Variables
# API Configuration
# Local Configuration
โ Configuration Builder
use RunAgentConfig;
let config = new
.with_api_key
.with_base_url
.with_logging
.build;
๐ฏ Framework-Specific Examples
LangChain Integration
use *;
use json;
async
LangGraph Workflows
use *;
use json;
use StreamExt;
async
๐๏ธ Architecture
Core Components
- Client: High-level client for agent interaction
- Server: FastAPI-like local server for testing
- Database: SQLite-based agent history store
- Framework Executors: Executors for LangChain, LangGraph, etc.
- Serialization: Safe messaging via WebSocket
Optional Features
Enable or disable features in Cargo.toml:
[]
= { = "0.1.0", = ["db", "server"] }
Available:
db(default): Enable database supportserver(default): Enable local server
๐ API Reference
RunAgentClient
new(agent_id, entrypoint_tag, local)run(input_kwargs)run_stream(input_kwargs)health_check()
LocalServer
new(agent_id, agent_path, host, port)from_path(agent_path, host, port)start()get_info()
DatabaseService
new(db_path)add_agent(agent)list_agents()get_capacity_info()
๐ Error Handling
use ;
๐งช Testing
๐ Examples
See examples/ folder for:
- โ Basic usage
- ๐ Streaming
- ๐พ Database
- ๐ Server setup
- ๐ฏ Framework integrations
๐ค Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
Development Setup
๐ Roadmap
- Python interop via PyO3
- Additional framework support
- Enhanced streaming
- Production deployment tools
- Monitoring & observability
- CLI tool integration
๐ Links
- ๐ Website
- ๐ Documentation
- ๐ป Repository
- โ Issues
- ๐ Python SDK
๐ License
This project is licensed under the MIT License - see the LICENSE file.
๐ Acknowledgments
- Built with Tokio
- Uses Axum
- SQL powered by SQLx
- WebSocket support via tokio-tungstenite
Need help? Join our Discord or check the documentation!