Expand description
Agent construction and lifecycle management.
This module provides:
base_agent_builder— a pre-configuredAgentBuilderfactoryPhiAgent— a thin wrapper aroundAgentRuntimewith a simplified APIPhiAgentConfig— tool-agnostic agent configuration- Context compression middleware (feature-gated)
Re-exports§
pub use builder::base_agent_builder;pub use builder::base_agent_builder_no_compression;pub use builder::base_agent_builder_with_excludes;pub use builder::base_agent_builder_with_options;pub use builder::clear_compression_cache;pub use builder::run_compact_session;pub use factory::PhiAgent;pub use factory::PhiAgentConfig;
Modules§
- builder
- General-purpose AgentBuilder factory — provides default configuration shared across consumers.
- factory
- PhiAgent struct and configuration — the primary public API.
Structs§
- Compression
Middleware - Middleware that compresses conversation history before each LLM call.