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

Method from_builtin

crates/opencode-agent/src/agent.rs:177–186  ·  view source on GitHub ↗
(builtin: BuiltinAgent)

Source from the content-addressed store, hash-verified

175
176impl AgentInfo {
177 pub fn from_builtin(builtin: BuiltinAgent) -> Self {
178 match builtin {
179 BuiltinAgent::Build => Self::build(),
180 BuiltinAgent::Plan => Self::plan(),
181 BuiltinAgent::General => Self::general(),
182 BuiltinAgent::Explore => Self::explore(),
183 BuiltinAgent::Compaction => Self::compaction(),
184 BuiltinAgent::Title => Self::title(),
185 }
186 }
187
188 pub fn default_agent() -> Self {
189 Self::general()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected