API for accessing Agent Memories
Last updated 1 month ago
Sorted (created_at descending)
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?query=text', { 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-11-05T19:08:16.927Z", "last_accessed_at": "2024-11-05T19:08:16.927Z", "timestamp": "2024-11-05T19:08:16.927Z", "sentiment": 0, "id": "123e4567-e89b-12d3-a456-426614174000", "entities": [ {} ] } ] }
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-11-05T19:08:16.927Z", "jobs": [ "123e4567-e89b-12d3-a456-426614174000" ] }