Skip to content

Conversation

@hank-kim97
Copy link

PR 타입

  • 새로운 튜토리얼 추가
  • 기존 튜토리얼 수정 (버그 수정 / 내용 개선 / 리팩토링)
  • 문서 수정
  • 기타 (chore, 의존성 업데이트 등)

변경 사항

LangGraph V1의 Runtime 기능에 대한 튜토리얼을 업데이트했습니다.

  • Runtime의 핵심 구성 요소(Context, Store, Stream Writer) 설명 추가
  • 도구에서 Runtime 액세스하는 방법 예제 구현
  • 미들웨어에서 Runtime 사용 예제 (Dynamic Prompt, Before/After Model)
  • 종합 예제: 사용자 컨텍스트 기반 에이전트
  • 실전 패턴: 데이터베이스 연결 전달, 인증 및 권한 검사, 요청별 설정

수정된 파일

  • 03-Agent/04-LangGraph-Runtime.ipynb (+415, -137 lines)

체크리스트

기존 튜토리얼 수정인 경우

  • 금지 파일 미포함
  • 노트북 셀 에러 출력 없음
  • 파일명 형식 준수 ({NN}-LangGraph-{Topic}.ipynb)
  • 불필요한 출력/주석 없음
  • 오탈자 및 문장 오류 검토
  • AI 흔적 없음 (커밋 이력)
  • PR 미리보기 확인 완료

테스트 결과

테스트 환경:

  • OS: Mac
  • Python: 3.11+

노트북 셀 실행 결과가 정상적으로 저장되어 있으며, 에러 출력이 없음을 확인했습니다.


추가 설명

Runtime 튜토리얼 주요 내용:

  • Context 액세스: context_schema로 정의한 Context를 도구에서 runtime.context로 접근
  • Store 액세스: 장기 메모리를 위한 runtime.store.get(), put() 사용법
  • Stream Writer: 진행 상황을 실시간 스트리밍하는 runtime.stream_writer 활용
  • 미들웨어 통합: @dynamic_prompt, @before_model, @after_model에서 Runtime 사용
  • 실전 패턴: DB 연결 전달, 권한 검사, 요청별 설정 구현 예제

@hank-kim97 hank-kim97 self-assigned this Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant