FallbackLlmClient class

Bọc nhiều LlmClient, thử lần lượt tới khi một cái chạy được (vd: on-device → cloud). Port của FallbackLLMClient.ts.

Implemented types

Constructors

FallbackLlmClient(List<LlmClient> clients, {void onFallback(Object error, int index)?})
const

Properties

clients → List<LlmClient>
final
hashCode → int
The hash code for this object.
no setterinherited
onFallback → void Function(Object error, int index)?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

complete(LlmCompleteRequest request) → Future<LlmCompleteResponse>
override
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