Skip to content

Several examples of function calling using Google Gemini models in Javascript

License

Notifications You must be signed in to change notification settings

carboleda/gemini-function-calling-examples

Repository files navigation

Gemini Function Calling Examples

image

Several examples of function calling using Google Gemini models in Typescript

How to configure it

  1. Make a copy to the .env.template file and name it .env
  2. Generate an API Key in Google AI Studio and put it in the .env file
  3. Install dependencies
    npm i

Examples you'll find here

  1. Intro to Function Calling npm run start:intro
  2. Data Structures
    • Single parameter npm run start:data:single
    • Multiple parameters npm run start:data:multiple
    • Lists of parameters npm run start:data:list
    • Nested parameters and data structures npm run start:data:nested
  3. Parallel Function Calls npm run start:parallel
  4. Interaction with SQLite Database

[!IMPORTANT] This repository is based in the official generative-ai repository created in Python.

About

Several examples of function calling using Google Gemini models in Javascript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published