Skip to main content

Module request_settings

Module request_settings 

Source
Expand description

Provider request options the settings fill (sdk.ts buildRequestOptions, session-worker.ts providerRequestOptions, worker-settings.ts transport, and the Agent’s thinkingBudgets): thinkingBudgets (the token budget each reasoning level asks for), websocketConnectTimeoutMs (the WebSocket transport’s connect timeout), the stream options of every request (timeoutMs: retry.provider.timeoutMs, else the HTTP idle timeout; retry.provider.maxRetries and maxRetryDelayMs) and the transport setting. A request’s own value wins (options.x ?? settings.x). An invalid timeout fails the request with Invalid <setting> setting: <value>, as TypeScript’s parseTimeoutSetting throws while building it.

Structs§

RequestSettings