GeminiDatasource class

Implemented types

Constructors

GeminiDatasource(Dio _dio, FlutterSecureStorage _storage, GoogleAuthService _auth)

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

isConfigured() Future<bool>
Whether the provider is configured (API key stored or OAuth signed in).
override
listModels() Future<List<AiModel>>
Fetch available models from the provider's API.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendMessage({required String systemPrompt, required List<Map<String, String>> messages, int maxTokens = 8192}) Future<String>
Send messages and return the complete assistant response.
override
streamMessage({required String systemPrompt, required List<Map<String, String>> messages, int maxTokens = 8192}) Stream<String>
Stream a response, yielding text deltas as they arrive.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited