(output: Output)
| 77 | } |
| 78 | } |
| 79 | export function renderToolResultMessage(output: Output): React.ReactNode { |
| 80 | const { |
| 81 | searchCount |
| 82 | } = getSearchSummary(output.results ?? []); |
| 83 | const timeDisplay = output.durationSeconds >= 1 ? `${Math.round(output.durationSeconds)}s` : `${Math.round(output.durationSeconds * 1000)}ms`; |
| 84 | return <Box justifyContent="space-between" width="100%"> |
| 85 | <MessageResponse height={1}> |
| 86 | <Text> |
| 87 | Did {searchCount} search |
| 88 | {searchCount !== 1 ? 'es' : ''} in {timeDisplay} |
| 89 | </Text> |
| 90 | </MessageResponse> |
| 91 | </Box>; |
| 92 | } |
| 93 | export function getToolUseSummary(input: Partial<{ |
| 94 | query: string; |
| 95 | }> | undefined): string | null { |
nothing calls this directly
no test coverage detected