Skip to content

bodhi-realtime-agent / UpstreamRecoveryOptions

Interface: UpstreamRecoveryOptions ​

Defined in: src/core/upstream-recovery-policy.ts:63

Properties ​

activeSilence? ​

optional activeSilence?: 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? ​

optional requiredTicks?: number


classifyClose? ​

optional classifyClose?: CloseClassifier

Defined in: src/core/upstream-recovery-policy.ts:84

Close classifier. Default classifyGeminiClose.


fatalBackoffMs? ​

optional fatalBackoffMs?: number

Defined in: src/core/upstream-recovery-policy.ts:82

How long a fatal close blocks dialing. Default 300000 ms (5 min).


healthTickMs? ​

optional healthTickMs?: 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? ​

optional holdSyntheticUntilFreshSpeech?: 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? ​

optional idleParkMs?: 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? ​

optional isLive?: () => 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? ​

optional onFatal?: (close) => void

Defined in: src/core/upstream-recovery-policy.ts:100

A fatal close started a backoff.

Parameters ​

close ​

FatalClose & object

Returns ​

void


onRecovered? ​

optional onRecovered?: () => void

Defined in: src/core/upstream-recovery-policy.ts:102

The session reached ACTIVE after a fatal close was reported.

Returns ​

void


parkRedialDelayMs? ​

optional parkRedialDelayMs?: 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? ​

optional redialBaseMs?: number

Defined in: src/core/upstream-recovery-policy.ts:65

First ladder delay. Default 1000 ms.


redialCapMs? ​

optional redialCapMs?: number

Defined in: src/core/upstream-recovery-policy.ts:67

Ladder cap. Default 60000 ms.


redialStableMs? ​

optional redialStableMs?: 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? ​

optional stuckConnectingMs?: 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.

Built with VitePress