(
&self,
session_id: String,
prompt: String,
)
| 462 | } |
| 463 | |
| 464 | pub async fn do_prompt_subsession( |
| 465 | &self, |
| 466 | session_id: String, |
| 467 | prompt: String, |
| 468 | ) -> Result<String, ToolError> { |
| 469 | if let Some(ref callback) = self.prompt_subsession { |
| 470 | callback(session_id, prompt).await |
| 471 | } else { |
| 472 | Err(ToolError::ExecutionError( |
| 473 | "Subsession prompt callback not configured".to_string(), |
| 474 | )) |
| 475 | } |
| 476 | } |
| 477 | |
| 478 | pub fn with_file_time_assert<F, Fut>(mut self, callback: F) -> Self |
| 479 | where |