INNER CODE UNIT · Rust
task_manifest
Far-Beyond-Pulsar/Pulsar-Native · crates/agent-providers/agent_chat_tools/src/lib.rs:139
fn task_manifest() -> ResourceHandle<TaskManifest> {
EngineContext::global()
.expect("EngineContext not initialized")
.store
.get_or_init::<TaskManifest>()
}
/// Returns a JSON snapshot of current tasks for injection into system messages.
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,