Skip to content

Commit f4470cb

Browse files
committed
Final QA
1 parent a042c7e commit f4470cb

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

python-langgraph/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# LangGraph: Build Stateful AI Agents in Python
22

3-
This folder contains the source code for [LangGraph: Build Stateful AI Agents in Python](https://realpython.com/langgraph-build-stateful-ai-agents-in-python/)
3+
This folder contains the source code for [LangGraph: Build Stateful AI Agents in Python](https://realpython.com/langgraph-python/)
44

55
## Setup
66

python-langgraph/chains/notice_extraction.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ class NoticeEmailExtract(BaseModel):
6262
)
6363

6464
@staticmethod
65-
def _convert_string_to_date(date: str | None) -> date | None:
65+
def _convert_string_to_date(date_str: str | None) -> date | None:
6666
try:
67-
return datetime.strptime(date, "%Y-%m-%d").date()
67+
return datetime.strptime(date_str, "%Y-%m-%d").date()
6868
except Exception as e:
6969
print(e)
7070
return None
@@ -100,7 +100,6 @@ def compliance_deadline(self) -> date | None:
100100

101101
notice_parser_model = ChatOpenAI(model="gpt-4o-mini", temperature=0)
102102

103-
NOTICE_PARSER_CHAIN = (
104-
info_parse_prompt
105-
| notice_parser_model.with_structured_output(NoticeEmailExtract)
103+
NOTICE_PARSER_CHAIN = info_parse_prompt | notice_parser_model.with_structured_output(
104+
NoticeEmailExtract
106105
)

python-langgraph/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "python-langgraph"
33
version = "0.1.0"
4-
description = "Add your description here"
4+
description = "Companion code to Real Python tutorial"
55
readme = "README.md"
66
requires-python = ">=3.12"
77
dependencies = [

0 commit comments

Comments
 (0)