(
&self,
session_id: &str,
prompt: &str,
response: &str,
)
| 1345 | } |
| 1346 | |
| 1347 | async fn on_turn_complete( |
| 1348 | &self, |
| 1349 | session_id: &str, |
| 1350 | prompt: &str, |
| 1351 | response: &str, |
| 1352 | ) -> anyhow::Result<()> { |
| 1353 | let mut calls = self.on_turn_calls.write().await; |
| 1354 | calls.push(( |
| 1355 | session_id.to_string(), |
| 1356 | prompt.to_string(), |
| 1357 | response.to_string(), |
| 1358 | )); |
| 1359 | Ok(()) |
| 1360 | } |
| 1361 | } |
| 1362 | |
| 1363 | #[tokio::test] |
no test coverage detected