| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Llama.Release
Releases the session.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Llama | 16.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Llama.Release"; LlamaSession ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| LlamaSession | The session identifier. | $$session |
Result
Returns OK or error.
Description
Releases the session.Closes the sampler, model and context when needed.
Examples
Release if needed in a layout exit script:
If [ IsEmpty ( $$session ) ]
# nothing to do
Else
Set Variable [ $r ; Value: MBS("Llama.Release"; $$session) ]
Set Variable [ $$session ; Value: "" ]
End If
# nothing to do
Else
Set Variable [ $r ; Value: MBS("Llama.Release"; $$session) ]
Set Variable [ $$session ; Value: "" ]
End If
See also
Example Databases
Blog Entries
Created 10th February 2026, last changed 12nd February 2026