API for accessing Agent Memories
Last updated 1 month ago
IDs (if any) of jobs created as part of this request
const response = await fetch('https://api-alpha.julep.ai/api/agents/{agent_id}/memories/{memory_id}', { method: 'DELETE', headers: {}, }); const data = await response.json();
{ "id": "123e4567-e89b-12d3-a456-426614174000", "deleted_at": "2024-09-08T02:39:22.194Z", "jobs": [ "123e4567-e89b-12d3-a456-426614174000" ] }
Sorted (created_at descending)
const response = await fetch('https://api-alpha.julep.ai/api/agents/{agent_id}/memories', { method: 'GET', headers: {}, }); const data = await response.json();
{ "items": [ { "agent_id": "123e4567-e89b-12d3-a456-426614174000", "user_id": "123e4567-e89b-12d3-a456-426614174000", "content": "text", "created_at": "2024-09-08T02:39:22.194Z", "last_accessed_at": "2024-09-08T02:39:22.194Z", "timestamp": "2024-09-08T02:39:22.194Z", "sentiment": 0, "id": "123e4567-e89b-12d3-a456-426614174000", "entities": [ {} ] } ] }