INNER CODE UNIT · Rust
get_task_manifest_snapshot
Far-Beyond-Pulsar/Pulsar-Native · crates/agent-providers/agent_chat_tools/src/lib.rs:147
pub fn get_task_manifest_snapshot() -> Vec<Value> {
let store = task_manifest();
let guard = store.read();
guard
.tasks
.iter()
.map(|t| {
json!({
"id": t.id,
"title": t.title,
"status": t.status,
"notes": t.notes,
})
})
.collect()
}
/// Clears the task manifest — call when starting a fresh chat.