send Message
Sends text as the next turn and returns the model's response.
The turns so far are sent along with text, so the model has the conversation for context. The message and the response are added to the history once the response arrives.
Parameters
The text of the message to send.
Replaces the session config for this turn rather than merging with it.
Sends content as the next turn and returns the model's response.
The turns so far are sent along with content, so the model has the conversation for context. The message and the response are added to the history once the response arrives.
Parameters
The message to send.
Replaces the session config for this turn rather than merging with it.
Sends contents as the next turn and returns the model's response.
The turns so far are sent along with contents, so the model has the conversation for context. The message and the response are added to the history once the response arrives.
Parameters
The message to send. Several contents are recorded as one turn.
Replaces the session config for this turn rather than merging with it.