MCPcopy Create free account
hub / github.com/AI45Lab/Code / as_str

Method as_str

core/src/subagent.rs:190–199  ·  view source on GitHub ↗

Stable snake_case identifier for this role.

(self)

Source from the content-addressed store, hash-verified

188impl WorkerAgentKind {
189 /// Stable snake_case identifier for this role.
190 pub fn as_str(self) -> &'static str {
191 match self {
192 Self::ReadOnly => "read_only",
193 Self::Planner => "planner",
194 Self::Implementer => "implementer",
195 Self::Verifier => "verifier",
196 Self::Reviewer => "reviewer",
197 Self::Custom => "custom",
198 }
199 }
200
201 fn default_permissions(self) -> PermissionPolicy {
202 match self {

Callers 15

collect_artifact_urisFunction · 0.45
render_template_stringFunction · 0.45
executeMethod · 0.45
statsMethod · 0.45
collect_artifact_urisFunction · 0.45
fmtMethod · 0.45
from_strMethod · 0.45
parse_tools_fieldFunction · 0.45
tool_name_to_permissionFunction · 0.45

Calls

no outgoing calls