LangGraph Tool Calling 챗봇 완성 – ToolNode부터 구조화 출력까지
개념 정리실/AI Agent·2026. 3. 26.
1. LangGraph로 Tool Calling 그래프 완성하기앞서 bind_tools()로 LLM에 도구를 연결하는 방법을 살펴봤습니다.이번에는 이것을 LangGraph 그래프로 연결해 실제로 동작하는 챗봇을 만들어 봅니다.전체 구조는 다음과 같습니다.START → chatbot ──(tool_calls 있음)──→ tools → chatbot └─(tool_calls 없음)──→ END1.1 State와 chatbot 노드 정의from typing import Annotatedfrom typing_extensions import TypedDictfrom langgraph.graph import StateGraph, START, ENDfrom langgraph.graph.me..