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

Method new

core/src/subagent.rs:91–96  ·  view source on GitHub ↗

Create a model override that inherits the default provider.

(model: impl Into<String>)

Source from the content-addressed store, hash-verified

89impl ModelConfig {
90 /// Create a model override that inherits the default provider.
91 pub fn new(model: impl Into<String>) -> Self {
92 Self {
93 model: model.into(),
94 provider: None,
95 }
96 }
97
98 /// Create a model override from provider and model parts.
99 pub fn with_provider(provider: impl Into<String>, model: impl Into<String>) -> Self {

Callers

nothing calls this directly

Calls 2

builtin_agentsFunction · 0.85
registerMethod · 0.45

Tested by

no test coverage detected