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

Llama.Query

Runs a text through the model.

Component Version macOS Windows Linux Server iOS SDK
Llama 16.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Llama.Query"; LlamaSession; Prompt { ; maxToken } )   More

Parameters

Parameter Description Example Flags
LlamaSession The session identifier. $$session
Prompt The prompt text for the chat. "Hello"
maxToken The maximum number of tokens allowed before the function cancels.
Default is 999.
1234 Optional

Result

Returns text or error.

Description

Runs a text through the model.
Returns the response back.

We tokenize the query, send it to the model and let it answer.

Examples

Ask the model something:

MBS("Llama.Query"; $$session; "What does the German word Sonne mean?")

Blog Entries

This function checks for a license.

Created 13th February 2026, last changed 13th February 2026


Llama.New - Llama.Release