AgentConnect
Agents

Search external-memory records

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

授权

bearerAuth
授权Bearer <token>

位置: header

路径参数

orgId*string
id*string

请求主体

application/json

TypeScript 定义

在 TypeScript 中使用 request body 类型。

响应主体

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/orgs/string/agents/string/memory/records/search" \  -H "Content-Type: application/json" \  -d '{    "query": "string"  }'
{  "records": [    {      "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"    }  ],  "nextCursor": "string"}