( agent: AgentDefinition, )
| 76 | * Returns the model alias or 'inherit' for display purposes. |
| 77 | */ |
| 78 | export function resolveAgentModelDisplay( |
| 79 | agent: AgentDefinition, |
| 80 | ): string | undefined { |
| 81 | const model = agent.model || getDefaultSubagentModel() |
| 82 | if (!model) return undefined |
| 83 | return model === 'inherit' ? 'inherit' : model |
| 84 | } |
| 85 | |
| 86 | /** |
| 87 | * Get a human-readable label for the source that overrides an agent. |
no test coverage detected