Skip to content

[03-Agent] 03-LangGraph-Streaming - 모델 마이그레이션 및 스트리밍 API 수정#24

Merged
ash-hun merged 1 commit intomainfrom
feat/03-agent/03-streaming
Feb 27, 2026
Merged

[03-Agent] 03-LangGraph-Streaming - 모델 마이그레이션 및 스트리밍 API 수정#24
ash-hun merged 1 commit intomainfrom
feat/03-agent/03-streaming

Conversation

@myeolinmalchi
Copy link
Contributor

PR 타입

  • 새 튜토리얼 추가 (New Tutorial)
  • 기존 튜토리얼 수정/개선 (Update Tutorial)
  • 버그 수정 (Bug Fix)
  • 문서 수정 (Documentation)
  • 기타 (Other)

변경 사항

  • ChatOpenAI(model="gpt-4o-mini")init_chat_model("claude-sonnet-4-5")로 마이그레이션 (4개소)
  • LangGraph v1 스트리밍 API 호환성 수정: runtime.get_stream_writer()runtime.stream_writer
  • stream_mode="messages" 튜플 언패킹 수정: (AIMessageChunk, metadata) 형식 적용
  • 비스트리밍 모델에 disable_streaming=True 파라미터 추가
  • OpenAI 대안 모델 안내 주석 추가

수정된 파일

  • 03-Agent/03-LangGraph-Streaming.ipynb

체크리스트

기존 튜토리얼 수정인 경우

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

테스트 결과

테스트 환경:

  • OS: macOS
  • 모든 셀 정상 실행 확인

추가 설명

LangGraph v1 스트리밍 API 주요 변경:

  • StreamWriter 접근 방식 변경: 함수 호출 → 속성 접근 (runtime.stream_writer)
  • stream_mode="messages" 반환값 변경: (AIMessageChunk, metadata) 튜플 형태
  • 스트리밍 비활성화 모델 초기화 시 disable_streaming=True 옵션 필요

@myeolinmalchi myeolinmalchi self-assigned this Feb 22, 2026
Copy link
Contributor

@ash-hun ash-hun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

정상작동 확인했고, 수고하셨습니다. merge & delete branch 하겠습니다!

@ash-hun ash-hun merged commit e0b330e into main Feb 27, 2026
@ash-hun ash-hun deleted the feat/03-agent/03-streaming branch February 27, 2026 15:38
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.

2 participants