Long term memory
- Refer Here for longterm memory
- Longterm memory spans across converstaions (sessions)
- Langchain uses store
- Lets play with InMemoryStore (ideally longterm ends in persistent store)
- MemoryStore is a Key Value Storage which is namespaced
-
key is string and value is dictionary
-
Longterm memory by types
- episodic
- semantic
- procedural
-
Refer Here for sample code
Tools
- Tool is an action that can be performed
- Tools can be developed in two ways
- Framework dependent
- Framework indepedent (MCP)
Building tools according to langchain
-
Refer Here for documentation
-
A tool is a simple python function
- with a decorator
- type hints
- docstrings
