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

Function ahp_event

core/src/ahp/contract.rs:227–244  ·  view source on GitHub ↗
(
    event_type: a3s_ahp::EventType,
    session_id: &str,
    agent_id: &str,
    depth: u32,
    payload: serde_json::Value,
)

Source from the content-addressed store, hash-verified

225}
226
227fn ahp_event(
228 event_type: a3s_ahp::EventType,
229 session_id: &str,
230 agent_id: &str,
231 depth: u32,
232 payload: serde_json::Value,
233) -> a3s_ahp::AhpEvent {
234 a3s_ahp::AhpEvent {
235 event_type,
236 session_id: session_id.to_string(),
237 agent_id: agent_id.to_string(),
238 timestamp: now(),
239 depth,
240 payload,
241 context: None,
242 metadata: None,
243 }
244}
245
246fn task_status_to_ahp(status: crate::planning::TaskStatus) -> a3s_ahp::TaskStatus {
247 match status {

Callers 3

run_lifecycle_eventFunction · 0.85
task_list_eventFunction · 0.85
verification_eventFunction · 0.85

Calls 1

nowFunction · 0.85

Tested by

no test coverage detected