Validates a dialog event object against the Dialog Event schema
Dialog event data to validate
Validation result
const dialogEvent = { id: 'de:123', speakerUri: 'tag:example.com,2025:user1', span: { startTime: '2025-01-01T00:00:00Z' }, features: { text: { mimeType: 'text/plain', tokens: [{ value: 'Hello' }] } }};const result = validateDialogEvent(dialogEvent);console.log(result.valid); // true or false Copy
const dialogEvent = { id: 'de:123', speakerUri: 'tag:example.com,2025:user1', span: { startTime: '2025-01-01T00:00:00Z' }, features: { text: { mimeType: 'text/plain', tokens: [{ value: 'Hello' }] } }};const result = validateDialogEvent(dialogEvent);console.log(result.valid); // true or false
Validates a dialog event object against the Dialog Event schema