neurotrace.core.graph_memory
¶
neurotrace.core.graph_memory
¶
GraphMemoryAdapter
¶
Bases: BaseGraphMemoryAdapter
Source code in neurotrace/core/graph_memory.py
add_conversation(summarised_text, sender='agent', tags=None)
¶
Add a conversation to the graph memory.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sender
|
Literal['user', 'agent']
|
The sender of the message. |
'agent'
|
|
param summarised_text: |
required |
Source code in neurotrace/core/graph_memory.py
ask_graph(query)
¶
Ask a question to the graph memory and get an answer.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query
|
str
|
The question to ask. |
required |
Returns:
Name | Type | Description |
---|---|---|
str |
Dict[str, Any]
|
The answer from the graph memory. |