Gemini class
Goole Gemini AI model implementation.
Constructors
Properties
- apiKey → String
-
API key for the AI service, if required.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
Headers to include in the HTTP request.
no setteroverride
- instruction → String
-
finalinherited
- maxOutputTokens ↔ int?
-
getter/setter pair
- model → String
-
The model to use for AI completion, if applicable.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stopSequences ↔ int?
-
getter/setter pair
- temperature ↔ int?
-
getter/setter pair
- topK ↔ int?
-
getter/setter pair
- topP ↔ int?
-
getter/setter pair
- url → String
-
API Url
final
Methods
-
buildRequest(
String code) → Map< String, dynamic> -
override
-
completionResponse(
String code) → Future< String> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
responseParser(
dynamic response) → String -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited