AIG. - AI Google Gemini Integration

<< Click to Display Table of Contents >>

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

AIG. - AI Google Gemini Integration

AIG.GetToolChoice

Previous Top Next


MiniRobotLanguage (MRL)

 

AIG.GetToolChoice
Retrieve the Current Tool Choice Setting (Function Calling Mode)

 

Intention

 

Retrieve the current mode setting that controls how the AI model utilizes the functions (tools) defined via AIG.SetTools.

 

What is the GetToolChoice Command?

 

This Command returns the current value stored in the AIG_ToolChoice global variable. This value is a JSON string (including quotes) like `"auto"`, `"any"`, or `"none"`, as set by AIG.SetToolChoice.

 

Why Do You Need It?

 

Use this Command to:

Verify Configuration: Check the current function calling mode before making API calls.

Debugging: Confirm the tool choice setting if function calling behavior is unexpected.

 

How to Use

 

Call the Command, optionally providing a variable name (P1) to store the resulting JSON string value.

 

Example Usage

 

// Set tool choice to none

AIG.SetToolChoice|$"""none"""

 

// Retrieve the current setting

AIG.GetToolChoice|$$CurrentChoice

DBP. Current Tool Choice: @$$CurrentChoice

// Output: Current Tool Choice: "none"

 

Syntax

 

AIG.GetToolChoice[|P1]

AIG.gtc[|P1]

 

Parameter Explanation

 

P1 - (Optional) The name of the variable (e.g., `$$MyVar`) where the retrieved tool choice JSON string should be stored.

 

Remarks

 

- Returns the exact JSON string value (including quotes) stored in the AIG_ToolChoice global variable.

 

See also:

 

? AIG.SetToolChoice

? AIG.SetTools

? AIG. Commands Overview