Gets the chat history so far. Blocked prompts are not added to history. Neither blocked candidates nor the prompts that generated them are added to history.
Sends a chat message and receives a non-streaming GenerateContentResult
OptionalsingleRequestOptions: SingleRequestOptionsSends a chat message and receives the response as a GenerateContentStreamResult containing an iterable stream and a response promise.
OptionalsingleRequestOptions: SingleRequestOptions
Interface representing a
ChatSessionthat enables sending chat messages and stores a history of sent and received messages so far.