VoiceAgentSessionUpdateConfig interface

客戶端事件中接受 session.update 的穩定即時會話設定。

屬性

animation

遊戲階段的動畫設定。

audio

是會話的輸入和輸出音訊設定。

avatar

遊戲的虛擬化身設定。

greeting

在會話設定完成後,主動的助理問候語會開始。

include

服務輸出中還需包含額外欄位。

instructions

整個療程中都遵循指示。

interim_response

延遲與工具執行的臨時回應設定。

max_output_tokens

一個回應的最大輸出標記數。

metadata

最多可連接 16 組字串鍵值對。

output_modalities

輸出模式為該會話啟用。

parallel_tool_calls

模型是否能同時呼叫多個工具。

reasoning

相容即時模型的推理設定。

temperature

相容級聯管線的取樣溫度。

tools

會議中可用的工具。

tool_choice

本次會話的工具選擇行為。

type

會話類型。 一律為 realtime。

屬性詳細資料

animation

遊戲階段的動畫設定。

animation?: VoiceAgentAnimationConfig

屬性值

audio

是會話的輸入和輸出音訊設定。

audio?: VoiceAgentAudioConfig

屬性值

avatar

遊戲的虛擬化身設定。

avatar?: VoiceAgentSessionAvatarConfig

屬性值

greeting

在會話設定完成後,主動的助理問候語會開始。

greeting?: VoiceAgentGreetingConfigUnion

屬性值

include

服務輸出中還需包含額外欄位。

include?: VoiceAgentSessionIncludeOption[]

屬性值

instructions

整個療程中都遵循指示。

instructions?: string

屬性值

string

interim_response

延遲與工具執行的臨時回應設定。

interim_response?: VoiceAgentInterimResponseConfigUnion

屬性值

max_output_tokens

一個回應的最大輸出標記數。

max_output_tokens?: VoiceAgentMaxOutputTokens

屬性值

metadata

最多可連接 16 組字串鍵值對。

metadata?: Record<string, string>

屬性值

Record<string, string>

output_modalities

輸出模式為該會話啟用。

output_modalities?: VoiceOutputModality[]

屬性值

parallel_tool_calls

模型是否能同時呼叫多個工具。

parallel_tool_calls?: boolean

屬性值

boolean

reasoning

相容即時模型的推理設定。

reasoning?: RealtimeReasoning

屬性值

temperature

相容級聯管線的取樣溫度。

temperature?: number

屬性值

number

tools

會議中可用的工具。

tools?: VoiceAgentToolUnion[]

屬性值

tool_choice

本次會話的工具選擇行為。

tool_choice?: VoiceAgentToolChoice

屬性值

type

會話類型。 一律為 realtime。

type: "realtime"

屬性值

"realtime"