using agents and init chat models
- To create a model object just pass the string
provider:modelin- init_chat_model
- create_agent
Memory by scope
- Scope:
- current session/chat => short-term (checkpointer)
- across sessions => long term => store
- scratch pad (current task) => todo_list
Create an agent
-
invoke with
- interaction 1: tell your name
- interaction 2: ask your name
-
Refer Here for checkpointer
-
While creating a checkpointer we can tell where to store short term memory
- Agent conversations use a unique id per session which is referred as thread which has unique thread_id
{"configurable": {"thread_id": "classroom-02sep"}}
- Refer Here this note book for the code examples
