FoundationModels.GetTemperature
-------------------------------

Queries the temperature.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [FoundationModels](component_FoundationModels.md) | [15.5](newinversion155.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "FoundationModels.GetTemperature"; FoundationModel ) 

**MBS**( **"FoundationModels.GetTemperature";** /\* Queries the temperature. \*/  
**$FoundationModel**) /\* The identifier for the model.e.g. $model \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| FoundationModel | The identifier for the model. | $model |

### Result

Returns number, nothing or error.

### Description

Queries the temperature.  
The temperature influences the confidence of the models response.  
The value of this property must be a number between `0` and `1` inclusive.  
  
Returns empty value if not set.  
### Examples

Queries temperature:

 Set Variable \[ $Temperature ; Value: MBS ( "FoundationModels.GetTemperature" ) \]  
### See also

- [FoundationModels.SetTemperature](FoundationModelsSetTemperature.md)

This function is free to use.

Created 26th September 2025 , last changed 27th September 2025

  
[FoundationModels.GetMaximumResponseTokens](FoundationModelsGetMaximumResponseTokens.md) - [FoundationModels.Initialize](FoundationModelsInitialize.md)

[HTML Version](FoundationModelsGetTemperature.shtml)