React Native Firebase
    Preparing search index...

    Interface TemplateChatSessionBeta

    Interface representing a ChatSession for use with server prompt templates that enables sending chat messages and stores history of sent and received messages so far.

    interface TemplateChatSession {
        params: StartTemplateChatParams;
        requestOptions?: RequestOptions;
        getHistory(): Promise<Content[]>;
        sendMessage(
            request: string | (string | Part)[],
            singleRequestOptions?: SingleRequestOptions,
        ): Promise<GenerateContentResult>;
        sendMessageStream(
            request: string | (string | Part)[],
            singleRequestOptions?: SingleRequestOptions,
        ): Promise<GenerateContentStreamResult>;
    }
    Index

    Methods

    Properties

    requestOptions?: RequestOptions