Skip to content

@agenticforge/kit

npm

一站式入口包 — 一次安装,使用全部能力。

安装

bash
npm install @agenticforge/kit

包含内容

内容
@agenticforge/core核心类型、LLM 客户端
@agenticforge/toolsTool 抽象、Registry、Chain
@agenticforge/agents5 种 Agent 实现
@agenticforge/memory多类型记忆管理器、RAG、存储适配层
@agenticforge/tools-builtin搜索、记忆、笔记、RAG、终端工具
@agenticforge/contextToken 感知上下文构建器
@agenticforge/utilsLRU 缓存、Prompt 工具

使用示例

ts
import {
  LLMClient,
  FunctionCallAgent,
  Tool,
  toolAction,
  MemoryManager,
  SearchTool,
} from "@agenticforge/kit";
import {z} from "zod";

const agent = new FunctionCallAgent({
  llm: new LLMClient({provider: "openai", model: "gpt-4o"}),
  tools: [new SearchTool()],
});

const result = await agent.run("搜索 AgenticFORGE 最新动态。");
console.log(result);

Released under the CC BY-NC-SA 4.0 License.