@openfloor/protocol - v0.0.4
    Preparing search index...

    Class UtteranceEvent

    Represents an utterance event containing spoken or written dialog This is the primary communication event between conversants

    const utteranceEvent = new UtteranceEvent({
    dialogEvent: {
    speakerUri: 'tag:example.com,2025:user1',
    features: {
    text: { mimeType: 'text/plain', tokens: [{ value: 'Hello world' }] }
    }
    },
    to: { speakerUri: 'tag:example.com,2025:agent1' }
    });

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    dialogEvent: DialogEvent
    eventType: string
    parameters: Record<string, unknown>
    reason?: string
    to?: To

    Methods

    • Convert to plain object

      Returns Record<string, unknown>