FFAiClient class abstract

Abstract LLM client. Implementations are provider-specific; pick one via FFAiClient.forConfig.

Implementers

Constructors

FFAiClient.forConfig(FFAiConfig config, {Dio? dio})
Creates a client for config's provider. Each call constructs a new Dio instance so a test can inject a custom one via subclassing.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

diagnose({required FFSnapshot snapshot, required String systemPrompt, required String userPrompt}) Future<FFAiResponse>
Sends prompt to the underlying provider and returns the assistant text.
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