MCPcopy Create free account
hub / github.com/AI45Lab/Code / task_list_event

Function task_list_event

core/src/ahp/contract.rs:146–167  ·  view source on GitHub ↗
(
    run_id: &str,
    session_id: &str,
    agent_id: &str,
    depth: u32,
    tasks: &[crate::planning::Task],
)

Source from the content-addressed store, hash-verified

144}
145
146fn task_list_event(
147 run_id: &str,
148 session_id: &str,
149 agent_id: &str,
150 depth: u32,
151 tasks: &[crate::planning::Task],
152) -> a3s_ahp::AhpEvent {
153 let payload = a3s_ahp::TaskListEvent {
154 run_id: run_id.to_string(),
155 session_id: session_id.to_string(),
156 tasks: tasks_to_ahp_items(tasks),
157 updated_at: now(),
158 metadata: None,
159 };
160 ahp_event(
161 a3s_ahp::EventType::TaskList,
162 session_id,
163 agent_id,
164 depth,
165 serde_json::to_value(payload).expect("task list payload serializes"),
166 )
167}
168
169fn verification_event(
170 run_id: &str,

Callers

nothing calls this directly

Calls 4

tasks_to_ahp_itemsFunction · 0.85
nowFunction · 0.85
ahp_eventFunction · 0.85
expectMethod · 0.80

Tested by

no test coverage detected