Documentation Index
Fetch the complete documentation index at: https://docs.maximem.ai/llms.txt
Use this file to discover all available pages before exploring further.
user and assistant turns should be recorded so the system has the full transcript.
Parameters
Stable identifier for the conversation. All messages sharing the same
conversation_id form one transcript.Message role. Must be
"user" or "assistant".The message text.
External user identifier (your application’s user ID). Required so the message is scoped to the right end user.
External customer/tenant identifier. Required for multi-tenant scoping.
Optional session identifier. Auto-generated if not provided.
Free-form metadata to attach to the message (e.g., model name, latency, custom tags).
Returns
A dict describing the recorded message.Server-assigned message identifier.
Echo of the supplied conversation id.
Session id (the one you passed, or the auto-generated one).
ISO-8601 timestamp of when the message was accepted.
Example
Raises
InvalidInputError— whenroleis not"user"or"assistant", or when required identifiers are missing.AuthenticationError— when the API key is missing or invalid.NetworkError— when the SDK cannot reach Synap.