Represents a context event providing additional information to recipient agents Contains dialog history and other contextual parameters
const contextEvent = new ContextEvent({ dialogHistory: [ { speakerUri: 'tag:example.com,2025:user1', features: { text: { mimeType: 'text/plain', tokens: [{ value: 'Hello' }] } } } ], sessionData: { userId: '12345' }}); Copy
const contextEvent = new ContextEvent({ dialogHistory: [ { speakerUri: 'tag:example.com,2025:user1', features: { text: { mimeType: 'text/plain', tokens: [{ value: 'Hello' }] } } } ], sessionData: { userId: '12345' }});
Creates a new ContextEvent instance
ContextEvent configuration options
Readonly
Optional
Convert to JSON string
Convert to plain object
Static
Represents a context event providing additional information to recipient agents Contains dialog history and other contextual parameters
Example