AIG. - AI Google Gemini Integration

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIG. - Google AI >

AIG. - AI Google Gemini Integration

5. Configuration (Tools & User)

Previous Top Next


MiniRobotLanguage (MRL)

 

5. Configuration (Tools & User)
Function Calling, I/O, and Identity

 

Overview

 

This section manages how the AI interacts with the "outside world." It covers Function Calling (giving the AI tools to use), identifying the user context, and automating where the AI's output is saved (Files or Clipboard).

 

Understanding Function Calling

 

Tools allow the AI to say "I need to run the calculator" instead of just giving text. You define the tools, the AI asks to use them, and your Robot script executes them.

 

 User Prompt: "What is the weather in Berlin?"

      │

      ▼

 ┌──────────────┐      ┌───────────────────────────────┐

 │ AI MODEL     │ ◄─── │ Defined Tools (SetTools  )    │

 └─────┬────────┘      │ Function: get_weather         │

       │               └───────────────────────────────┘

 Decision: Call 'get_weather(Berlin)'

       │

 [IsFuncCall = 1]

 

Detailed Command List

 

AIG.SetTools / Get - Defines the functions available to the AI using JSON Schema.

AIG.SetToolChoice / Get - Forces the AI to use a tool ("any"), standard behavior ("auto"), or prevents it ("none").

 

Output & User Configuration

 

AIG.SetSaveToFile / Get - Defines a file path. If set, every response from the AI (text or image) is automatically saved to this file.

AIG.SetClipboardOutput / Get - If set to 1, the AI response text is automatically copied to the Windows Clipboard.

AIG.SetSeed / Get - Sets an integer seed. Using the same seed helps get reproducible results for the same prompt.

AIG.SetUser / Get - Attaches a User ID string to the request for logging/tracking purposes on the backend.