Mem0ManagedSearch
Python template · sinapsis_mem0.templates.managed.search
Overview
Template to search managed Mem0 using the packet query.
Template attributes take precedence over packet identity when both are present. Packet-derived `agent_id` is intentionally excluded from the managed identity merge because Mem0 managed scopes stored memories by `user_id` and `run_id` in the tested flows.
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.
Optional
Default: null
Search parameters passed to the managed client. Template attributes take precedence over packet identity when both are present.
Optional
Default: null
Optional maximum number of search results.
Optional
Default: null
Optional app scope.
Optional
Default: null
Optional fields to include in the response.
Optional
Default: null
Whether Mem0 should rerank the returned memories.
Optional
Default: null
Optional Mem0 v2 filters. Packet identity is translated into this structure automatically.
Optional
Default: null
Optional minimum similarity score.
Optional
Default: null
Whether Mem0 should enable keyword search.
Optional
Default: null
Whether Mem0 should apply memory-side filtering before ranking.
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: Mem0ManagedSearch
class_name: Mem0ManagedSearch
template_input: InputTemplate
attributes:
memory_config:
host: null
org_id: null
project_id: null
search_args:
app_id: null
filters: null
top_k: null
threshold: null
fields: null
rerank: null
keyword_search: null
filter_memories: nullShow schema-based configuration skeleton
templates:
- template_name: "Mem0ManagedSearch"
class_name: "Mem0ManagedSearch"
attributes:
search_args:
top_k: null
app_id: null
fields: null
rerank: null
filters: null
threshold: null
keyword_search: null
filter_memories: null
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.