Agent Chat UI
返回import agent_chat_ui from ‘/snippets/oss/agent-chat-ui.mdx’;
<agent_chat_ui />
连接到你的 Agent
Agent Chat UI 可以连接到 本地 和 部署的 Agent。
启动 Agent Chat UI 后,你需要配置它以连接到你的 Agent:
- Graph ID:输入你的 graph 名称(在
langgraph.json文件的graphs下找到) - 部署 URL:你的 Agent 服务器的端点(例如,本地开发使用
http://localhost:2024,或使用部署的 Agent 的 URL) - LangSmith API 密钥(可选):添加你的 LangSmith API 密钥(如果你使用本地 Agent 服务器则不需要)
配置完成后,Agent Chat UI 将自动获取并显示来自你的 Agent 的任何中断的线程。