AICompletionProvider class abstract

Core interface for AI text completion.

This is the minimal interface that all providers must implement.

Constructors

AICompletionProvider()

Properties

config AIConfig
The configuration for this provider.
no setter
hashCode int
The hash code for this object.
no setterinherited
model String
The current model being used.
no setter
name String
Human-readable name of this provider.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

complete(List<AIMessage> messages, {int? maxTokens, double? temperature, List<AITool>? tools}) Future<AIResponse>
Sends a completion request and returns the full response.
dispose() Future<void>
Releases any resources held by this provider.
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