API for accessing Agent Memories
Last updated 2 months 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-12-21T14:55:09.944Z", "last_accessed_at": "2024-12-21T14:55:09.944Z", "timestamp": "2024-12-21T14:55:09.944Z", "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-12-21T14:55:09.944Z", "jobs": [ "123e4567-e89b-12d3-a456-426614174000" ] }