// A reply is a list of segments: here a finished tool call, then the answer it led to.
// Open the row to see what the model sent and what the tool returned.
document.querySelector('aparte-chat-bubble').setSegments([
{
id: 's1',
type: 'tool_call',
status: 'resolved',
toolCall: { id: 't1', name: 'get_weather', input: { city: 'Lille' } },
result: 'Cloudy, 14 °C, wind from the west at 20 km/h.',
},
{ id: 's2', type: 'text', content: 'It is **14 °C and cloudy** in Lille, with a westerly wind. Bring a jacket.' },
]);