File tree Expand file tree Collapse file tree 8 files changed +8
-8
lines changed
typescript-sdk/integrations/langgraph/examples/python/agents Expand file tree Collapse file tree 8 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class AgentState(MessagesState):
1717 """
1818 State of our graph.
1919 """
20- tools : List [Any ]
20+ tools : List [Any ] = []
2121
2222async def chat_node (state : AgentState , config : Optional [RunnableConfig ] = None ):
2323 """
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class AgentState(MessagesState):
1919 """
2020 State of our graph.
2121 """
22- tools : List [Any ]
22+ tools : List [Any ] = []
2323 model : str
2424
2525async def chat_node (state : AgentState , config : Optional [RunnableConfig ] = None ):
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ class AgentState(MessagesState):
4646 State of the agent.
4747 """
4848 steps : List [dict ] = []
49- tools : List [Any ]
49+ tools : List [Any ] = []
5050
5151
5252async def start_node (state : AgentState , config : RunnableConfig ): # pylint: disable=unused-argument
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class AgentState(MessagesState):
3939 State of the agent.
4040 """
4141 steps : List [Dict [str , str ]] = []
42- tools : List [Any ]
42+ tools : List [Any ] = []
4343
4444async def start_node (state : Dict [str , Any ], config : RunnableConfig ): # pylint: disable=unused-argument
4545 """
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ class AgentState(MessagesState):
3434 The state of the agent.
3535 """
3636 document : Optional [str ] = None
37- tools : List [Any ]
37+ tools : List [Any ] = []
3838
3939
4040async def start_node (state : AgentState , config : RunnableConfig ): # pylint: disable=unused-argument
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ class AgentState(MessagesState):
9999 The state of the recipe.
100100 """
101101 recipe : Optional [Dict [str , Any ]] = None
102- tools : List [Any ]
102+ tools : List [Any ] = []
103103
104104
105105async def start_node (state : Dict [str , Any ], config : RunnableConfig ):
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ class TravelAgentState(MessagesState):
7373 itinerary : Annotated [dict , merge_itinerary ] = None
7474
7575 # Tools available to all agents
76- tools : List [Any ] = None
76+ tools : List [Any ] = []
7777
7878 # Supervisor routing
7979 next_agent : Optional [str ] = None
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class AgentState(MessagesState):
1818 """
1919 State of the agent.
2020 """
21- tools : List [Any ]
21+ tools : List [Any ] = []
2222
2323async def chat_node (state : AgentState , config : RunnableConfig ) -> Command [Literal ["tool_node" , "__end__" ]]:
2424 """
You can’t perform that action at this time.
0 commit comments