send Message
Asynchronously sends a message to the model in the current multi-turn chat session and returns the model's response.
This appends the message and the model's response to the chat history, which is sent back to the model in subsequent calls to sendMessage. Be sure to initialize a chat session using client.async.chats.create() before calling sendMessage.
Parameters
the text to send to the generative model
a com.google.genai.types.GenerateContentConfig instance that specifies the optional configurations
Asynchronously sends a message to the model in the current multi-turn chat session and returns the model's response.
This appends the message and the model's response to the chat history, which is sent back to the model in subsequent calls to sendMessage. Be sure to initialize a chat session using client.async.chats.create() before calling sendMessage.
Parameters
the text to send to the generative model
Asynchronously sends a message to the model in the current multi-turn chat session and returns the model's response.
This appends the message and the model's response to the chat history, which is sent back to the model in subsequent calls to sendMessage. Be sure to initialize a chat session using cilent.async.chats.create() before calling sendMessage.
Parameters
a com.google.genai.types.Content to send to the generative model
a com.google.genai.types.GenerateContentConfig instance that specifies the optional configurations
Asynchronously sends a message to the model in the current multi-turn chat session and returns the model's response.
This appends the message and the model's response to the chat history, which is sent back to the model in subsequent calls to sendMessage. Be sure to initialize a chat session using client.async.chats.create() before calling sendMessage.
Parameters
a com.google.genai.types.Content to send to the generative model
Asynchronously sends a message to the model in the current multi-turn chat session and returns the model's response.
This appends the message and the model's response to the chat history, which is sent back to the model in subsequent calls to sendMessage. Be sure to initialize a chat session using client.async.chats.create() before calling sendMessage.
Parameters
a < to send to the generative model
a com.google.genai.types.GenerateContentConfig instance that specifies the optional configurations
Asynchronously sends a message to the model in the current multi-turn chat session and returns the model's response.
This appends the message and the model's response to the chat history, which is sent back to the model in subsequent calls to sendMessage. Be sure to initialize a chat session using client.async.chats.create() before calling sendMessage.
Parameters
a < to send to the generative model