QueuedConversation<TInput, TOutput>
Type parameters
Name | Type |
---|---|
TInput | Record<string, unknown> |
TOutput | Record<string, unknown> |
Hierarchy
EventEmitter<{
debugLog
: [event: unknown] ;transcription
: [transcription: Transcription] }>↳ QueuedConversation
Implements
- Conversation<TInput, TOutput>
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:
Name | Type |
---|---|
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>