id 和文本。如需读取事实的元数据和时间戳,请调用获取 Actor 事实。在该事实的变更历史中,以这种方式添加的事实以一条 source_kind 为 MANUAL 的 ADD 记录开始。
所需权限:
workspace_actor: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/actors/actor_5e4d3c2b1a0f/facts' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"facts": [
"Prefers metric units.",
"Works in the Singapore office."
]
}'
{
"success": true,
"data": {
"facts": [
{
"id": "fact-45c6986397ee45d6a915ae51c79516bb",
"fact": "Prefers metric units."
},
{
"id": "fact-6773ba1dc34d4efc96e715efd8935026",
"fact": "Works in the Singapore office."
}
]
}
}
向 Actor 添加一条或多条事实,按原文存储
curl -X POST 'https://app.memorylake.ai/openapi/memorylake/api/v3/workspaces/ws-fe314186ccd18cde04d6af48a5afd79f/actors/actor_5e4d3c2b1a0f/facts' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"facts": [
"Prefers metric units.",
"Works in the Singapore office."
]
}'
{
"success": true,
"data": {
"facts": [
{
"id": "fact-45c6986397ee45d6a915ae51c79516bb",
"fact": "Prefers metric units."
},
{
"id": "fact-6773ba1dc34d4efc96e715efd8935026",
"fact": "Works in the Singapore office."
}
]
}
}
POST /openapi/memorylake/api/v3/workspaces/{workspaceId}/actors/{actorId}/facts
id 和文本。如需读取事实的元数据和时间戳,请调用获取 Actor 事实。在该事实的变更历史中,以这种方式添加的事实以一条 source_kind 为 MANUAL 的 ADD 记录开始。
workspace_actor:fact_modifycurl -X POST 'https://app.memorylake.ai/openapi/memorylake/api/v3/workspaces/ws-fe314186ccd18cde04d6af48a5afd79f/actors/actor_5e4d3c2b1a0f/facts' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"facts": [
"Prefers metric units.",
"Works in the Singapore office."
]
}'
{
"success": true,
"data": {
"facts": [
{
"id": "fact-45c6986397ee45d6a915ae51c79516bb",
"fact": "Prefers metric units."
},
{
"id": "fact-6773ba1dc34d4efc96e715efd8935026",
"fact": "Works in the Singapore office."
}
]
}
}