File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
template_langgraph/agents/basic_workflow_agent Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ def create_graph(self):
6262 workflow .add_node ("finalize" , self .finalize )
6363
6464 # Create edges
65- workflow .add_edge (START , "initialize" )
65+ # workflow.add_edge(START, "initialize")
66+ workflow .add_edge (START , "chat_with_tools" )
6667 workflow .add_edge ("initialize" , "do_something" )
6768 workflow .add_edge ("do_something" , "extract_profile" )
6869 workflow .add_edge ("extract_profile" , "chat_with_tools" )
Original file line number Diff line number Diff line change 1- from typing import Annotated , TypedDict
2-
1+ from collections .abc import Sequence
2+ from typing import (
3+ Annotated ,
4+ TypedDict ,
5+ )
6+
7+ from langchain_core .messages import (
8+ BaseMessage ,
9+ )
310from langgraph .graph .message import add_messages
411from pydantic import BaseModel , Field
512
@@ -21,5 +28,5 @@ class AgentOutput(BaseModel):
2128
2229
2330class AgentState (TypedDict ):
24- messages : Annotated [list , add_messages ]
31+ messages : Annotated [Sequence [ BaseMessage ] , add_messages ]
2532 profile : Profile | None = Field (None , description = "抽出されたプロファイル情報" )
You can’t perform that action at this time.
0 commit comments