Gen-AI Developer Classroom notes 02/Sep/2026

using agents and init chat models

  • To create a model object just pass the string provider:model in
    • 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"}}

By continuous learner

enthusiastic technology learner

Leave a Reply

Discover more from Direct AI Powered By Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading