AIClient class abstract

Base contract for AI chat-completion clients.

Implementers

Constructors

AIClient({required String model, required double? temperature, List<Map<String, dynamic>>? tools, required String systemPrompt, String? apiKey})
Creates an AI client.

Properties

apiKey String?
Provider API key.
final
hashCode int
The hash code for this object.
no setterinherited
model String
Model identifier used by the completion provider.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
systemPrompt String
System prompt sent with each completion request.
final
temperature double?
Sampling temperature for completions.
final
tools List<Map<String, dynamic>>?
Optional tool definitions available to the model.
final

Methods

complete(String prompt) Future<Completion?>
Completes a user prompt.
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