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):
62
62
workflow .add_node ("finalize" , self .finalize )
63
63
64
64
# Create edges
65
- workflow .add_edge (START , "initialize" )
65
+ # workflow.add_edge(START, "initialize")
66
+ workflow .add_edge (START , "chat_with_tools" )
66
67
workflow .add_edge ("initialize" , "do_something" )
67
68
workflow .add_edge ("do_something" , "extract_profile" )
68
69
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
+ )
3
10
from langgraph .graph .message import add_messages
4
11
from pydantic import BaseModel , Field
5
12
@@ -21,5 +28,5 @@ class AgentOutput(BaseModel):
21
28
22
29
23
30
class AgentState (TypedDict ):
24
- messages : Annotated [list , add_messages ]
31
+ messages : Annotated [Sequence [ BaseMessage ] , add_messages ]
25
32
profile : Profile | None = Field (None , description = "抽出されたプロファイル情報" )
You can’t perform that action at this time.
0 commit comments