MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / ask_permission

Method ask_permission

crates/opencode-tool/src/tool.rs:375–381  ·  view source on GitHub ↗
(&self, request: PermissionRequest)

Source from the content-addressed store, hash-verified

373 }
374
375 pub async fn ask_permission(&self, request: PermissionRequest) -> Result<(), ToolError> {
376 if let Some(ref callback) = self.ask {
377 callback(request).await
378 } else {
379 Ok(())
380 }
381 }
382
383 pub fn with_ask_question<F, Fut>(mut self, callback: F) -> Self
384 where

Callers 15

executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected