Skip to main content
agentscope-extensions-studio 把 Agent 接入 AgentScope Studio:每次 Agent 调用都会被推送到 Studio,用作可视化调试、链路回放、Human-in-the-Loop 输入。

何时使用

  • 开发期想在 Studio 里看到 Agent 的事件流、推理过程、工具调用。
  • 需要在 Studio 里发起 requestUserInput,让真人介入答题。

添加依赖

快速上手

Studio 提供的能力

  • 消息推送:每条 user / assistant / tool 消息都被同步到 Studio。
  • 链路追踪:Studio 内部会按 runName 把整次运行编排成一棵 trace 树。
  • Human-in-the-Loop:通过 StudioUserAgentrequestUserInput,让 Studio UI 弹出输入框等待真人填写后再继续。

API 概览

何时关闭

生产部署一般不挂这个 Hook(避免每次调用都向 Studio 写一份)。建议通过 Spring Profile 或 @ConditionalOnProperty 控制: