MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / map_loaded_agent_mode

Function map_loaded_agent_mode

crates/opencode-agent/src/agent.rs:802–808  ·  view source on GitHub ↗
(mode: LoadedAgentMode)

Source from the content-addressed store, hash-verified

800}
801
802fn map_loaded_agent_mode(mode: LoadedAgentMode) -> AgentMode {
803 match mode {
804 LoadedAgentMode::Primary => AgentMode::Primary,
805 LoadedAgentMode::Subagent => AgentMode::Subagent,
806 LoadedAgentMode::All => AgentMode::All,
807 }
808}
809
810fn parse_model_ref(raw: &str) -> Option<ModelRef> {
811 let raw = raw.trim();

Callers 1

apply_agent_configMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected