bodhi-realtime-agent / UpstreamRecoveryOptions
Interface: UpstreamRecoveryOptions
Defined in: src/core/upstream-recovery-policy.ts:63
Properties
activeSilence?
optionalactiveSilence?:object
Defined in: src/core/upstream-recovery-policy.ts:98
Redial a connected session whose model stays silent after the user spoke. requiredTicks consecutive qualifying health ticks (default 3) start a redial. Omitted: off.
requiredTicks?
optionalrequiredTicks?:number
classifyClose?
optionalclassifyClose?:CloseClassifier
Defined in: src/core/upstream-recovery-policy.ts:84
Close classifier. Default classifyGeminiClose.
fatalBackoffMs?
optionalfatalBackoffMs?:number
Defined in: src/core/upstream-recovery-policy.ts:82
How long a fatal close blocks dialing. Default 300000 ms (5 min).
healthTickMs?
optionalhealthTickMs?:number
Defined in: src/core/upstream-recovery-policy.ts:91
Health tick period. Default 30000 ms; 0 disables the tick (and with it the stuck-dial check, the backstop redial and active silence).
holdSyntheticUntilFreshSpeech?
optionalholdSyntheticUntilFreshSpeech?:boolean
Defined in: src/core/upstream-recovery-policy.ts:80
Ladder, park and health-tick redials hold synthetic output (greeting, injected context) until the user is heard. Default false.
idleParkMs?
optionalidleParkMs?:number
Defined in: src/core/upstream-recovery-policy.ts:94
Park the upstream after this long with nobody there. Default 60000 ms; 0 disables.
isLive?
optionalisLive?: () =>boolean
Defined in: src/core/upstream-recovery-policy.ts:77
Whether someone is there to talk to. Default: a client is attached. A session fed without a client (a phone call through feedAudioFromClient) passes its own, such as "the call is up".
Returns
boolean
onFatal?
optionalonFatal?: (close) =>void
Defined in: src/core/upstream-recovery-policy.ts:100
A fatal close started a backoff.
Parameters
close
FatalClose & object
Returns
void
onRecovered?
optionalonRecovered?: () =>void
Defined in: src/core/upstream-recovery-policy.ts:102
The session reached ACTIVE after a fatal close was reported.
Returns
void
parkRedialDelayMs?
optionalparkRedialDelayMs?:number
Defined in: src/core/upstream-recovery-policy.ts:73
Delay from a reconnector park to its redial, giving the session's own close handling time to settle. Default 1500 ms.
redialBaseMs?
optionalredialBaseMs?:number
Defined in: src/core/upstream-recovery-policy.ts:65
First ladder delay. Default 1000 ms.
redialCapMs?
optionalredialCapMs?:number
Defined in: src/core/upstream-recovery-policy.ts:67
Ladder cap. Default 60000 ms.
redialStableMs?
optionalredialStableMs?:number
Defined in: src/core/upstream-recovery-policy.ts:70
How long a connection must live after setup-ok to reset the ladder. Default 30000 ms.
stuckConnectingMs?
optionalstuckConnectingMs?:number
Defined in: src/core/upstream-recovery-policy.ts:88
How long a session may stay in CONNECTING, with someone there, before its dial is replaced. Default 120000 ms; 0 disables; a positive value below 60000 ms is raised to 60000 ms, twice the dial deadline.