主题
LangSmith Deployment 的 Agent Server API 参考
Agent Server API 参考在每个部署内的 /docs 端点提供(例如 http://localhost:8124/docs)。
在侧边栏的 Agent Server API 分区中浏览完整 API 参考,或查看下方的端点分组:
- Assistants - graph 的已配置实例
- Threads - 一组运行的累积输出
- Thread Runs - 在某个线程上对 graph/assistant 的调用
- Stateless Runs - 不持久化状态的调用
- Crons - 按计划定期运行
- Store - 用于长期记忆的持久化键值存储
- A2A - Agent-to-Agent 协议端点
- MCP - Model Context Protocol 端点
- System - 健康检查与服务器信息
身份认证
部署到 LangSmith 时,必须进行身份验证。向 Agent Server 发送每个请求时都要带上 X-Api-Key 请求头。该头的值应设置为 Agent Server 所在组织的有效 LangSmith API key。
示例 curl 命令:
shell
curl --request POST \
--url http://localhost:8124/assistants/search \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: LANGSMITH_API_KEY' \
--data '{
"metadata": {},
"limit": 10,
"offset": 0
}'