AiConfigResponse class final

Hub → Client: the Hub's default AI configuration. Never carries an API key — the key stays on the Hub and is injected when proxying. available is false when the Hub has no AI provider configured. Correlated by requestId.

Inheritance

Constructors

AiConfigResponse({required String requestId, required bool available, String? provider, String? model, String? plannerModel, String? executorModel, String? explainerModel, String? baseUrl, String? mode, String? language})
Creates an AI-config response.
const

Properties

available → bool
Whether the Hub has a usable default provider+key configured.
final
baseUrl → String?
Optional API base-URL override.
final
channelId → int?
The channel this message pertains to, or null for connection-level messages (the envelope c field).
no setterinherited
executorModel → String?
Optional executor model override.
final
explainerModel → String?
Optional explainer model override.
final
hashCode → int
The hash code for this object.
no setterinherited
language → String?
The default reply language, or null.
final
mode → String?
The default agent mode token (e.g. plan), or null.
final
model → String?
The default shared model id, or null when unavailable.
final
plannerModel → String?
Optional planner model override.
final
provider → String?
The default provider token (e.g. anthropic), or null when unavailable.
final
requestId → String
The correlation id from the request.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String
The stable type discriminator (the envelope t field).
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
The message payload (the envelope d field), without the type or channel.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(int? channel, Map<String, dynamic> d) → AiConfigResponse
Decodes an AiConfigResponse.

Constants

typeName → const String
The type discriminator.