sendMessageStream
Sends a message using the existing history of this chat as context and the provided Content prompt.
The response from the model is returned as a stream.
If successful, the message and response will be added to the history. If unsuccessful, history will remain unchanged.
Parameters
The input that, together with the history, will be given to the model as the prompt.
Throws
if the Chat instance has an active request.
Sends a message using the existing history of this chat as context and the provided text prompt.
The response from the model is returned as a stream.
If successful, the message and response will be added to the history. If unsuccessful, history will remain unchanged.
Parameters
The input(s) that, together with the history, will be given to the model as the prompt.
Throws
if the Chat instance has an active request.