Skip to main content

get_recent_memory

Function get_recent_memory 

Source
pub async fn get_recent_memory(
    store: &Option<Arc<TaskStore>>,
    repo: &str,
    task_id: &str,
    max: usize,
) -> Vec<MemoryEntry>
Expand description

Get recent memory entries for a task.

Returns an empty vec when the store is unavailable or the task is not found. DB read errors are logged as warnings and return an empty vec.