Crate agentsmith

Crate agentsmith 

Source
Expand description

§AgentSmith

AI Agent forging utilities - giving agents persistent, searchable memory.

Inspired by Atuin for shell history, agentsmith provides a permanent, fuzzy-searchable, metadata-rich memory layer for Rig agents that survives process restarts.

§Example

use agentsmith::{AgentHistory, SmartAgent};
// Create persistent history
let history = AgentHistory::new("my_agent.db", Some("session-123")).await?;

// Wrap your Rig agent
// let agent = ...; // your rig agent
// let mut smart_agent = SmartAgent::new(agent, history);

// Chat with automatic recall of relevant past interactions
// let reply = smart_agent.chat("How did we fix the JSON parsing bug?").await?;

Structs§

AgentHistory
Persistent history storage for agent interactions
SmartAgent
A smart agent wrapper that automatically manages persistent memory
Trace
A single trace entry representing one agent turn (message + metadata)

Enums§

Error
Errors that can occur in agentsmith operations

Type Aliases§

Result
Result type alias for agentsmith operations