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

Method as_str

crates/opencode-agent/src/agent.rs:42–51  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

40
41impl BuiltinAgent {
42 pub const fn as_str(self) -> &'static str {
43 match self {
44 Self::Build => "build",
45 Self::Plan => "plan",
46 Self::General => "general",
47 Self::Explore => "explore",
48 Self::Compaction => "compaction",
49 Self::Title => "title",
50 }
51 }
52
53 pub const fn all() -> [BuiltinAgent; 6] {
54 [

Callers 4

newMethod · 0.45
default_agentMethod · 0.45
generateMethod · 0.45

Calls

no outgoing calls

Tested by 1