phi-kernel-tools
Kernel tools for phi-agent — LLM-callable Tool implementations injected via factory pattern.
This crate provides the Tool implementations that the LLM uses to interact with agent-works infrastructure. It contains no infrastructure itself — only the Tool / TypedTool impls that bridge the LLM to the runtime.
Architecture
agent-base Runtime kernel (trait interfaces)
↑
agent-works Infrastructure (MCP, Skills, Multi-Agent runtime)
↑
phi-kernel-tools Tool implementations (this crate)
↑
phi-agent Framework + CLI (consumer)
Features
| Feature | Default | Tools |
|---|---|---|
multi-agent |
✅ | spawn_agent, send_message, followup_task, wait_agent, list_agents, close_agent |
skill |
✅ | ApplySkillTool, SkillDetailTool |
Installation
[]
= "0.1.0"
Or pick specific features:
[]
= { = "0.1.0", = false, = ["multi-agent"] }
Usage
use multi_agent;
use ;
// Create a factory from phi-kernel-tools
let factory: MultiAgentToolFactory =
new;
// Inject into the builder
let runtime = new
.with_multi_agent
.with_multi_agent_tool_factory
.build
.unwrap;
License
MIT — see LICENSE.