1"use strict";(self.webpackChunkembedded_workflow_builder_docs=self.webpackChunkembedded_workflow_builder_docs||[]).push([["3231"],{38338(e,n,t){t.r(n),t.d(n,{metadata:()=>i,default:()=>a,frontMatter:()=>d,contentTitle:()=>o,toc:()=>c,assets:()=>l});var i=JSON.parse('{"id":"connectors/google-gemini","title":"Google Gemini Connector","description":"Interact with Google Gemini AI models to generate text, images, videos, and manage chat conversations.","source":"@site/docs/connectors/google-gemini.md","sourceDirName":"connectors","slug":"/connectors/google-gemini","permalink":"/connectors/google-gemini","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"title":"Google Gemini Connector","sidebar_label":"Google Gemini","description":"Interact with Google Gemini AI models to generate text, images, videos, and manage chat conversations."},"sidebar":"docs","previous":{"title":"Google Drive","permalink":"/connectors/google-drive"},"next":{"title":"Google Sheets","permalink":"/connectors/google-sheets"}}'),s=t(74848),r=t(28453);let d={title:"Google Gemini Connector",sidebar_label:"Google Gemini",description:"Interact with Google Gemini AI models to generate text, images, videos, and manage chat conversations."},o,l={},c=[{value:"API Documentation",id:"api-documentation",level:2},{value:"Connections",id:"connections",level:2},{value:"API Key",id:"apikeyconnection",level:3},{value:"Prerequisites",id:"prerequisites",level:4},{value:"Setup Steps",id:"setup-steps",level:4},{value:"Configure the Connection",id:"configure-the-connection",level:4},{value:"Service Account",id:"vertexaiconnection",level:3},{value:"Prerequisites",id:"prerequisites-1",level:4},{value:"Setup Steps",id:"setup-steps-1",level:4},{value:"Configure the Connection",id:"configure-the-connection-1",level:4},{value:"Actions",id:"actions",level:2},{value:"Delete File",id:"deletefile",level:3},{value:"Generate Image",id:"generateimage",level:3},{value:"Generate Text",id:"generatetext",level:3},{value:"Generate Video",id:"generatevideo",level:3},{value:"Get File",id:"getfile",level:3},{value:"Get Model Info",id:"getmodelinfo",level:3},{value:"List Files",id:"listfiles",level:3},{value:"List Models",id:"listmodels",level:3},{value:"Send Message",id:"sendmessage",level:3},{value:"Upload File",id:"uploadfile",level:3}];function h(e){let n={a:"a",admonition:"admonition",code:"code",h2:"h2",h3:"h3",h4:"h4",img:"img",li:"li",ol:"ol",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.img,{alt:"Google Gemini",src:t(33218).A+"#connector-icon",width:"32",height:"32"}),"\n",(0,s.jsx)(n.a,{href:"https://gemini.google.com/",children:"Google Gemini"})," is a family of advanced multimodal AI models developed by Google DeepMind."]}),"\n",(0,s.jsx)(n.p,{children:"This component allows you to generate text, images, and videos, manage uploaded files, and list available models using the Google Generative AI API."}),"\n",(0,s.jsx)(n.h2,{id:"api-documentation",children:"API Documentation"}),"\n",(0,s.jsxs)(n.p,{children:["This component was built using the ",(0,s.jsx)(n.a,{href:"https://ai.google.dev/api/rest",children:"Google Generative AI API Reference"}),"."]}),"\n",(0,s.jsx)(n.h2,{id:"connections",children:"Connections"}),"\n",(0,s.jsx)(n.h3,{id:"apikeyconnection",children:"API Key"}),"\n",(0,s.jsx)(n.p,{children:"Authenticate requests to Google Gemini using an API key."}),"\n",(0,s.jsxs)(n.p,{children:["Create a connection of type ",(0,s.jsx)(n.strong,{children:"API Key"}),"."]}),"\n",(0,s.jsx)(n.p,{children:"To authenticate with Google Gemini using an API key, generate a key from Google AI Studio."}),"\n",(0,s.jsx)(n.h4,{id:"prerequisites",children:"Prerequisites"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["A Google account with access to ",(0,s.jsx)(n.a,{href:"https://aistudio.google.com/",children:"Google AI Studio"})]}),"\n"]}),"\n",(0,s.jsx)(n.h4,{id:"setup-steps",children:"Setup Steps"}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsxs)(n.li,{children:["Navigate to ",(0,s.jsx)(n.a,{href:"https://aistudio.google.com/app/apikey",children:"Google AI Studio API Keys"})]}),"\n",(0,s.jsxs)(n.li,{children:["Click ",(0,s.jsx)(n.strong,{children:"Create API Key"})," and select a Google Cloud project"]}),"\n",(0,s.jsx)(n.li,{children:"Copy the generated API key"}),"\n"]}),"\n",(0,s.jsx)(n.h4,{id:"configure-the-connection",children:"Configure the Connection"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Enter the ",(0,s.jsx)(n.strong,{children:"API Key"})," value into the connection configuration"]}),"\n"]}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Input"}),(0,s.jsx)(n.th,{children:"Comments"}),(0,s.jsx)(n.th,{children:"Default"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"API Key"}),(0,s.jsxs)(n.td,{children:["The Google AI Studio API key for authentication. Generate API keys ",(0,s.jsx)(n.a,{href:"https://aistudio.google.com/app/apikey",children:"here"}),"."]}),(0,s.jsx)(n.td,{})]})})]}),"\n",(0,s.jsx)(n.h3,{id:"vertexaiconnection",children:"Service Account"}),"\n",(0,s.jsx)(n.p,{children:"Authenticate requests to Google Gemini via Vertex AI using a service account."}),"\n",(0,s.jsxs)(n.p,{children:["Create a connection of type ",(0,s.jsx)(n.strong,{children:"Service Account"}),"."]}),"\n",(0,s.jsx)(n.p,{children:"To authenticate with Google Gemini via Vertex AI, a Google Cloud service account with the appropriate roles is required."}),"\n",(0,s.jsx)(n.h4,{id:"prerequisites-1",children:"Prerequisites"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"A Google Cloud project with billing enabled"}),"\n",(0,s.jsxs)(n.li,{children:["Access to the ",(0,s.jsx)(n.a,{href:"https://console.cloud.google.com/",children:"Google Cloud Console"})]}),"\n",(0,s.jsx)(n.li,{children:"The Vertex AI API enabled in the project"}),"\n"]}),"\n",(0,s.jsx)(n.h4,{id:"setup-steps-1",children:"Setup Steps"}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["Navigate to the ",(0,s.jsx)(n.a,{href:"https://console.cloud.google.com/",children:"Google Cloud Console"})," and open the ",(0,s.jsx)(n.strong,{children:"IAM & Admin"})," section"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["Create a ",(0,s.jsx)(n.strong,{children:"Service Account"})," (or use an existing one)"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:"Assign the following roles to the Service Account:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Vertex AI User"})," or ",(0,s.jsx)(n.strong,{children:"Vertex AI Administrator"})]}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.strong,{children:"Storage Object Viewer"})}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["Generate a ",(0,s.jsx)(n.strong,{children:"Service Account Key"}),":"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Select the Service Account, navigate to the ",(0,s.jsx)(n.strong,{children:"Keys"})," tab, and click ",(0,s.jsx)(n.strong,{children:"Add Key"})," to create a new key"]}
1),"\n",(0,s.jsx)(n.li,{children:"Download the JSON file containing the key information"}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"warning",children:(0,s.jsx)(n.p,{children:"The downloaded key file contains sensitive credentials. Store it securely and do not expose it in version control."})}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["Note the ",(0,s.jsx)(n.strong,{children:"Project ID"})," from the top section of the console (click the project selector to display all projects and their IDs)"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["Identify the target ",(0,s.jsx)(n.a,{href:"https://docs.cloud.google.com/vertex-ai/docs/general/locations",children:"region"})," by navigating to the ",(0,s.jsx)(n.strong,{children:"Vertex AI Dashboard"})," in the console"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["Enable the ",(0,s.jsx)(n.strong,{children:"Vertex AI API"})," by navigating to ",(0,s.jsx)(n.strong,{children:"APIs & Services > Library"}),', searching for "Vertex AI API", and clicking ',(0,s.jsx)(n.strong,{children:"Enable"})]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.h4,{id:"configure-the-connection-1",children:"Configure the Connection"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Enter the ",(0,s.jsx)(n.strong,{children:"Client Email"})," using the Service Account email address"]}),"\n",(0,s.jsxs)(n.li,{children:["Enter the ",(0,s.jsx)(n.strong,{children:"Private Key"})," from the downloaded JSON key file"]}),"\n",(0,s.jsxs)(n.li,{children:["Enter the ",(0,s.jsx)(n.strong,{children:"Project ID"})," of the Google Cloud project"]}),"\n",(0,s.jsxs)(n.li,{children:["Enter the ",(0,s.jsx)(n.strong,{children:"Region"})," for API requests (e.g., ",(0,s.jsx)(n.code,{children:"us-central1"}),"). Refer to the ",(0,s.jsx)(n.a,{href:"https://docs.cloud.google.com/vertex-ai/docs/general/locations",children:"available regions"})," for supported values"]}),"\n"]}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Input"}),(0,s.jsx)(n.th,{children:"Comments"}),(0,s.jsx)(n.th,{children:"Default"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Project ID"}),(0,s.jsx)(n.td,{children:"The Google Cloud project ID associated with the Vertex AI API."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Region"}),(0,s.jsxs)(n.td,{children:["The region to use for API requests. See ",(0,s.jsx)(n.a,{href:"https://docs.cloud.google.com/vertex-ai/generative-ai/docs/learn/locations",children:"available regions"}),"."]}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Client Email"}),(0,s.jsx)(n.td,{children:"The service account email address used to authenticate with Google Cloud."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Private Key"}),(0,s.jsx)(n.td,{children:"The private key from the service account credentials used for authentication."}),(0,s.jsx)(n.td,{})]})]})]}),"\n",(0,s.jsx)(n.h2,{id:"actions",children:"Actions"}),"\n",(0,s.jsx)(n.h3,{id:"deletefile",children:"Delete File"}),"\n",(0,s.jsx)(n.p,{children:"Deletes a file from Google Gemini."}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Input"}),(0,s.jsx)(n.th,{children:"Comments"}),(0,s.jsx)(n.th,{children:"Default"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"File Name"}),(0,s.jsx)(n.td,{children:"The unique resource name of the file to delete from the service."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Connection"}),(0,s.jsx)(n.td,{children:"The Google Gemini connection to use."}),(0,s.jsx)(n.td,{})]})]})]}),"\n",(0,s.jsx)(n.h3,{id:"generateimage",children:"Generate Image"}),"\n",(0,s.jsx)(n.p,{children:"Generates an image using the Google Generative AI (Gemini) model."}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Input"}),(0,s.jsx)(n.th,{children:"Comments"}),(0,s.jsx)(n.th,{children:"Default"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Model Name"}),(0,s.jsx)(n.td,{children:"The name of the model to get information about (e.g., 'gemini-pro', 'gemini-pro-vision')."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Prompt"}),(0,s.jsx)(n.td,{children:"Text prompt that typically describes the images to output."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Image Settings"}),(0,s.jsx)(n.td,{children:"Output configuration for image generation including count, language, and aspect ratio."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Number of Images"}),(0,s.jsx)(n.td,{children:"The total count of images the model should produce per request."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Language"}),(0,s.jsx)(n.td,{children:"The locale used to interpret the prompt and generate content."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Aspect Ratio"}),(0,s.jsx)(n.td,{children:"The width-to-height proportion for the generated media output (e.g., 16:9, 1:1)."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Extra Parameters"}),(0,s.jsx)(n.td,{children:"Additional parameters to include in the request as key-value pairs."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Connection"}),(0,s.jsx)(n.td,{children:"The Google Gemini connection to use."}),(0,s.jsx)(n.td,{})]})]})]}),"\n",(0,s.jsx)(n.h3,{id:"generatetext",children:"Generate Text"}),"\n",(0,s.jsx)(n.p,{children:"Sends a prompt to the model and returns a generated text response."}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Input"}),(0,s.jsx)(n.th,{children:"Comments"}),(0,s.jsx)(n.th,{children:"Default"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Prompt"}),(0,s.jsx)(n.td,{children:"The text prompt to generate a response for."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Model Name"}),(0,s.jsx)(n.td,{children:"The name of the model to get information about (e.g., 'gemini-pro', 'gemini-pro-vision')."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Generation Config"}),(0,s.jsx)(n.td,{children:"Sampling parameters and safety settings for controlling model output."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Temperature"}),(0,s.jsx)(n.td,{children:"Controls randomness in the output. Higher values (e.g., 0.8) make output more random, lower values (e.g., 0.2) make it more focused and deterministic."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Max Output Tokens"}),(0,s.jsx)(n.td,{children:"Maximum number of tokens to generate in the response."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Top K"}),(0,s.jsx)(n.td,{children:"Limits token selection to the K most likely next tokens."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Top P"}),(0,s.jsx)(n.td,{children:"Limits token selection to tokens with cumulative probability less than P."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Safety Settings"}),(0,s.jsx)(n.td,{children:"The safety threshold configuration for content generation. Each entry specifies a harm category and its blocking threshold."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Extra Parameters"}),(0,s.jsx)(n.td,{children:"Additional parameters to include in the request as key-value pairs."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Connection"}),(0,s.jsx)(n.td,{children:"The Google Gemini connection to use."}),(0,s.jsx)(n.td,{})]})]})]}),"\n",(0,s.jsx)(n.h3,{id:"generatevideo",children:"Generate Video"}),"\n",(0,s.jsx)(n.p,{children:"Generates a video using the Google Generative AI (Gemini) model."}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Input"}),(0,s.jsx)(n.th,{children:"Comments"}),(0,s.jsx)(n.th,{children:"Default"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Model Name"}),(0,s.jsx)(n.td,{children:"The name of the model to get information about (e.g., 'gemini-pro', 'gemini-pro-vision')."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Prompt"}),(0,s.jsx)(n.td,{children:"Text prompt that typically describes the video to output."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Video Settings"}),(0,s.jsx)(n.td,{children:"Output configuration for video generation including frame rate, count, resolution, and duration."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"FPS"}),(0,s.jsx)(n.td,{children:"The frames per second for the generated video output."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Number of Videos"}),(0,s.jsx)(n.td,{children:"The total count of videos the model should produce per request."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Person Generation"}),(0,s.jsx)(n.td,{children:"Controls whether the model can generate videos containing people and restricts age groups."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Resolution"}),(0,s.jsx)(n.td,{children:"The pixel dimensions (width x height) for the generated video output."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Aspect Ratio"}),(0,s.jsx)(n.td,{children:"The width-to-height proportion for the generated media output (e.g., 16:9, 1:1)."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Duration Seconds"}),(0,s.jsx)(n.td,{children:"The length of the generated video clip in seconds."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Extra Parameters"}),(0,s.jsx)(n.td,{children:"Additional parameters to include in the request as key-value pairs."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Connection"}),(0,s.jsx)(n.td,{children:"The Google Gemini connection to use."}),(0,s.jsx)(n.td,{})]})]})]}),"\n",(0,s.jsx)(n.h3,{id:"getfile",children:"Get File"}),"\n",(0,s.jsx)(n.p,{children:"Retrieves file information from Google Gemini."}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Input"}),(0,s.jsx)(n.th,{children:"Comments"}),(0,s.jsx)(n.th,{children:"Default"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"File Name"}),(0,s.jsx)(n.td,{children:"The unique resource name assigned by the API to identify the file."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Connection"}),(0,s.jsx)(n.td,{children:"The Google Gemini connection to use."}),(0,s.jsx)(n.td,{})]})]})]}),"\n",(0,s.jsx)(n.h3,{id:"getmodelinfo",children:"Get Model Info"}),"\n",(0,s.jsx)(n.p,{children:"Retrieves detailed information about a specific model from the Google Generative AI API."}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Input"}),(0,s.jsx)(n.th,{children:"Comments"}),(0,s.jsx)(n.th,{children:"Default"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Connection"}),(0,s.jsx)(n.td,{children:"The Google Gemini connection to use."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Model Name"}),(0,s.jsx)(n.td,{children:"The name of the model to get information about (e.g., 'gemini-pro', 'gemini-pro-vision')."}),(0,s.jsx)(n.td,{})]})]})]}),"\n",(0,s.jsx)(n.h3,{id:"listfiles",children:"List Files"}),"\n",(0,s.jsx)(n.p,{children:"Lists all files in the current project from Google Gemini."}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Input"}),(0,s.jsx)(n.th,{children:"Comments"}),(0,s.jsx)(n.th,{children:"Default"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Fetch All"}),(0,s.jsx)(n.td,{children:"When true, automatically fetches all pages of results using pagination."}),(0,s.jsx)(n.td,{children:"false"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Pagination"}),(0,s.jsx)(n.td,{children:"Page size and page token for paginating through results."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Page Size"}),(0,s.jsx)(n.td,{children:"The maximum number of results to return per page."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Page Token"}),(0,s.jsx)(n.td,{children:"The pagination token from a previous request."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Connection"}),(0,s.jsx)(n.td,{children:"The Google Gemini connection to use."}),(0,s.jsx)(n.td,{})]})]})]}),"\n",(0,s.jsx)(n.h3,{id:"listmodels",children:"List Models"}),"\n",(0,s.jsx)(n.p,{children:"Retrieves a list of available models from the Google Generative AI API."}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Input"}),(0,s.jsx)(n.th,{children:"Comments"}),(0,s.jsx)(n.th,{children:"Default"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Fetch All"}),(0,s.jsx)(n.td,{children:"When true, automatically fetches all pages of results using pagination."}),(0,s.jsx)(n.td,{children:"false"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Pagination"}),(0,s.jsx)(n.td,{children:"Page size and page token for paginating through results."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Page Size"}),(0,s.jsx)(n.td,{children:"The maximum number of results to return per page."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Page Token"}),(0,s.jsx)(n.td,{children:"The pagination token from a previous request."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Filter"}),(0,s.jsx)(n.td,{children:"A filter expression to narrow down the results returned by the API."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Extra Parameters"}),(0,s.jsx)(n.td,{children:"Additional parameters to include in the request as key-value pairs."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Connection"}),(0,s.jsx)(n.td,{children:"The Google Gemini connection to use."}),(0,s.jsx)(n.td,{})]})]})]}),"\n",(0,s.jsx)(n.h3,{id:"sendmessage",children:"Send Message"}),"\n",(0,s.jsx)(n.p,{children:"Sends a message to the chat. Supports providing historical messages to continue a conversation."}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Input"}),(0,s.jsx)(n.th,{children:"Comments"}),(0,s.jsx)(n.th,{children:"Default"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Prompt"}),(0,s.jsx)(n.td,{children:"The text p
1rompt to send as a message to the model."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Model Name"}),(0,s.jsx)(n.td,{children:"The name of the model to get information about (e.g., 'gemini-pro', 'gemini-pro-vision')."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Generation Config"}),(0,s.jsx)(n.td,{children:"Sampling parameters, safety settings, and conversation history for controlling model output."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Temperature"}),(0,s.jsx)(n.td,{children:"Controls randomness in the output. Higher values (e.g., 0.8) make output more random, lower values (e.g., 0.2) make it more focused and deterministic."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Max Output Tokens"}),(0,s.jsx)(n.td,{children:"Maximum number of tokens to generate in the response."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Top K"}),(0,s.jsx)(n.td,{children:"Limits token selection to the K most likely next tokens."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Top P"}),(0,s.jsx)(n.td,{children:"Limits token selection to tokens with cumulative probability less than P."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Safety Settings"}),(0,s.jsx)(n.td,{children:"The safety threshold configuration for content generation. Each entry specifies a harm category and its blocking threshold."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Chat History"}),(0,s.jsx)(n.td,{children:"The previous messages in the conversation, used to provide context to the model for continuity."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Extra Parameters"}),(0,s.jsx)(n.td,{children:"Additional parameters to include in the request as key-value pairs."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Connection"}),(0,s.jsx)(n.td,{children:"The Google Gemini connection to use."}),(0,s.jsx)(n.td,{})]})]})]}),"\n",(0,s.jsx)(n.h3,{id:"uploadfile",children:"Upload File"}),"\n",(0,s.jsx)(n.p,{children:"Uploads a file asynchronously to the Gemini API."}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Input"}),(0,s.jsx)(n.th,{children:"Comments"}),(0,s.jsx)(n.th,{children:"Default"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"File"}),(0,s.jsx)(n.td,{children:"The file content to upload. This can be a file reference from a previous step."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"File Name"}),(0,s.jsx)(n.td,{children:"The unique resource name assigned by the API to identify the file."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Display Name"}),(0,s.jsx)(n.td,{children:"A human-readable label for the file shown in the Google AI interface."}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Connection"}),(0,s.jsx)(n.td,{children:"The Google Gemini connection to use."}),(0,s.jsx)(n.td,{})]})]})]})]})}function a(e={}){let{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},33218(e,n,t){t.d(n,{A:()=>i});let i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsSAAALEgHS3X78AAAEU0lEQVRYhe1UW2wbRRR1mldRJBCPfgESKupHP1BBqKiCkoiqprt+JKGSJZBSkEJIE7eplJf34bXHjpJ6s/bau06cJggJ2gohlp8iQdqQVKFJ83K29q6TUJOf0jb1OnbiUolvFs3a24a2gvJR+MBHGs2duTNzzxzdew2GIooooojHAFVVS+D4b4Ib1BLBJpQCIFT86yTUQkAfFtvTS4qHoA2Auu2RLtsEtVQ/DG2bIJT+w/Ba8B7H3G7aGY/RTmmtj4jWbPXdT1YFoEDuUVn+NbQgveTiGzQpJWlSuu3DxANasIcQ+BMTg8FgQDjlfSSsnEN55QLCK18aQ6nqrWdqgFoGh82masoAALYJglAq5JUrg+pBG/poZ+zNPiJm7MfEJoYQcbjX3CyWQ78AlivgetxO749+0vGNFuAQfyuI8KlVhFcaTbzyDsKlGJRTppCzG0/mg92n0N8kl06kH4/aGUxs1Qlvncdb/XsXmjoiBnRgw2iObF61BG49t/Vx+Fvdrj+59qzFn+2x+DfO1vmzR+AehcmvuEgZBaTUAkj5DEXF9rjwpb1uIn4aOGUPvMt0xV/1YdHXWHJ+XxifPTjgmOsbd
1Fwe+aJr9OVxjH4q2uJAIYFhdGA9CB+1CWoFwqd2mIPXd77Hb7wASb0+opZbmewFK5M5VRvI1lqZ9UUjm2sIgZ8P94Dk7y4i3gOcCdpDJTbdpDQJyHiz17WSJMnEiUH3ijcEkoEht8xGiOhmuHvGPoTNfP3tidNT08d9B5fbSAkSOIPy6x5dPpRTvCinXEX4lIiGU0kLl7PXB+9cMzHpBtR388Bh/k6k/jP1oguXWtxkfFpPQC+1LHvcP32gyUxKLV6QHPZj0d5+QuwN4nPDnGOWhr4+IrZjoi2cuHTM89F8c9eMwRTOtJsjufO6/MjoaiU0zacyu0xDuYW6gd+6rIHNuDWQIS2BTKDWn3HXcDkLRcjtwCkJ8CzPr1a6qcQl4JS1xPU4pY8pSh5isIWTNBb1sY7ZQa77crtO4Lw9KP5oB43zR7tnDUa/UmUKZxIol6L1BNnH3njCFE6PoXyaMfdndtWxuaSZ3Xheywd6ff/b/lx1LyU3eailc/nEmizzUIkZryuh1T0g5SbgWhn246Kvn4z7QsRCZABf6IA+Ftx4ZuJ4ODZt72m80to9p33cPJTeifCpiyivyGhY+R7NV8SnkAj01wayuJXJ/GJhst9Z/Zmb1dyvxj7sSoOLlL/Ss95NSj+4iKW3tAQlYx86SYkL4FHgIxY9LDHL8tjMMejz4defHrNzU5Mt7iPRo10ThaxXS+BsCqV2o1za+G5g7cW7PaKgSl3o9ktWOm3Uq6WtbbSSLRCE6OyUqvTyGxkRywGY3M63rVbC8Tm4tl2vfxhrrNNfJTaPlI81dFZpW1D6B2odrgtl+FDfYwFQ80Tu9uh7gO00T0RvQgXl7p14wM634K22/la+betzEUUU8f/GH3BVVLBsonEdAAAAAElFTkSuQmCC"},28453(e,n,t){t.d(n,{R:()=>d,x:()=>o});var i=t(96540);let s={},r=i.createContext(s);function d(e){let n=i.useContext(r);return i.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:d(e.components),i.createElement(r.Provider,{value:n},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.