Agent Server API 参考可在每个 部署 中的 /docs 端点获取(例如 http://localhost:8124/docs).
在侧边栏的 **Agent Server API** 部分浏览完整 API 参考,或参阅下面的端点组:
- - 助手 - 图的配置实例
- - 线程 - 一组运行的累积输出
- - 线程运行 - Invocations of a graph/assistant on a thread
- - 无状态运行 - 无状态持久化的调用
- - 定时任务 - 按计划定期运行
- - 存储 - 用于长期记忆的持久化键值存储
- - A2A - Agent 间协议端点
- - MCP - 模型上下文协议端点
- - 系统 - 健康检查和服务器信息
身份验证
对于部署到 LangSmith,需要身份验证。传递 X-Api-Key 请求头到 Agent Server。请求头的值应设置为 Agent Server 部署所在组织的有效 LangSmith API 密钥。
示例 curl command:
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
}'