AgentConnect
Agents

Replace a memory file

Replace one memory file (?path defaults to MEMORY.md) through the owning daemon, whatever the memory home, since the daemon stamps the header, regenerates the index and records the change; returns the written size/mtime. ifMatchMtime (optional) is optimistic concurrency — a 409 if the file changed under you. Requires edit permission. 503 when unplaced or the daemon is offline. 503 also when the memory home of the agent is not reachable right now; code says why.

PUT
/v1/orgs/{orgId}/agents/{id}/memory/file

授权

bearerAuth
授权Bearer <token>

位置: header

路径参数

orgId*string
id*string

查询参数

channelKey?string

A place layer's key, from GET /agents/:id/memory/channels; absent means the shared layer. A layer whose conversation shows the caller no session in the console answers 404, as an absent one does.

匹配^[A-Za-z0-9._-]+$
长度1 <= length <= 120
path?string
长度1 <= length

请求主体

application/json

TypeScript 定义

在 TypeScript 中使用 request body 类型。

响应主体

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/orgs/string/agents/string/memory/file" \  -H "Content-Type: application/json" \  -d '{    "content": "string"  }'
{  "path": "string",  "size": 0,  "mtime": "string"}