Optional
requestOptions: RequestOptionsEmbeds an array of EmbedContentRequests.
Counts the tokens in the provided request.
Embeds the provided content.
Makes a single non-streaming call to the model and returns an object containing a single GenerateContentResponse.
Makes a single streaming call to the model and returns an object containing an iterable stream that iterates over all chunks in the streaming response as well as a promise that returns the final aggregated response.
Gets a new ChatSession instance which can be used for multi-turn chats.
Optional
startChatParams: StartChatParamsOptional
systemOptional
toolOptional
tools
Class for generative model APIs.