ChatFutures class abstract

Constructors

ChatFutures()

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

getChat() Chat
Returns the Chat instance that was used to create this instance
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendMessage(Content prompt) Future<GenerateContentResponse>
Generates a response from the backend with the provided Content, and any previous ones sent/returned from this chat.
sendMessageStream(Content prompt) Stream<GenerateContentResponse>
Generates a streaming response from the backend with the provided Contents.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

from(Chat chat) ChatFutures
@return a ChatFutures created around the provided Chat