phi-agent 0.18.1

phi-agent — Rust AI Agent runtime framework: orchestration, sessions, streaming built-in. You define tools, prompts, domain knowledge.
Documentation
//! Agent construction and lifecycle management.
//!
//! This module provides:
//! - [`base_agent_builder`] — a pre-configured `AgentBuilder` factory
//! - [`PhiAgent`] — a thin wrapper around `AgentRuntime` with a simplified API
//! - [`PhiAgentConfig`] — tool-agnostic agent configuration
//! - Context compression middleware (feature-gated)

pub mod builder;
/// PhiAgent struct and configuration — the primary public API.
pub mod factory;

#[cfg(feature = "compression")]
pub use agent_works::compression::CompressionMiddleware;
pub use builder::{
    base_agent_builder, base_agent_builder_no_compression, base_agent_builder_with_excludes,
    base_agent_builder_with_options, clear_compression_cache, run_compact_session,
};
pub use factory::{PhiAgent, PhiAgentConfig};