AI - Direct Access

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command > AI - Direct Access >

AI - Direct Access

Get Any Value

Previous Top Next


MiniRobotLanguage (MRL)

 

Get Any Value

Retrieves various internal values related to AI operations

 

 

Intention

 

The `AIC.Get Any Value` command retrieves various internal values related to AI operations, providing insights into different aspects of AI processing and limitations.

This command is intended to offer users access to internal metrics and limits within the AI system. It is useful for monitoring and adapting AI-related operations based on these values.

 

 

Syntax

 

 

AIC.Get Any Value|P1[|P2]

 

 

Parameter Explanation

 

- `P1` is a number corresponding to the specific value to retrieve (see the list below).

- `P2` (optional) is a variable where the retrieved value will be stored.

 

- `0`: `AIO_Choices` - Number of choices returned from the last AI operation.

- `1`: `TotalTokens` - Total tokens used in the last AI operation.

- `2`: `PromptTokens` - Number of tokens used in the prompt of the last AI operation.

- `3`: `CompletionTokens` - Number of tokens used in the completion of the last AI operation.

- `4`: `AIO_Created` - Timestamp of the last AI operation's completion.

- `5`: `AIC_MaxToken_Vision` - Maximum tokens allowed in the vision model.

- `6`: `AI_MaxToken` - Maximum tokens allowed in the current AI model.

- `7`: `AI_MaxToken_GPTAll` - Maximum tokens for GPT-All operations.

- `8`: `AI_Cnt` - Counter for the number of history entries.

 

 

Example

 

'***********************************

' AIC.-Sample

'***********************************
' Example SPR-Script to get the number of choices from the last AI operation

AIC.Get Any Value|0|$$Num

 

' Output the retrieved value

DBP.$$Num

ENR.

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also:

 

   AIC.Get Several