{part.text}
; } })}{part.text}
; case 'tool-addResource': case 'tool-getInformation': return (call{part.state === 'output-available' ? 'ed' : 'ing'}{' '} tool: {part.type}
{JSON.stringify(part.input, null, 2)}
);
}
})}
{message.role === 'user' ? 'You' : 'Claude 4'}
{message.parts.map((part, index) => { if (part.type === 'text') { return (
View reasoning
{part.text}
);
}
})}
{part.text};
}
})}
{part.text};
}
if (part.type === 'text') {
return {part.text};
}
return null;
})}
Can I retrieve the weather for {invocation.input.city}?
{part.text};
}
})}
{JSON.stringify(part, null, 2)}
);
case 'input-available':
return (
{JSON.stringify(part.input, null, 2)}
)}
{part.state === 'output-available' && (
{JSON.stringify(part.output, null, 2)}
)}
{part.state === 'output-error' && (
{JSON.stringify(part.input, null, 2)};
case 'input-available':
return {JSON.stringify(part.input, null, 2)};
case 'output-available':
return {JSON.stringify(part.output, null, 2)};
case 'output-error':
return Condition: {weather}
Temperature: {temperature}°C
Symbol: {symbol}
Price: ${price}
{notification?.name}
{notification?.message}
{notification?.name}
{notification?.message}
{notification?.name}
{notification?.message}
{notification?.name}
{notification?.message}
{notification?.name}
{notification?.message}
What can we build together?
{data.content}
{data.footer}
{object.content.split(/(\[\d+\])/).map((part, index) => {
const citationMatch = part.match(/\[(\d+)\]/);
if (citationMatch) {
const citationNumber = citationMatch[1];
const citation = object.citations?.find(
(c: any) => c.number === citationNumber,
);
if (citation) {
return (
This plan outlines the implementation strategy...
Generating app, this may take a few seconds...