Expand description
pi-agent — Agent runtime with tool calling.
Rust port of @earendil-works/pi-agent-core. Provides:
AgentTool/AgentToolResultfor defining toolsAgentConfigfor configuring a run, plus aPermissionPolicyhookrun_agent/run_agent_with_history— the agent loop- Builtin tools under
tools
Re-exports§
pub use agent_loop::run_agent;pub use agent_loop::run_agent_with_history;pub use agent_loop::AgentRun;pub use error::AgentError;pub use error::Result;pub use types::tool_def;pub use types::AgentConfig;pub use types::AgentEvent;pub use types::AgentTool;pub use types::AgentToolResult;pub use types::AllowAllPolicy;pub use types::PermissionDecision;pub use types::PermissionPolicy;
Modules§
- agent_
loop - Agent loop — Rust port of
packages/agent/src/agent-loop.ts. - error
- tools
- Builtin tools: read, write, edit, bash, ls, grep, glob.
- types