Skip to content

Repository files navigation

langgraph

learning langgraph 0->hero

Needed data structure:Prerequisites

1.Dictionary

image - normal python dictionary isnt strict to types of key-value pair - solution is typed dictionary image - quite important for defining **States**

2.Union

  • tells the type of data can be any of defined.eg below image

3. Optional

  • image

4.Any

image

5.Lamda

image

Step 1:Elements of Langgraph

image image image - each nodes are connected using edges. image image image image image image image

Step 2:Different tpes of messages

image

Step 3: Creating Hello World Graph

image

We'll build below

image

Install langggraph

pip install -U langgraph

see app.py

Step 4:level 2-Creating grpahs with multiple inputs🔥

image
  • see level2.py

Optional(Adding streamming to output)

see level2_streamming.py

streamming.mp4

Level 3:

image #### see sequencial-multinodes.py image

(completed Agent 2,need to practice Agent 1& 2)

Agent 1:created simple chatbot

Agent 2:created conversational history in temp file image

ReAct Agent(Reasoning & Acting Agent)

image

About

learning langgraph 0->hero

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages