출처 : https://www.youtube.com/watch?v=jGg_1h0qzaM&t=1583s Simple (Chat)Bot Connect load_dotenv() # API 키 같은 것들 따로 저장해두고 import 해주기class AgentState(TypedDict): messages: List[HumanMessage]llm = ChatOpenAI(model="gpt-4.1-nano")def process(state: AgentState) -> AgentState: response = llm.invoke(state["messages"]) print(f"\nAI: {response}") return stategraph = StateGraph(AgentState)graph.add_nod..