AIO.SetParTools

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIO. - OpenRouter AI >

AIO.SetParTools

AIO.SetParTools

Previous Top Next


MiniRobotLanguage (MRL)

 

AIO.SetParTools|$$FLAG
Enable/Disable Parallel Tool Calling

 

Purpose

 

Controls whether the AI model can call multiple tools in parallel within a single response. When enabled (default), the model can invoke several tools simultaneously. When disabled, tools must be called sequentially, which may be necessary for tools that depend on each other's results.

 

Syntax

 

AIO.SetParTools|$$FLAG

 

Parameters

 

$$FLAG - A numeric flag to control parallel tool calling:

0 - Disable parallel tool calling (sequential only)

1 - Enable parallel tool calling (default)

 

Return Value

 

None. The setting is stored internally and applied to subsequent API requests.

 

Example

 

' Disable parallel tool calling for dependent tools

AIO.SetParTools|0

 

' Now tools will be called sequentially

' (Tool B can use results from Tool A)

AIO.Chat|Get weather, then suggest activities|$$Response

 

' Re-enable parallel calling for independent tools

AIO.SetParTools|1

 

Notes

 

- Enabled by default for better performance with independent tools

- Disable when tools have dependencies (output of one is input to another)

- Parallel calling reduces latency when multiple independent operations are needed

- Not all models support parallel tool calling

 

Related Commands

 

AIO.SetStructOut - Enable/disable structured output

AIO.Chat - Send chat request

AIO.Init - Initialize AIO system