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

Function persisted_model_name

core/src/agent_api/session_persistence.rs:321–327  ·  view source on GitHub ↗
(model_name: &str)

Source from the content-addressed store, hash-verified

319}
320
321fn persisted_model_name(model_name: &str) -> Option<String> {
322 if model_name.is_empty() || model_name == "unknown" {
323 None
324 } else {
325 Some(model_name.to_string())
326 }
327}
328
329fn model_config_data(model_name: &str) -> Option<LlmConfigData> {
330 let (provider, model) = model_name.split_once('/')?;

Callers 1

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected