(input: Partial<{
description: string;
prompt: string;
subagent_type: string;
model?: ModelAlias;
}>)
| 421 | return description; |
| 422 | } |
| 423 | export function renderToolUseTag(input: Partial<{ |
| 424 | description: string; |
| 425 | prompt: string; |
| 426 | subagent_type: string; |
| 427 | model?: ModelAlias; |
| 428 | }>): React.ReactNode { |
| 429 | const tags: React.ReactNode[] = []; |
| 430 | if (input.model) { |
| 431 | const mainModel = getMainLoopModel(); |
| 432 | const agentModel = parseUserSpecifiedModel(input.model); |
| 433 | if (agentModel !== mainModel) { |
| 434 | tags.push(<Box key="model" flexWrap="nowrap" marginLeft={1}> |
| 435 | <Text dimColor>{renderModelName(agentModel)}</Text> |
| 436 | </Box>); |
| 437 | } |
| 438 | } |
| 439 | if (tags.length === 0) { |
| 440 | return null; |
| 441 | } |
| 442 | return <>{tags}</>; |
| 443 | } |
| 444 | const INITIALIZING_TEXT = 'Initializing…'; |
| 445 | export function renderToolUseProgressMessage(progressMessages: ProgressMessage<Progress>[], { |
| 446 | tools, |
nothing calls this directly
no test coverage detected