oxi-agent 0.1.2-alpha

Agent runtime with tool-calling loop for AI coding assistants
Documentation
//! oxi-agent: Agent runtime for oxi
//!
//! This crate provides an agent runtime that integrates with oxi-ai providers.

pub mod types;
pub mod events;
pub mod error;
pub mod tools;
pub mod state;
pub mod config;
pub mod agent;
pub mod compaction;
pub mod recovery;

pub use agent::Agent;
pub use config::AgentConfig;
pub use error::AgentError;
pub use events::AgentEvent;
pub use state::{AgentState, SharedState};
pub use tools::{ToolRegistry, AgentTool, AgentToolResult, ReadTool, WriteTool, EditTool, BashTool, GrepTool, FindTool, LsTool};
pub use recovery::{CircuitBreaker, CircuitBreakerConfig, CircuitOpenError, PartialResponse, FallbackChain};

pub mod prelude {
    pub use crate::agent::Agent;
    pub use crate::config::AgentConfig;
    pub use crate::events::AgentEvent;
    pub use crate::state::{AgentState, SharedState};
    pub use crate::tools::{ToolRegistry, AgentTool, AgentToolResult, ReadTool, WriteTool, EditTool, BashTool, GrepTool, FindTool, LsTool};
    pub use crate::compaction::{CompactedContext, CompactionEvent};
}

#[cfg(test)]
mod tests;