Mem0OSSAdd
Python template · sinapsis_mem0.templates.oss.add
Overview
Template to add the current conversation turn to OSS 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.Memory.add`.
Optional
Default: null
Whether Mem0 should infer memories from the messages. Defaults to `True`.
Optional
Default: true
Optional prompt used by Mem0 during extraction.
Optional
Default: null
Optional Mem0 memory type.
Optional
Default: null
Optional
Default: null
Optional
Default: null
Configuration for the language model
Optional
Default: null
Configuration for the specific LLM
Optional
Default: {}
Provider of the LLM (e.g., 'ollama', 'openai')
Optional
Default: "openai"
The version of the API
Optional
Default: "v1.1"
Configuration for the embedding model
Optional
Default: null
Configuration for the specific embedding model
Optional
Default: {}
Provider of the embedding model (e.g., 'ollama', 'openai')
Optional
Default: "openai"
Configuration for the reranker
Optional
Default: null
Provider-specific reranker configuration
Optional
Default: null
Reranker provider (e.g., 'cohere', 'sentence_transformer')
Optional
Default: "cohere"
Configuration for the vector store
Optional
Default: null
Configuration for the specific vector store
Optional
Default: null
Provider of the vector store (e.g., 'qdrant', 'chroma', 'upstash_vector')
Optional
Default: "qdrant"
Path to the history database
Optional
Default: "/home/ariel/.mem0/history.db"
Custom instructions for fact extraction
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: Mem0OSSAdd
class_name: Mem0OSSAdd
template_input: InputTemplate
attributes:
memory_config:
vector_store:
provider: qdrant
config: null
llm:
provider: openai
config: {}
embedder:
provider: openai
config: {}
history_db_path: /path/to/.mem0/history.db
graph_store:
provider: neo4j
config:
url: null
username: null
password: null
database: null
base_label: null
llm: null
custom_prompt: null
version: v1.1
custom_fact_extraction_prompt: null
custom_update_memory_prompt: null
add_args:
infer: true
memory_type: null
prompt: nullShow schema-based configuration skeleton
templates:
- template_name: "Mem0OSSAdd"
class_name: "Mem0OSSAdd"
attributes:
add_args:
infer: true
prompt: null
memory_type: null
memory_config:
llm:
config: {}
provider: "openai"
version: "v1.1"
embedder:
config: {}
provider: "openai"
reranker:
config: null
provider: "cohere"
vector_store:
config: null
provider: "qdrant"
history_db_path: "/home/ariel/.mem0/history.db"
custom_instructions: null
Inheritance
sinapsis_mem0.templates.oss.base.Mem0OSSBaseEnvironment variables
Environment definitions belong to their canonical Python modules.
No directly related environment variables listed.