VoiceAgentHandoffCondition interface

One allowed outgoing handoff from an inline voice subagent.

Properties

cancel_on_interruption

Whether user interruption before commit cancels the pending handoff. If omitted, the service defaults to false.

condition

Natural-language routing guidance supplied alongside the active subagent instructions, from 1 through 500 characters. This is not an executable Boolean predicate.

delay_ms

The minimum delay before target activation, in milliseconds, from 0 through 10000. If omitted, the service defaults to 0.

id

The handoff condition identifier.

target

The target subagent identifier or $entrypoint. The containing subagent supplies the source.

target_response

Whether Voice Live automatically starts a response after target activation. If omitted, the service defaults to auto.

transfer_message

Optional deterministic source-voice announcement played before target activation. Supported by cascaded pipelines and realtime pipelines using local Azure TTS; model-native realtime voice requires omission or null. At most 500 characters. If omitted or null, no announcement is played.

Property Details

cancel_on_interruption

Whether user interruption before commit cancels the pending handoff. If omitted, the service defaults to false.

cancel_on_interruption?: boolean

Property Value

boolean

condition

Natural-language routing guidance supplied alongside the active subagent instructions, from 1 through 500 characters. This is not an executable Boolean predicate.

condition: string

Property Value

string

delay_ms

The minimum delay before target activation, in milliseconds, from 0 through 10000. If omitted, the service defaults to 0.

delay_ms?: number

Property Value

number

id

The handoff condition identifier.

id: string

Property Value

string

target

The target subagent identifier or $entrypoint. The containing subagent supplies the source.

target: string

Property Value

string

target_response

Whether Voice Live automatically starts a response after target activation. If omitted, the service defaults to auto.

target_response?: VoiceAgentHandoffTargetResponse

Property Value

transfer_message

Optional deterministic source-voice announcement played before target activation. Supported by cascaded pipelines and realtime pipelines using local Azure TTS; model-native realtime voice requires omission or null. At most 500 characters. If omitted or null, no announcement is played.

transfer_message?: string

Property Value

string