({
url,
prompt
}: Partial<{
url: string;
prompt: string;
}>, {
verbose
}: {
theme?: string;
verbose: boolean;
})
| 7 | import { formatFileSize, truncate } from '../../utils/format.js'; |
| 8 | import type { Output } from './WebFetchTool.js'; |
| 9 | export function renderToolUseMessage({ |
| 10 | url, |
| 11 | prompt |
| 12 | }: Partial<{ |
| 13 | url: string; |
| 14 | prompt: string; |
| 15 | }>, { |
| 16 | verbose |
| 17 | }: { |
| 18 | theme?: string; |
| 19 | verbose: boolean; |
| 20 | }): React.ReactNode { |
| 21 | if (!url) { |
| 22 | return null; |
| 23 | } |
| 24 | if (verbose) { |
| 25 | return `url: "${url}"${verbose && prompt ? `, prompt: "${prompt}"` : ''}`; |
| 26 | } |
| 27 | return url; |
| 28 | } |
| 29 | export function renderToolUseProgressMessage(): React.ReactNode { |
| 30 | return <MessageResponse height={1}> |
| 31 | <Text dimColor>Fetching…</Text> |
nothing calls this directly
no outgoing calls
no test coverage detected