MCPcopy Index your code
hub / github.com/AI45Lab/Code / with_model

Method with_model

core/src/subagent.rs:324–327  ·  view source on GitHub ↗

Override the preset model.

(mut self, model: ModelConfig)

Source from the content-addressed store, hash-verified

322
323 /// Override the preset model.
324 pub fn with_model(mut self, model: ModelConfig) -> Self {
325 self.model = Some(model);
326 self
327 }
328
329 /// Override the preset model using `provider/model` or a model id.
330 pub fn with_model_ref(mut self, model_ref: impl AsRef<str>) -> Self {

Callers 7

into_agent_definitionMethod · 0.45
sessionMethod · 0.45

Calls

no outgoing calls

Tested by 1