phi-agent
A general-purpose AI Agent framework built on agent-base.
Provides builder factory, renderer, config resolution, and session management infrastructure. Does not bundle any tools — tools are injected by consumers.
Features
- Builder factory —
base_agent_builder()with sensible defaults - Multiple renderers — Terminal (rich), JSON stream, Null
- CLI-ready — REPL and one-shot modes out of the box
- Session management — auto-cleanup, file locking, turn logging
- Tool-agnostic — no built-in tools; register your own via
AgentBuilder
Quick Start
use ;
use Arc;
// 1. Create LLM client
let llm_client = new;
// 2. Build agent (register your tools here)
let builder = base_agent_builder
.system_prompt
.register_tool;
let agent = build?;
// 3. Run
let session = agent.create_session.await;
agent.run_turn.await?;
CLI
License
MIT