AIG. - AI Google Gemini Integration

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIG. - Google AI > 4. Configuration (Generation Parameters) >

AIG. - AI Google Gemini Integration

AIG.GetStop

Previous Top Next


MiniRobotLanguage (MRL)

 

AIG.GetStop
Retrieve the Current Stop Sequences

 

Intention

 

Retrieve the comma-separated string of stop sequences currently configured for the AI generation process. These are the sequences that will cause the model to stop generating output if encountered.

 

What is the GetStop Command?

 

This Command returns the current value stored in the AIG_Stop global variable. This variable is set using the AIG.SetStop Command.

 

Why Do You Need It?

 

Use this Command to:

Verify Configuration: Check which stop sequences are currently active before making an API call.

Debugging: Confirm the stop sequences if responses are ending unexpectedly or not ending where desired.

 

How to Use

 

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

 

Example Usage

 

// Set some stop sequences

AIG.SetStop|User:,END

 

// Retrieve the current stop sequences

AIG.GetStop|$$MyStops

DBP. Current stop sequences: @$$MyStops

// Output: Current stop sequences: User:,END

 

Syntax

 

AIG.GetStop[|P1]

AIG.gst[|P1]

 

Parameter Explanation

 

P1 - (Optional) The name of the variable (e.g., `$$MyVar`) where the retrieved comma-separated stop sequences string should be stored.

 

Remarks

 

- Returns the exact string stored in the AIG_Stop global variable.

- An empty string indicates that no custom stop sequences are currently set.

 

See also:

 

? AIG.SetStop

? AIG. Commands Overview