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

Method do_get_last_model

crates/opencode-tool/src/tool.rs:631–637  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

629 }
630
631 pub async fn do_get_last_model(&self) -> Option<String> {
632 if let Some(ref callback) = self.get_last_model {
633 callback(self.session_id.clone()).await.ok().flatten()
634 } else {
635 None
636 }
637 }
638
639 pub fn with_create_synthetic_message<F, Fut>(mut self, callback: F) -> Self
640 where

Callers 2

executeMethod · 0.80
executeMethod · 0.80

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected