|
<< 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 |
MiniRobotLanguage (MRL)
AIG.ClearTools
Reset and Disable Function Calling
Intention
To completely wipe all currently defined AI Tools and their associated Script Label mappings. This effectively stops the robot from sending tool definitions to Google and disables the "Function Calling" feature for subsequent requests.
It performs two actions simultaneously:
1.Clears the AIG_Tools variable (The JSON definition sent to Google).
2.Clears the AIG_ToolHandlerMap variable (The internal registry linking names to labels).
�Context Switching: If your script moves from "Database Tasks" to "Image Processing", you don't want the AI to still try calling database functions. Clear them before defining new ones.
�Cost Saving: Sending tool definitions consumes input tokens. If you don't need tools for the next question, clear them to save money.
' 1. Use tools for a specific task
AIG.SetToolsFromArray|10
AIG.Ask|Do the task using tools.
AIG.DoToolCall
' 2. Cleanup
AIG.ClearTools
' 3. Continue with normal chat (No tools sent)
AIG.Ask|Write a poem about robots.
Syntax
AIG.ClearTools
AIG.clt
Parameter Explanation
This command accepts no parameters.
See also:
? AIG.ClearToolMap (Clear mapping only)