Optionalparams: StartChatParamsOptionalrequestOptions: RequestOptionsGets 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
Sends a chat message and receives the response as a GenerateContentStreamResult containing an iterable stream and a response promise.
ChatSession class that enables sending chat messages and stores history of sent and received messages so far.