id 和文本。如需读取事实的元数据和时间戳,请调用获取 Agent 事实。在该事实的变更历史中,以这种方式添加的事实以一条 source_kind 为 MANUAL 的 ADD 记录开始。
所需权限:
workspace_agent:fact_modifyDocumentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X POST 'https://app.memorylake.ai/openapi/memorylake/api/v3/workspaces/ws-fe314186ccd18cde04d6af48a5afd79f/agents/agent-f8bf71ab17ed8eccad8c0e8ae708273f/facts' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"facts": [
"Escalates billing disputes to the finance team.",
"Reports times in UTC."
]
}'
{
"success": true,
"data": {
"facts": [
{
"id": "fact-45c6986397ee45d6a915ae51c79516bb",
"fact": "Escalates billing disputes to the finance team."
},
{
"id": "fact-6773ba1dc34d4efc96e715efd8935026",
"fact": "Reports times in UTC."
}
]
}
}
向 Agent 添加一条或多条事实,按原文存储
curl -X POST 'https://app.memorylake.ai/openapi/memorylake/api/v3/workspaces/ws-fe314186ccd18cde04d6af48a5afd79f/agents/agent-f8bf71ab17ed8eccad8c0e8ae708273f/facts' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"facts": [
"Escalates billing disputes to the finance team.",
"Reports times in UTC."
]
}'
{
"success": true,
"data": {
"facts": [
{
"id": "fact-45c6986397ee45d6a915ae51c79516bb",
"fact": "Escalates billing disputes to the finance team."
},
{
"id": "fact-6773ba1dc34d4efc96e715efd8935026",
"fact": "Reports times in UTC."
}
]
}
}
POST /openapi/memorylake/api/v3/workspaces/{workspaceId}/agents/{agentId}/facts
id 和文本。如需读取事实的元数据和时间戳,请调用获取 Agent 事实。在该事实的变更历史中,以这种方式添加的事实以一条 source_kind 为 MANUAL 的 ADD 记录开始。
workspace_agent:fact_modifycurl -X POST 'https://app.memorylake.ai/openapi/memorylake/api/v3/workspaces/ws-fe314186ccd18cde04d6af48a5afd79f/agents/agent-f8bf71ab17ed8eccad8c0e8ae708273f/facts' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"facts": [
"Escalates billing disputes to the finance team.",
"Reports times in UTC."
]
}'
{
"success": true,
"data": {
"facts": [
{
"id": "fact-45c6986397ee45d6a915ae51c79516bb",
"fact": "Escalates billing disputes to the finance team."
},
{
"id": "fact-6773ba1dc34d4efc96e715efd8935026",
"fact": "Reports times in UTC."
}
]
}
}