为单次运行启用捕获
.phaseo-devtools。
配置输出目录
PHASEO_DEVTOOLS=true,并可选设置 PHASEO_DEVTOOLS_DIR。
捕获的信息
每条agent.run 或 agent.continue 记录都包含:
- Agent 和运行 ID
- 运行状态和耗时
- 输入和应用上下文
- 可用时包含模型和提供方详情
- 网关请求 ID 和原生响应 ID
- 步骤数和工具数
- 已完成的运行状态、消息、步骤和输出
- 运行抛出异常时的结构化失败详情
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
在开发和调试时记录本地 Agent SDK 运行。
import { createAgentDevtools } from "@phaseo/agent-sdk";
const result = await agent.run({
input,
client,
devtools: createAgentDevtools(),
});
.phaseo-devtools。
const devtools = createAgentDevtools({
directory: ".local/agent-runs",
});
await agent.run({ input, client, devtools });
PHASEO_DEVTOOLS=true,并可选设置 PHASEO_DEVTOOLS_DIR。
agent.run 或 agent.continue 记录都包含: