GenerativeModelFutures class abstract

Constructors

GenerativeModelFutures()

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

countTokens(List<Content> prompt) → Future<CountTokensResponse>
Counts the number of tokens used in a prompt.
generateContent(List<Content> prompt) → Future<GenerateContentResponse>
Generates a response from the backend with the provided Contents.
generateContentStream(List<Content> prompt) → Future<Stream<GenerateContentResponse>>
Generates a streaming response from the backend with the provided Contents.
getGenerativeModel() → GenerativeModel
Returns the GenerativeModel instance that was used to create this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startChat() → ChatFutures
Creates a chat instance which internally tracks the ongoing conversation with the model.
startChatWithHistory(List<Content> history) → ChatFutures
Creates a chat instance which internally tracks the ongoing conversation with the model.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

from(GenerativeModel model) → GenerativeModelFutures