Mem0ManagedAdd
Python template · sinapsis_mem0.templates.managed.add
Overview
Template to add the current conversation turn to managed Mem0.
Capabilities
Capabilities: not setInstallation
Install the published package using pip or uv.
pip install sinapsis-mem0==1.0.0uv pip install sinapsis-mem0==1.0.0uv add sinapsis-mem0==1.0.0Configuration
Effective fields from the inspector schema, including nested Pydantic model fields.
Extra arguments passed to `mem0.MemoryClient.add`.
Optional
Default: null
Whether Mem0 should infer memories from the messages. Defaults to `True`.
Optional
Default: true
Optional app scope.
Optional
Default: null
Whether the managed API should process the add request asynchronously. This template defaults to `False` to keep add operations synchronous unless explicitly overridden.
Optional
Default: true
Optional custom categories used during memory extraction.
Optional
Default: null
Optional extraction instructions forwarded to Mem0.
Optional
Default: null
Optional
Default: Not specified
Category name sent to Mem0.
Required
Default: null
Human-readable explanation of the category.
Required
Default: null
Optional
Default: null
Optional
Default: null
The host address for the memory configuration. Defaults to None.
Optional
Default: null
The organization ID associated with the memory configuration. Defaults to None.
Optional
Default: null
The project ID associated with the memory configuration. Defaults to None.
Optional
Default: null
Configuration example
Example from the Python docstring:
agent:
name: my_test_agent
templates:
- template_name: InputTemplate
class_name: InputTemplate
attributes: {}
- template_name: Mem0ManagedAdd
class_name: Mem0ManagedAdd
template_input: InputTemplate
attributes:
memory_config:
host: null
org_id: null
project_id: null
add_args:
app_id: null
infer: true
custom_instructions: null
custom_categories: null
async_mode: falseShow schema-based configuration skeleton
templates:
- template_name: "Mem0ManagedAdd"
class_name: "Mem0ManagedAdd"
attributes:
add_args:
infer: true
app_id: null
async_mode: true
custom_categories: null
custom_instructions: null
custom_categories[]:
name: "<required>"
description: "<required>"
memory_config:
host: null
org_id: null
project_id: null
Inheritance
sinapsis_mem0.templates.managed.base.Mem0ManagedBaseEnvironment variables
Environment definitions belong to their canonical Python modules.
No directly related environment variables listed.