(
&self,
questions: Vec<QuestionDef>,
)
| 390 | } |
| 391 | |
| 392 | pub async fn question( |
| 393 | &self, |
| 394 | questions: Vec<QuestionDef>, |
| 395 | ) -> Result<Vec<Vec<String>>, ToolError> { |
| 396 | if let Some(ref callback) = self.ask_question { |
| 397 | callback(questions).await |
| 398 | } else { |
| 399 | Err(ToolError::ExecutionError( |
| 400 | "Question callback not configured".to_string(), |
| 401 | )) |
| 402 | } |
| 403 | } |
| 404 | |
| 405 | pub fn with_switch_agent<F, Fut>(mut self, callback: F) -> Self |
| 406 | where |