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

Method do_prompt_subsession

crates/opencode-tool/src/tool.rs:464–476  ·  view source on GitHub ↗
(
        &self,
        session_id: String,
        prompt: String,
    )

Source from the content-addressed store, hash-verified

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

Callers 2

executeMethod · 0.80
executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected