AIG. - AI Google Gemini Integration

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIG. - Google AI >

AIG. - AI Google Gemini Integration

8. Results & Analysis

Previous Top Next


MiniRobotLanguage (MRL)

 

8. Results & Analysis
Extracting Data from the AI Response

 

Overview

 

After executing a Core Operation (like AIG.Ask), the response data is stored internally within the AIG library. This section provides the commands to retrieve specific parts of that data, such as the text content, metadata, or token usage statistics.

 

Available Commands

 

AIG.Get Content - Retrieves the main text answer generated by the AI.

AIG.GetFinishReason - Explains why generation stopped (e.g., "STOP", "MAX_TOKENS", "SAFETY").

AIG.GetRawReturn - Returns the full, unprocessed JSON string received from the Google API.

AIG.GetTokens - Returns the total number of tokens consumed by the last request.

AIG.GetWordCount - Returns an estimated word count of the generated response content.

AIG.IsFuncCall - Returns 1 (True) if the AI decided to call a tool/function, 0 (False) otherwise.