document.querySelector('aparte-chat-bubble').setSegments([{
id: 's1',
type: 'tool_call',
status: 'resolved',
toolCall: {
id: 't1',
name: 'ask_user',
input: { questions: [{ question: 'Which format should the report use?', header: 'Format', options: [{ title: 'Markdown' }, { title: 'PDF' }] }] },
},
result: 'The user chose: Markdown',
structuredResult: { action: 'accept', answers: [{ question: 'Which format should the report use?', value: 'Markdown' }] },
}]);