HarnessLlmProvider class final

An LlmProvider over the harness StreamFunction contract. extends (not implements) so the interface's default chatStream / chatMessagesStream / cancel bodies carry over.

Constructors

HarnessLlmProvider({required HarnessLlmSlot? resolve()})

Properties

defaultModel → String
no setter
hashCode → int
The hash code for this object.
no setterinherited
resolve → HarnessLlmSlot? Function()
Resolves the slot for each call (the roles resolver is mutable).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel() → Future<void>
Cancels an in-flight generation, if supported.
inherited
chat(String prompt, {String? model, void onCancel()?}) → Future<String>
Send a single user prompt and return the generated text.
chatMessages(List<LlmMessage> messages, {String? model, void onCancel()?}) → Future<String>
Sends the conversation and returns the generated text. The model override is ignored — the resolved role slot is authoritative (it carries the endpoint and the key, not just the id). Images on LlmMessages are dropped: the memory paths are text-only.
chatMessagesStream(List<LlmMessage> messages, {String? model, void onCancel()?}) → Stream<String>
Streams a conversation in real-time.
inherited
chatStream(String prompt, {String? model, void onCancel()?}) → Stream<String>
Streams generated tokens in real-time.
inherited
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