PATCH /openapi/memorylake/api/v3/agents/{id}
所需权限:
agent:modify路径参数
string
必填
Agent 标识符
请求体
string
更新后的 Agent 名称
string
更新后的 Agent 描述
object
更新后的键值对。将完全替换现有的元数据。
curl -X PATCH 'https://app.memorylake.ai/openapi/memorylake/api/v3/agents/agt_r8k2m1n3' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"name": "Support Assistant (Production)",
"description": "Production support agent with knowledge base integration"
}'
响应
object
显示 Agent 对象
显示 Agent 对象
string
Agent 唯一标识符
string
更新后的 Agent 名称
string
更新后的 Agent 描述
object
用于存储 Agent 附加信息的任意键值对
integer
当前活跃版本号
string
Agent 使用的模型
array
Agent 支持的能力标识符列表
object
array
string
用于外部系统集成的自定义标识符
string
与此 Agent 关联的 Actor 标识符
integer
此 Agent 可用的最新版本号
string
用于指示 Agent 的系统提示词
object
模型特定设置,如温度和最大 token 数
object
工具和数据源的运行时绑定配置
string
创建时间戳
string
最后更新时间戳
{
"success": true,
"data": {
"id": "agt_r8k2m1n3",
"name": "Support Assistant (Production)",
"description": "Production support agent with knowledge base integration",
"metadata": {
"team": "customer-success",
"tier": "production"
},
"version": 3,
"model": "gpt-4o",
"capabilities": ["tool_use", "memory_read", "memory_write"],
"policies": {
"max_turns": 20,
"max_tool_calls": 10,
"allow_tools": ["search_kb", "create_ticket"],
"deny_tools": [],
"subagent_timeout": 300,
"subagent_max_concurrency": 3
},
"output": {
"mode": "text",
"json_schema": null
},
"subagents": [
{
"name": "ticket-creator",
"mode": "delegate",
"context": "Create support tickets from conversation context",
"inherit_tools": false
}
],
"skills": [
{
"skill_id": "skl_kb_search",
"skill_version": 2
}
],
"custom_id": "support-assistant-v1",
"actor_id": "act_p4q7w2x9",
"latest_version": 3,
"system_prompt": "You are a helpful support assistant. Use the knowledge base to answer questions accurately.",
"model_settings": {
"temperature": 0.7,
"max_tokens": 4096
},
"runtime_bindings": {
"knowledge_base": "kb_prod_docs"
},
"created_at": "2025-03-10T09:00:00Z",
"updated_at": "2025-05-01T11:45:00Z"
}
}