| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Llama.ContextAvailable
Queries context memory available.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Llama | 16.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Llama.ContextAvailable"; LlamaSession ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| LlamaSession | The session identifier. | $$session |
Result
Returns number or error.
Description
Queries context memory available.You can specify the context size with the parameters to Llama.StartContext function.
Examples
Query memory used:
MBS("Llama.ContextUsed"; $$session) & " of " & MBS("Llama.ContextAvailable"; $$session)
Example result: 43 of 20480
Example result: 43 of 20480
See also
This function is free to use.
Created 10th February 2026, last changed 10th February 2026