AgentConnect
Agents

Create an external-memory record

POST
/v1/orgs/{orgId}/agents/{id}/memory/records

授权

bearerAuth
授权Bearer <token>

位置: header

路径参数

orgId*string
id*string

请求主体

application/json

TypeScript 定义

在 TypeScript 中使用 request body 类型。

响应主体

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/orgs/string/agents/string/memory/records" \  -H "Content-Type: application/json" \  -d '{    "text": "string"  }'
{  "record": {    "id": "string",    "text": "string",    "score": 0,    "scope": {      "kind": "agent",      "key": "string"    },    "metadata": {      "property1": null,      "property2": null    },    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "provenance": {      "pluginId": "string",      "backendId": "string"    },    "version": "string"  }}