MariaFilipkowska commited on
Commit
c50a91d
·
verified ·
1 Parent(s): 517386f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -152,9 +152,9 @@ class AgentState(TypedDict):
152
 
153
  def build_agent(chat):
154
  def assistant(state: AgentState):
155
- return {
156
- "messages": chat.invoke(state["messages"]),
157
- }
158
  tools = [get_file_path_tool, get_content_tool, search_web_tool, extract_text_tool, play_chess_tool, run_code_tool]
159
  chat_with_tools = chat.bind_tools(tools, parallel_tool_calls=False)
160
  # The graph
 
152
 
153
  def build_agent(chat):
154
  def assistant(state: AgentState):
155
+ return {
156
+ "messages": chat.invoke(state["messages"]),
157
+ }
158
  tools = [get_file_path_tool, get_content_tool, search_web_tool, extract_text_tool, play_chess_tool, run_code_tool]
159
  chat_with_tools = chat.bind_tools(tools, parallel_tool_calls=False)
160
  # The graph