neurotrace.core.tools.memory
¶
neurotrace.core.tools.memory
¶
memory_search_tool(memory_orchestrator, tool_name='search_memory', tool_description=None, **kwargs)
¶
Creates a tool that searches memory (vector + graph) and returns fused results.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
memory_orchestrator
|
MemoryOrchestrator
|
Manages both vector and graph memory. |
required |
tool_name
|
str
|
Name of the tool. Defaults to "search_memory". |
'search_memory'
|
tool_description
|
str
|
Description shown to the agent. Loaded from prompt if None. |
None
|
**kwargs
|
Other Tool configuration options. |
{}
|
Returns:
Name | Type | Description |
---|---|---|
Tool |
Tool
|
A LangChain tool for searching across memory. |
Source code in neurotrace/core/tools/memory.py
save_memory_tool(memory_orchestrator, tool_name='save_memory', tool_description=None, **kwargs)
¶
Creates a tool that allows the agent to explicitly save important memories to long-term vector memory.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
vector_memory_adapter
|
The adapter to store messages. |
required | |
tool_name
|
str
|
Name of the tool. Defaults to "save_memory". |
'save_memory'
|
tool_description
|
str
|
Description of the tool. Loads from prompt if None. |
None
|
**kwargs
|
Additional keyword args for Tool. |
{}
|
Returns:
Name | Type | Description |
---|---|---|
Tool |
Tool
|
A configured LangChain Tool instance for saving memory. |
Tool
|
param tool_name: |
|
Tool
|
param memory_orchestrator: |