MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getAgentShortName

Function getAgentShortName

packages/agent-runtime/src/templates/prompts.ts:27–31  ·  view source on GitHub ↗
(agentType: AgentTemplateType)

Source from the content-addressed store, hash-verified

25 * E.g., 'codebuff/file-picker@1.0.0' -> 'file-picker'
26 */
27export function getAgentShortName(agentType: AgentTemplateType): string {
28 const withoutVersion = agentType.split('@')[0]
29 const parts = withoutVersion.split('/')
30 return parts[parts.length - 1]
31}
32
33/**
34 * Converts an agent ID into the provider-facing tool name used for direct

Callers 2

matchesAgentToolNameFunction · 0.90
getAgentToolNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected