ProviderConfig class

Per-provider construction options (RFC-0027), mirroring the Rust ProviderOptions wire format. Pass to createProvider to override individual fields of the registry entry.

All fields are optional; null fields are omitted from the serialized JSON so the provider's defaults apply.

Constructors

ProviderConfig({String? baseUrl, Map<String, String>? headers, String? organization, String? project, int? maxRetries, Object? bodyOverrides})
const

Properties

baseUrl → String?
Override the registry base URL.
final
bodyOverrides → Object?
Request-body overrides (deep-merged into every request). Any JSON-serializable value (typically a Map<String, dynamic>).
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>?
Extra headers merged into every request.
final
maxRetries → int?
Retry count override; 0 disables retries.
final
organization → String?
OpenAI organization ID (OpenAI-Organization header).
final
project → String?
OpenAI project ID (OpenAI-Project header).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → String?
Serialize to the ProviderOptions JSON wire format (snake_case keys, null fields omitted). Returns null when no field is set, so callers can pass null to the FFI for defaults.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited