assistant_tools.rs

 1mod list_worktrees_tool;
 2mod now_tool;
 3mod read_file_tool;
 4
 5use assistant_tool::ToolRegistry;
 6use gpui::App;
 7
 8use crate::list_worktrees_tool::ListWorktreesTool;
 9use crate::now_tool::NowTool;
10use crate::read_file_tool::ReadFileTool;
11
12pub fn init(cx: &mut App) {
13    assistant_tool::init(cx);
14
15    let registry = ToolRegistry::global(cx);
16    registry.register_tool(NowTool);
17    registry.register_tool(ListWorktreesTool);
18    registry.register_tool(ReadFileTool);
19}