(
run_id: &str,
session_id: &str,
agent_id: &str,
depth: u32,
reason: Option<&str>,
)
| 92 | } |
| 93 | |
| 94 | pub fn cancelled_run_event( |
| 95 | run_id: &str, |
| 96 | session_id: &str, |
| 97 | agent_id: &str, |
| 98 | depth: u32, |
| 99 | reason: Option<&str>, |
| 100 | ) -> a3s_ahp::AhpEvent { |
| 101 | run_lifecycle_event(RunLifecycleParams { |
| 102 | run_id, |
| 103 | session_id, |
| 104 | agent_id, |
| 105 | depth, |
| 106 | status: a3s_ahp::RunStatus::Cancelled, |
| 107 | prompt: None, |
| 108 | result_summary: None, |
| 109 | error: reason.map(str::to_string), |
| 110 | }) |
| 111 | } |
| 112 | |
| 113 | struct RunLifecycleParams<'a> { |
| 114 | run_id: &'a str, |
no test coverage detected