An open API service indexing awesome lists of open source software.

https://github.com/unitygamestudio/functioncalling-gemini

This is a repository that contains scripts from a Unity Project regarding FuncitonCalling with Gemini.
https://github.com/unitygamestudio/functioncalling-gemini

Last synced: 11 months ago
JSON representation

This is a repository that contains scripts from a Unity Project regarding FuncitonCalling with Gemini.

Awesome Lists containing this project

README

          

# FunctionCalling-Gemini
This is a repository that contains scripts from a Unity Project regarding FuncitonCalling with Gemini.

Here's a quick video that shows these scripts in Unity: [Watch the YouTube Demo](https://www.youtube.com/watch?v=UeviAFvD-S8&ab_channel=UnityGameStudio)

# Setup

### Step 1: Add the scripts to your scene inside an empty object

![](/ImagesFunctionCalling/Image1.JPG)

Attach the dependencies inside the variables, it should ended up like the picture.

Inside the Object Spawner, the Object Prefabs are files of 3D objects inside Unity that can be instantiated.

![](/ImagesFunctionCalling/Image2.JPG)

Finally, the signal object is a plane with an image as a texture.

![](/ImagesFunctionCalling/Image3.JPG)

### Step 2: Login to your Google account, copy your secret key and paste it inside the JSON.txt
You will need to fetch your Google API key, which can be found in your Google AI Studio account under `Get API Key` (or through [this direct link](https://aistudio.google.com/app/apikey)).