Sessions
Create memory search session
Create a session for a MEMORY_SEARCH agent task. Use guardRails.memoryTypes to restrict which memories the task can search.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/sessions" \ -H "Content-Type: application/json" \ -d '{ "createAgentTask": { "taskType": "MEMORY_SEARCH", "guardRails": { "memoryTypes": [ { "memoryTypeId": "mty_cf4fe6caa10b4009a8b103d2d5d64042", "memoryIds": [ "mem_cf4fe6caa10b4009a8b103d2d5d64042" ] } ] } } }'{ "id": "example-session-id", "createdAt": "2024-04-08T17:02:27.887295Z", "type": "CREATE_AGENT_TASK", "clientToken": "client token"}