QueuedConversation\<TInput, TOutput>

A conversation between an Application and its conversational partner.

Extends

  • EventEmitter<{ debugLog: [unknown]; dslLog: [string, string]; transcription: [Transcription]; }>

Type Parameters

• TInput extends Record<string, unknown>

• TOutput extends Record<string, unknown>

Implements

Properties

audio

Implementation of


input

input: TInput

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

Implementation of


log

readonly log: Logger

Implementation of


sip

Implementation of

Accessors

jobId

Get Signature

get jobId(): string

Returns

string

Implementation of


jobKey

Get Signature

get jobKey(): string

Returns

string

Implementation of

Methods

execute()

execute(options?): 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

options?

cancelToken

channel

"text" | "audio"

emulation

Test-mode emulation config: scripted a2a connects, declarative external/HTTP/dynamic-tool outcomes, and the LLM backend-simulation prompt. Same semantics as SingleConversation.execute. Serialized into the experimental job map.

experimental

Record<string, string>

retention

Partial<ConversationRetentionPolicy>

Conversation-scope retention policy (per-call override; captured by value at start of execute()). application is intentionally absent — that scope is decided at deploy-time only.

verboseDevlog

boolean

Opt into the full developer-log stream. When unset (default), the runtime omits internal interpreter state-switch, GPT request/response, and recognition messages from the live debug stream to reduce bandwidth. The persisted devlog (downloadable via getDebugLog) is unaffected.

Returns

Promise<ConversationResult<TOutput>>

Implementation of


ignore()

ignore(): Promise<void>

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

Returns

Promise<void>


sendEvent()

sendEvent(eventName, eventValue): Promise<void>

Parameters

eventName

string

eventValue

Record<string, string>

Returns

Promise<void>

Implementation of


setDynamicTool()

setDynamicTool<T>(options, handler?): Promise<void>

Type Parameters

• T extends TSchema

Parameters

options

DynamicToolScheme<T>

handler?

(args, conv) => unknown

Returns

Promise<void>

Implementation of


setDynamicToolRaw()

setDynamicToolRaw(options, handler?): Promise<void>

Parameters

options

DynamicToolDescription

handler?

(args, conv) => unknown

Returns

Promise<void>

Implementation of

Found a mistake? Let us know.

Enroll in beta

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