AID. - Artificial Intelligence DeepSeek Utility

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AID. - DeepSeek > !Generation Parameters >

AID. - Artificial Intelligence DeepSeek Utility

AID.GetTemperature

Previous Top Next


MiniRobotLanguage (MRL)

 

AID.Get Temperature
Retrieve Current Creativity Level for AI Responses

 

Intention

 

GetTemperature Command: Checking AI Response Creativity
 
The GetTemperature command retrieves the current temperature setting used by the DeepSeek API to control response creativity.

This helps you verify or adjust the AI’s behavior in your scripts.

It’s part of the AID - DeepSeek API suite.

 

What is the GetTemperature Command?

 

The GetTemperature command fetches the current value of the AID_Temperature global variable, which dictates how creative or predictable AI responses are.

You can store this value in a variable or retrieve it from the Top of Stack (TOS) if no variable is specified.

 

Why Do You Need It?

 

Retrieving the temperature setting is useful for:

Verification: Confirm the current creativity level before making API calls.

Debugging: Ensure the temperature aligns with your script’s intended behavior.

Dynamic Adjustment: Use the retrieved value to decide if a change is needed via AID.Set Temperature.

 

How to Use the GetTemperature Command?

 

Call the command with an optional variable to store the result. If omitted, the value is placed on the Top of Stack (TOS).

The temperature ranges from 0.0 (deterministic) to 2.0 (highly creative), with a default of 0.0.

 

Example Usage

 

AID.Get Temperature|$$TMP

DBP.Current Temperature: $$TMP

AID.Get Temperature

POP.$$TMP

DBP.Temperature from Stack: $$TMP

 

The returned value is a string representation of the temperature (e.g., "0.7").

 

Illustration

 

┌───────────────┐

│ Temperature   │

├───────────────┤

│ 0.7           │

└───────────────┘

Example of retrieving the current temperature setting.

 

Syntax

 

AID.GetTemperature[|P1]

AID.Get Temperature[|P1]

 

Parameter Explanation

 

P1 - (Optional) The variable where the temperature value will be stored. If omitted, the value is placed on the Top of Stack (TOS).

 

Example

 

AID.Set Temperature|1.0

AID.Get Temperature|$$VAL

DBP.Temperature Setting: $$VAL

ENR.

 

Remarks

 

- Returns the temperature as a string (e.g., "1.0").

- Default value is 0.0 if not previously set.

 

Limitations

 

- Only retrieves the current setting; it does not validate its effect on API responses.

 

See also:

 

AID.Set Temperature

AID.Ask

AID.AskT

Generation Parameters