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

Method do_create_synthetic_message

crates/opencode-tool/src/tool.rs:650–660  ·  view source on GitHub ↗
(
        &self,
        agent: Option<String>,
        text: String,
    )

Source from the content-addressed store, hash-verified

648 }
649
650 pub async fn do_create_synthetic_message(
651 &self,
652 agent: Option<String>,
653 text: String,
654 ) -> Result<(), ToolError> {
655 if let Some(ref callback) = self.create_synthetic_message {
656 callback(self.session_id.clone(), agent, text).await
657 } else {
658 Ok(())
659 }
660 }
661
662 pub fn is_cancelled(&self) -> bool {
663 self.abort.is_cancelled()

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected