neurotrace.core.tools.vector
¶
neurotrace.core.tools.vector
¶
vector_memory_search_tool(vector_memory_adapter, tool_name='search_memory', tool_description=None, **kwargs)
¶
Creates a search tool for vector memory using the provided adapter.
This factory function creates a LangChain Tool that wraps the search functionality of a vector memory adapter. The tool can be used to perform similarity searches in the vector store.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
vector_memory_adapter
|
BaseVectorMemoryAdapter
|
The adapter instance that provides vector memory search functionality. |
required |
tool_name
|
str
|
Name of the search tool. Defaults to "search_memory". |
'search_memory'
|
tool_description
|
str
|
Description of what the search tool does. If None, loads description from prompt file. Defaults to None. |
None
|
**kwargs
|
Additional keyword arguments to pass to Tool constructor. |
{}
|
Returns:
Name | Type | Description |
---|---|---|
Tool |
Tool
|
A configured LangChain Tool instance for vector memory search. |