Skip to content

ProviderDynamicCapabilities

ProviderDynamicCapabilities = object

A provider’s live capability check, evaluated on the current host when routing or when checkCapabilities() is called. Unlike the descriptor it can change between calls.

[property: string]: unknown

available: boolean

Whether the provider is available and functional on this host right now.


optional cancellationAvailable?: boolean

Whether cancellation is honored on this host right now. Absent inherits the static descriptor.cancel value: any value other than ‘none’ means available. Never null.


optional reason?: string

Why the provider is unavailable, when available is false.


optional streamingAvailable?: boolean

Whether the provider can stream (Mode 2) on this host right now. Absent inherits the static descriptor.supports.streaming value; only set it when the host takes streaming away from a provider that otherwise declares it. Never null.


optional streamingUnavailableReason?: string

Why streaming is unavailable, when streamingAvailable is false. Absent lets the route planner synthesize a default message.


optional taskCapabilities?: ProviderTaskAvailability[]

Per-task overrides of the provider-level check, for tasks whose availability differs on this host, e.g. a voice that is not installed. Every field of an entry is optional and absent inherits the provider-level value; a false at either level wins.