MCPcopy Create free account
hub / github.com/AI45Lab/Code / model_ref

Method model_ref

core/src/subagent.rs:120–125  ·  view source on GitHub ↗

Return the model as `provider/model` when a provider is set.

(&self)

Source from the content-addressed store, hash-verified

118
119 /// Return the model as `provider/model` when a provider is set.
120 pub fn model_ref(&self) -> String {
121 match &self.provider {
122 Some(provider) => format!("{}/{}", provider, self.model),
123 None => self.model.clone(),
124 }
125 }
126}
127
128/// Cattle-style worker agent role.

Callers 2

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected