Skip to content

Commit

Permalink
LangGraph Tutorial Update 2024.11.03
Browse files Browse the repository at this point in the history
  • Loading branch information
teddylee777 committed Nov 2, 2024
1 parent 7b6a156 commit 64aefe2
Show file tree
Hide file tree
Showing 23 changed files with 3,598 additions and 1,570 deletions.
412 changes: 412 additions & 0 deletions 17-LangGraph/01-Modules/01-LangGraph-Introduction.ipynb

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions 17-LangGraph/01-Modules/01-introduction.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
from typing import TypedDict


class User(TypedDict):
name: str
age: int
email: str


def create_user(name: str, age: int, email: str) -> User:
return {"name": name, "age": age, "email": email}


if __name__ == "__main__":
# 올바른 사용
user1 = create_user("Alice", 30, "[email protected]")

# 타입 오류 (age에 문자열 할당)
user2 = create_user("Bob", "25", "[email protected]")

# 타입 오류 (추가 필드 할당)
user3: User = {
"name": "Charlie",
"age": 35,
"email": "[email protected]",
"extra": "info",
}

# 타입 오류 (필수 필드 누락)
user4: User = {"name": "David", "age": 40}
517 changes: 517 additions & 0 deletions 17-LangGraph/01-Modules/02-LangGraph-ChatBot.ipynb

Large diffs are not rendered by default.

578 changes: 578 additions & 0 deletions 17-LangGraph/01-Modules/03-LangGraph-Agent.ipynb

Large diffs are not rendered by default.

628 changes: 628 additions & 0 deletions 17-LangGraph/01-Modules/04-LangGraph-Agent-With-Memory.ipynb

Large diffs are not rendered by default.

831 changes: 831 additions & 0 deletions 17-LangGraph/01-Modules/05-LangGraph-Streaming-Outputs.ipynb

Large diffs are not rendered by default.

602 changes: 602 additions & 0 deletions 17-LangGraph/01-Modules/06-LangGraph-Human-In-the-Loop.ipynb

Large diffs are not rendered by default.

Binary file added 17-LangGraph/01-Modules/image/crag.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 17-LangGraph/01-Modules/image/langgraph-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 17-LangGraph/01-Modules/image/langgraph-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 17-LangGraph/01-Modules/image/langgraph-03.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 17-LangGraph/01-Modules/image/langgraph-04.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 17-LangGraph/01-Modules/image/langgraph-05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 17-LangGraph/01-Modules/image/self-rag-01.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 17-LangGraph/01-Modules/image/self-rag-02.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
362 changes: 0 additions & 362 deletions 17-LangGraph/01-langgraph-intro.ipynb

This file was deleted.

Loading

0 comments on commit 64aefe2

Please sign in to comment.