MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / question

Method question

crates/opencode-tool/src/tool.rs:392–403  ·  view source on GitHub ↗
(
        &self,
        questions: Vec<QuestionDef>,
    )

Source from the content-addressed store, hash-verified

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

Callers 1

executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected