Skip to main content

phi_kernel_tools/
lib.rs

1//! Kernel tools for the phi-agent framework.
2//!
3//! This crate provides the Tool implementations that the LLM uses to interact
4//! with agent-works infrastructure:
5//!
6//! - **file**: read_file, write_file, list_files
7//! - **multi-agent**: spawn, send_message, followup_task, wait, list, close
8//! - **shell**: execute_command
9//!
10//! Each tool implements `agent_base::Tool` (or `TypedTool`) and delegates to
11//! the corresponding `agent_works` infrastructure types.
12//!
13//! # Feature gates
14//!
15//! | Feature | Tools provided |
16//! |---------|---------------|
17//! | `file` | ReadFileTool, WriteFileTool, ListFilesTool |
18//! | `multi-agent` | 6 multi-agent tools |
19//! | `shell` | LocalShellTool |
20//!
21//! All features are opt-in. Use `full` to enable all.
22
23#[cfg(feature = "file")]
24pub mod file;
25
26#[cfg(feature = "multi-agent")]
27pub mod multi_agent;
28
29#[cfg(feature = "shell")]
30pub mod local_shell;