Mem0ManagedGetMemory
Python template · sinapsis_mem0.templates.managed.get_memory
Overview
Template to retrieve one memory by id from managed Mem0.
Capabilities
Capabilities: not setInstallation
Install the published package using pip or uv.
Terminalbash
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.
get_argsRequired
Retrieval arguments.
Mem0ManagedGetMemoryArgs
Required
Default: null
Required
Default: null
memory_idRequired
Identifier of the memory to retrieve.
str
Required
Default: null
Required
Default: null
metadata
sinapsis_core.template_base.base_models.TemplateMetadata | None
Optional
Default: null
Optional
Default: null
memory_config
Mem0ManagedMemoryConfig
Optional
Default: null
Optional
Default: null
host
The host address for the memory configuration. Defaults to None.
str | None
Optional
Default: null
Optional
Default: null
org_id
The organization ID associated with the memory configuration. Defaults to None.
str | None
Optional
Default: null
Optional
Default: null
project_id
The project ID associated with the memory configuration. Defaults to None.
str | None
Optional
Default: null
Optional
Default: null
Configuration example
Example from the Python docstring:
yaml
agent:
name: my_test_agent
templates:
- template_name: InputTemplate
class_name: InputTemplate
attributes: {}
- template_name: Mem0ManagedGetMemory
class_name: Mem0ManagedGetMemory
template_input: InputTemplate
attributes:
memory_config:
host: null
org_id: null
project_id: null
get_args:
memory_id: "1234"Show schema-based configuration skeleton
yaml
templates:
- template_name: "Mem0ManagedGetMemory"
class_name: "Mem0ManagedGetMemory"
attributes:
get_args:
memory_id: "<required>"
memory_config:
host: null
org_id: null
project_id: null
Inheritance
Immediate parent:
sinapsis_mem0.templates.managed.base.Mem0ManagedBaseEnvironment variables
Environment definitions belong to their canonical Python modules.
No directly related environment variables listed.