(agentType: AgentTemplateType)
| 25 | * E.g., 'codebuff/file-picker@1.0.0' -> 'file-picker' |
| 26 | */ |
| 27 | export 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 |
no outgoing calls
no test coverage detected