Crate rs_agent

Crate rs_agent 

Source
Expand description

§rs-agent

Lattice AI Agent Framework for Rust

rs-agent provides clean abstractions for building production AI agents with:

  • Pluggable LLM providers (Gemini, Ollama, Anthropic)
  • Tool calling with async support
  • Memory systems with RAG capabilities
  • UTCP integration for universal tool calling
  • Multi-agent coordination

§Quick Start

use rs_agent::{Agent, AgentOptions};
use rs_agent::memory::{InMemoryStore, SessionMemory};
use std::sync::Arc;

#[tokio::main]
async fn main() {
    // Setup will go here
}

Re-exports§

pub use agent::Agent;
pub use error::AgentError;
pub use error::Result;
pub use memory::mmr_rerank;
pub use memory::InMemoryStore;
pub use memory::MemoryRecord;
pub use memory::MemoryStore;
pub use memory::SessionMemory;
pub use models::LLM;
pub use tools::Tool;
pub use tools::ToolCatalog;
pub use types::AgentOptions;
pub use types::File;
pub use types::GenerationResponse;
pub use types::Message;
pub use types::Role;
pub use types::ToolRequest;
pub use types::ToolResponse;
pub use types::ToolSpec;
pub use models::GeminiLLM;

Modules§

agent
error
memory
models
tools
types
utcp

Structs§

CodeModeArgs
CodeModeUtcp
CodemodeOrchestrator
High-level orchestrator that mirrors go-utcp’s CodeMode flow: