A memory space groups related sessions and memories together, providing an isolation
boundary for conversational, semantic, and episodic memories in agentic applications.
Added in version v3.15.
Variables:
id (str) – The ID of the memory space.
user_id (str) – The ID of the user who owns the memory space.
tenant_id (str) – The ID of the tenant.
description (str or None) – Optional. A human-readable description.
llm_model_name (str or None) – Optional. An LLM model name associated with the memory space (maximum 200 characters).
created_at (datetime.datetime) – The timestamp when the memory space was created.
Every session must have at least one lifecycle strategy. If lifecycle_strategies
is not provided or is an empty list, the server attaches a default strategy.
Added in version v3.15.
Parameters:
memory_space_id (str) – The ID of the memory space to create the session in.
participants (list of str) – IDs of the participants in the session.
lifecycle_strategies (list of dict or None) – Optional. The lifecycle strategy configurations. When omitted, the server
applies a default strategy.
description (str or None) – Optional. A human-readable description.
metadata (dict or None) – Optional. Application-defined metadata.
When created_at is provided, the server uses it for optimistic concurrency
control. Specifically, if the event has been modified since that timestamp, the server rejects
the update. The caller must handle this error and reload the event before retrying.
Added in version v3.15.
Parameters:
sequence_id (int) – The ordinal position of the event to update.
body (dict or None) – The new event payload.
event_type (str or None) – The new event-type label.
emitter (dict or None) – The new emitter information; the type of entity that emitted the event (e.g. "agent" or "user").
created_at (datetime.datetime or None) – Optional timestamp for optimistic concurrency control.
Returns:
The updated event, or None if called with no changes.