LlmRelayRequest class final

One decoded relay request: {req: {baseUrl, model, messages, provider?}}. provider (the saved entry name) disambiguates the key slot when several accounts share an endpoint.

Constructors

LlmRelayRequest({required String baseUrl, required String model, required List<Map<String, dynamic>> messages, String? provider})

Properties

baseUrl → String
final
hashCode → int
The hash code for this object.
no setterinherited
key ↔ String?
The API key, injected server-side by BridgeLlmRelay right before relay runs. Never serialized onto a frame. Null = anonymous mode: the transport sends no Authorization header at all.
getter/setter pair
messages → List<Map<String, dynamic>>
final
model → String
final
provider → String?
The saved custom-provider name (key-slot hint), when known.
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
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Object? json) → LlmRelayRequest?
Total decode: null on a shape it cannot trust; unknown fields ignored (additive versioning). An empty provider string decodes as absent (the extension glue only sends it when non-empty).