ChatSession class that enables sending chat messages and stores history of sent and received messages so far.

Constructors

Methods

  • Gets the chat history so far. Blocked prompts are not added to history. Blocked candidates are not added to history, nor are the prompts that generated them.

    Returns Promise<Content[]>

Properties

_apiKey: any
_history: any
_sendPromise: any
model: string
requestOptions?: RequestOptions