Properties Static default default : { llmNode ( agent ,
chatCtx ,
toolCtx ,
modelSettings ) : Promise < null | ReadableStream < string | ChatChunk > > ; realtimeAudioOutputNode ( _agent ,
audio ,
_modelSettings ) : Promise < null | ReadableStream < AudioFrame > > ; sttNode ( agent ,
audio ,
_modelSettings ) : Promise < null | ReadableStream < string | SpeechEvent > > ; transcriptionNode ( agent ,
text ,
_modelSettings ) : Promise < null | ReadableStream < string | TimedString > > ; ttsNode ( agent ,
text ,
_modelSettings ) : Promise < null | ReadableStream < AudioFrame > > ; } = ... Type declaration llm Node : functionllm Node ( agent , chatCtx , toolCtx , modelSettings ) : Promise < null | ReadableStream < string | ChatChunk > > Returns Promise < null | ReadableStream < string | ChatChunk > > realtime Audio Output Node : functionrealtime Audio Output Node ( _agent , audio , _modelSettings ) : Promise < null | ReadableStream < AudioFrame > > Parameters _agent : Agent < any > audio : ReadableStream < AudioFrame > | AsyncIterable < AudioFrame , any , any > _modelSettings : ModelSettings Returns Promise < null | ReadableStream < AudioFrame > > stt Node : functionstt Node ( agent , audio , _modelSettings ) : Promise < null | ReadableStream < string | SpeechEvent > > Parameters agent : Agent < any > audio : ReadableStream < AudioFrame > | AsyncIterable < AudioFrame , any , any > _modelSettings : ModelSettings Returns Promise < null | ReadableStream < string | SpeechEvent > > transcription Node : functiontranscription Node ( agent , text , _modelSettings ) : Promise < null | ReadableStream < string | TimedString > > Returns Promise < null | ReadableStream < string | TimedString > > tts Node : functiontts Node ( agent , text , _modelSettings ) : Promise < null | ReadableStream < AudioFrame > > Parameters agent : Agent < any > text : ReadableStream < string > | AsyncIterable < string , any , any > _modelSettings : ModelSettings Returns Promise < null | ReadableStream < AudioFrame > > Accessors chat Ctx get chatCtx( ) : ReadonlyChatContext Returns ReadonlyChatContext id get id( ) : string Returns string min Consecutive Speech Delay get minConsecutiveSpeechDelay( ) : undefined | number Returns undefined | number turn Handling get turnHandling( ) : undefined | Partial < TurnHandlingOptions > Returns undefined | Partial < TurnHandlingOptions > use Tts Aligned Transcript get useTtsAlignedTranscript( ) : undefined | boolean Returns undefined | boolean vad get vad( ) : undefined | VAD Returns undefined | VAD Methods get Activity Or Throw get Activity Or Throw ( ) : AgentActivity Returns AgentActivity on Enter on Enter ( ) : Promise < void > Returns Promise < void > on Exit on Exit ( ) : Promise < void > Returns Promise < void > on User Turn Completed on User Turn Completed ( _chatCtx , _newMessage ) : Promise < void > Returns Promise < void > on User Turn Exceeded on User Turn Exceeded ( ev ) : Promise < void > Returns Promise < void > realtime Audio Output Node realtime Audio Output Node ( audio , modelSettings ) : Promise < null | ReadableStream < AudioFrame > > Parameters audio : ReadableStream < AudioFrame > | AsyncIterable < AudioFrame , any , any > modelSettings : ModelSettings Returns Promise < null | ReadableStream < AudioFrame > > stt Node stt Node ( audio , modelSettings ) : Promise < null | ReadableStream < string | SpeechEvent > > Parameters audio : ReadableStream < AudioFrame > | AsyncIterable < AudioFrame , any , any > modelSettings : ModelSettings Returns Promise < null | ReadableStream < string | SpeechEvent > > transcription Node transcription Node ( text , modelSettings ) : Promise < null | ReadableStream < string | TimedString > > Returns Promise < null | ReadableStream < string | TimedString > > tts Node tts Node ( text , modelSettings ) : Promise < null | ReadableStream < AudioFrame > > Parameters text : ReadableStream < string > | AsyncIterable < string , any , any > modelSettings : ModelSettings Returns Promise < null | ReadableStream < AudioFrame > > update Chat Ctx update Chat Ctx ( chatCtx ) : Promise < void > Returns Promise < void > update Instructions update Instructions ( instructions ) : Promise < void > Returns Promise < void > update Options update Options ( options ? ) : Promise < void > Returns Promise < void > update Tools update Tools ( tools ) : Promise < void > Returns Promise < void >
The running duplex provider session, for provider-specific APIs.