Skip to content

bodhi-realtime-agent / validateOpenAICacheConfig

Function: validateOpenAICacheConfig() ​

validateOpenAICacheConfig(cfg): void

Defined in: src/transport/openai-realtime-transport.ts:212

Validate a cacheConfig payload BEFORE opening the WebSocket. Throws ValidationError for invalid values; the caller (connect()) wraps the whole pre-flight so no socket is leaked on failure.

Parameters ​

cfg ​

OpenAIRealtimeCacheConfig | undefined

Returns ​

void

Built with VitePress