Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

FoundationModels.CloseSession

Closes the current model session.

Component Version macOS Windows Linux Server iOS SDK
FoundationModels 15.5 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "FoundationModels.CloseSession"; FoundationModel )   More

Parameters

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

Result

Returns OK or error.

Description

Closes the current model session.

Examples

Close session:

Set Variable [ $r ; Value: MBS("FoundationModels.CloseSession") ]

See also

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


FoundationModels.BeginSession - FoundationModels.GetMaximumResponseTokens