Skip to content

ConnectionConfig

type ConnectionConfig = Omit<PresetAdapterConfig, "apiKey" | "instanceSessionId"> & ConnectionCredential & object;

Defined in: core/src/registry.ts:40

optional maxConcurrent?: number;

At most this many calls at once on this connection, in every chain and view that uses it. The rest wait in line. Absent: no limit.

optional models?: readonly string[];

The models a bare ref ("go") runs, in order. Absent: model, then the preset’s rotation, then its defaultModel.

preset: ProviderPresetId;
optional watchdog?:
| WatchdogOptions
| false;

Replaces the registry’s watchdog for this connection; false turns it off.