forked from teddylee777/langchain-kr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LangGraph Tutorial Update 2024.11.03
- Loading branch information
1 parent
7b6a156
commit 64aefe2
Showing
23 changed files
with
3,598 additions
and
1,570 deletions.
There are no files selected for viewing
412 changes: 412 additions & 0 deletions
412
17-LangGraph/01-Modules/01-LangGraph-Introduction.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
628 changes: 628 additions & 0 deletions
628
17-LangGraph/01-Modules/04-LangGraph-Agent-With-Memory.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
831 changes: 831 additions & 0 deletions
831
17-LangGraph/01-Modules/05-LangGraph-Streaming-Outputs.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
602 changes: 602 additions & 0 deletions
602
17-LangGraph/01-Modules/06-LangGraph-Human-In-the-Loop.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
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.
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.
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.
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.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.