Flatten every text part of a conversation for input-token accounting.
Validated generation request.
Joined input text.
requestInputText({ handle: 'h', messages: [{ role: 'user', content: [{ type: 'text', text: 'Hi' }] }] }) === 'Hi'; Copy
requestInputText({ handle: 'h', messages: [{ role: 'user', content: [{ type: 'text', text: 'Hi' }] }] }) === 'Hi';
Flatten every text part of a conversation for input-token accounting.