LangGraph와 PostgreSaver를 활용한 체크포인트 저장 및 비동기 처리 설정 방법
환경 구성
사용된 라이브러리 버전:
Python: 3.12.9
langgraph: 0.5.4
langgraph-checkpoint-postgres: 2.0.23
psycopg: 3.2.10
체크포인트 초기화 방식
방법 1: 직접 연결 객체로 초기화
PostgresSaver 클래스를 직접 사용하여 데이터베이스 연결을 설정할 수 있습니다.
from psycopg import Connection
from langgraph.checkpoint.postgres import Postgres ...
7월 9일 04:25에 게시됨