React Native Firebase
    Preparing search index...

    Interface TemplateRequestBeta

    Request parameters for using a server prompt template with TemplateGenerativeModel.generateContent and TemplateGenerativeModel.generateContentStream.

    interface TemplateRequest {
        templateId: string;
        templateVariables: Record<string, unknown>;
        toolConfig?: TemplateToolConfig;
    }
    Index

    Properties

    templateId: string

    The ID of the server prompt template to use.

    templateVariables: Record<string, unknown>

    A key-value map of variables to populate the template with.

    toolConfig?: TemplateToolConfig

    Optional tool configuration for this request. Only retrieval/grounding configs are supported for server prompt templates with unary and streaming generateContent.