[Week1] StateGraph를 활용한 쇼핑 정보 ReAct Agent 구현#6
Open
Parkhaeil wants to merge 1 commit into
Open
Conversation
7c1374d to
55d16b7
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
선택 도메인
쇼핑 추천 에이전트 (1주차는 mock 데이터, 3주차부터 실제 상품 데이터로 확장 예정)
이번 주 구현 목표
StateGraph로 직접 ReAct 루프를 구성하고, Pydantic으로 structured output을 강제
구현 요약
agent(도구 사용 판단) /tools(도구 실행) /final(구조화 응답 생성)search_products,get_product_detail,get_size_guideshould_continue로 agent 다음 라우팅 (tool_calls 유무 판단)tools → agent백엣지로 ReAct 루프 형성answer,reasoning,tools_used,confidence그래프 흐름
START → agent → (tool_calls 있음?) ─Y→ tools → agent
└N→ final → END
[그래프 시각화 이미지 첨부]
실행 방법
.env에ANTHROPIC_API_KEY(또는OPENAI_API_KEY) 설정테스트 결과 요약
막힌 점 / 다음 주 개선