MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / get_mut

Method get_mut

crates/opencode-agent/src/agent.rs:610–612  ·  view source on GitHub ↗
(&mut self, name: &str)

Source from the content-addressed store, hash-verified

608 }
609
610 pub fn get_mut(&mut self, name: &str) -> Option<&mut AgentInfo> {
611 self.agents.get_mut(name)
612 }
613
614 pub fn register(&mut self, agent: AgentInfo) {
615 self.agents.insert(agent.name.clone(), agent);

Callers 15

load_allMethod · 0.45
merge_map_deep_valuesFunction · 0.45
merge_json_valueFunction · 0.45
merge_option_json_mapFunction · 0.45
removeMethod · 0.45
apply_cachingFunction · 0.45
merge_deep_intoFunction · 0.45
sanitize_geminiFunction · 0.45
merge_configMethod · 0.45
initMethod · 0.45
apply_custom_loadersFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected