({
bytes,
code,
codeText,
result
}: Output, _progressMessagesForMessage: ProgressMessage<ToolProgressData>[], {
verbose
}: {
verbose: boolean;
})
| 32 | </MessageResponse>; |
| 33 | } |
| 34 | export function renderToolResultMessage({ |
| 35 | bytes, |
| 36 | code, |
| 37 | codeText, |
| 38 | result |
| 39 | }: Output, _progressMessagesForMessage: ProgressMessage<ToolProgressData>[], { |
| 40 | verbose |
| 41 | }: { |
| 42 | verbose: boolean; |
| 43 | }): React.ReactNode { |
| 44 | const formattedSize = formatFileSize(bytes); |
| 45 | if (verbose) { |
| 46 | return <Box flexDirection="column"> |
| 47 | <MessageResponse height={1}> |
| 48 | <Text> |
| 49 | Received <Text bold>{formattedSize}</Text> ({code} {codeText}) |
| 50 | </Text> |
| 51 | </MessageResponse> |
| 52 | <Box flexDirection="column"> |
| 53 | <Text>{result}</Text> |
| 54 | </Box> |
| 55 | </Box>; |
| 56 | } |
| 57 | return <MessageResponse height={1}> |
| 58 | <Text> |
| 59 | Received <Text bold>{formattedSize}</Text> ({code} {codeText}) |
| 60 | </Text> |
| 61 | </MessageResponse>; |
| 62 | } |
| 63 | export function getToolUseSummary(input: Partial<{ |
| 64 | url: string; |
| 65 | prompt: string; |
nothing calls this directly
no test coverage detected