|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIU. - OpenAI API > !Tool and Function Management > AIU. - Artificial Intelligence Utility |
MiniRobotLanguage (MRL)
AIU.GetTools
Retrieve the Current Tools Configuration
Intention
GetTools Command: Accessing the Tools List
The GetTools command retrieves the current list of tools configured for the AI, used in operations like AIU.Chat or AIU.Responses.
This allows you to verify or use the tools list in your script.
It’s part of the AIU - OpenAI API suite.
This command returns the tools list previously set by AIU.SetTools or an empty string if unset.
The result can be stored in a variable or, if unspecified, pushed onto the Top of Stack (TOS).
Retrieving the tools list is useful for:
•Verification: Confirm the tools available before executing a task.
•Debugging: Display the current configuration for troubleshooting.
•Dynamic Logic: Adapt script behavior based on the tools list.
The command accepts an optional variable to store the result; if omitted, the tools list is placed on the stack.
The default is an empty string unless set by AIU.SetTools.
Example Usage
AIU.SetTools|web_search,calculator
AIU.GetTools|$$TLS
DBP.Current Tools: $$TLS
AIU.GetTools
POP.$$TLS
This retrieves the tools list into a variable or from the stack after setting it.
Illustration
┌──────────────────────┐
│ Tools Configuration │
├──────────────────────┤
│ web_search,calculator│
└──────────────────────┘
The current tools list retrieved by the command.
Syntax
AIU.GetTools[|P1]
AIU.Get_Tools[|P1]
Parameter Explanation
P1 - (Optional) The variable to store the tools list. If omitted, the list is placed on the Top of Stack (TOS).
Example
AIU.SetTools|calculator
AIU.GetTools|$$TLS
DBP.Current Tools: $$TLS
ENR.
Remarks
- Returns the exact string set by AIU.SetTools or an empty string if unset.
Limitations
- Only retrieves the stored list; does not validate tool functionality.
- More than one parameter causes an error.
See also:
• AIU.Chat