( context: AgentContext | undefined, )
| 122 | * Type guard to check if context is a TeammateAgentContext. |
| 123 | */ |
| 124 | export function isTeammateAgentContext( |
| 125 | context: AgentContext | undefined, |
| 126 | ): context is TeammateAgentContext { |
| 127 | if (isAgentSwarmsEnabled()) { |
| 128 | return context?.agentType === 'teammate' |
| 129 | } |
| 130 | return false |
| 131 | } |
| 132 | |
| 133 | /** |
| 134 | * Get the subagent name suitable for analytics logging. |
nothing calls this directly
no test coverage detected