AIG.GetThinking

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIG. - Google AI > 3. Configuration (Model, Context & Reasoning) >

AIG.GetThinking

AIG.GetThinking

Top Next


MiniRobotLanguage (MRL)

 

AIG.GetThinking
Retrieve Current Reasoning Configuration

 

Intention

 

To check the current configuration for the AI's "Thinking" capabilities. This command confirms whether the model is set to expose its internal reasoning process ("Thoughts") and what the token budget for that reasoning is.

 

What is the GetThinking Command?

 

It retrieves the values previously set by AIG.SetThinking. The result is returned as a formatted string showing both the visibility mode and the token count.

 

Why Do You Need It?

 

Verification: Ensure that your token budget (e.g., 4000 tokens) is correctly applied before running an expensive logic task.

Debugging: If the AI output contains unexpected verbose reasoning blocks, use this to check if "include_thoughts" is accidentally enabled.

 

Example Usage

 

// 1. Enable Thinking with a 2048 token budget

AIG.SetThinking|1|2048

 

// 2. Retrieve the current configuration

AIG.GetThinking|$$Config

 

// 3. Display the result

DBP. $$Config

// Output: "Level=include_thoughts, Budget=2048"

 

Syntax

 

AIG.GetThinking[|P1]

AIG.gtk[|P1]

 

Parameter Explanation

 

P1 - (Optional) Variable name to store the result string. If omitted, the result is placed on the Top-Of-Stack (TOS).

 

See also:

 

? AIG.SetThinking

? AIG.SetApiVersion (Required for Thinking models)