@agenticforge/tools-builtin
v1.1.6
Published
Built-in tools for AgenticFORGE
Maintainers
Readme
@agenticforge/tools-builtin
AgenticFORGE 内置工具集,提供搜索、记忆、笔记、RAG、终端命令等常用工具,开箱即用。
安装
npm install @agenticforge/tools-builtin内置工具
| 工具 | 说明 |
|------|------|
| SearchTool | 网络搜索工具,支持 Tavily、SerpApi、DuckDuckGo、SearXNG、Perplexity |
| MemoryTool | 记忆读写工具,对接 MemoryManager |
| NoteTool | 笔记管理工具,支持创建/读取/搜索笔记 |
| RagTool | RAG 检索增强工具,支持文档导入与语义检索 |
| TerminalTool | 终端命令执行工具,白名单机制保证安全 |
使用示例
import {SearchTool, MemoryTool} from "@agenticforge/tools-builtin";
import {FunctionCallAgent, LLMClient} from "@agenticforge/kit";
const agent = new FunctionCallAgent({
llm: new LLMClient({provider: "openai", model: "gpt-4o"}),
tools: [new SearchTool(), new MemoryTool()],
});
const result = await agent.run("搜索 AgenticFORGE 最新动态并记录到记忆");
console.log(result);