QueuedConversation<TInput, TOutput>

Type parameters

NameType
TInputRecord<string, unknown>
TOutputRecord<string, unknown>

Hierarchy

  • EventEmitter<{ debugLog: [event: unknown] ; transcription: [transcription: Transcription] }>

    QueuedConversation

Implements

Properties

audio

audio: AudioConfig

Implementation of: Conversation.audio


input

input: TInput

The input data to be passed as the input context of a DashaScript application.

Implementation of: Conversation.input


log

Readonly log: Logger

Implementation of: Conversation.log


sip

sip: SipConfig

Implementation of: Conversation.sip

Accessors

jobId

• get jobId(): string

Returns: string

Implementation of: Conversation.jobId


jobKey

• get jobKey(): string

Returns: string

Implementation of: Conversation.jobKey

Methods

execute

execute(options?: { cancelToken?: CancelToken ; channel: "text" | "audio" }): Promise<ConversationResult<TOutput>>

Start a conversation, i.e. run the DashaScript code on a specified input.

Returns a promise that settles when the conversation has finished. It rejects on errors, and resolves on successful completion.

Parameters:

NameType
options?object
options.cancelToken?CancelToken
options.channel"text" | "audio"

Returns: Promise<ConversationResult<TOutput>>

Implementation of: Conversation


ignore

ignore(): Promise<void>

Explicitly mark this conversation as not being executed, freeing up server-side resources

Returns: Promise<void>

Found a mistake? Email us, and we'll send you a free t-shirt!

Enroll in beta

Request invite to our private Beta program for developers to join the waitlist. No spam, we promise.