API Documentation
Runtime control plane for request behavior, including recall, learning, history injection, memory policy overrides, and state/prompt orchestration.
The mnx Object
Include the mnx object in your request body to control Mnexium features:
subject_idstring
Identifies the end-user. Auto-generated with
subj_ prefix if omitted.chat_idstring
Conversation identifier (UUID). Auto-generated if omitted.
logboolean
Save messages to chat history. Default:
truelearnboolean | 'force'
Memory extraction:
true (LLM decides), "force" (always), false (never). Default: truerecallboolean
Inject relevant stored memories into context. Searches memories for this subject and adds matching ones to the system prompt. Default:
falsehistoryboolean
Prepend previous messages from this chat. Default:
truesummarizeboolean | string
Enable conversation summarization to reduce token costs. Use preset modes:
"light", "balanced", or "aggressive". Default: falsesystem_promptboolean | string
true (auto-resolve, default), false (skip injection), or a prompt ID like "sp_abc" for explicit selection.memory_policyboolean | string
true / omitted (auto-resolve default policy by scope), false (disable memory policy), or a policy ID like "mp_support_assistant" for explicit selection.metadataobject
Custom metadata attached to saved logs.