ameglei-external commited on
Commit
a44c8b4
·
verified ·
1 Parent(s): ad39095

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -64,7 +64,7 @@ class BasicAgent:
64
  print(f"Agent returning fixed answer: {fixed_answer}")
65
  return fixed_answer, state
66
 
67
- def assistant(state: State):
68
  # System message
69
  textual_description_of_tool="""
70
  search_tool(question: str) -> str:
@@ -88,7 +88,7 @@ class BasicAgent:
88
  "question": state["question"]
89
  }
90
 
91
- def search_tool(question: str, max_length: int = 1024) -> str:
92
  """
93
  Search info in the web.
94
 
 
64
  print(f"Agent returning fixed answer: {fixed_answer}")
65
  return fixed_answer, state
66
 
67
+ def assistant(self, state: State):
68
  # System message
69
  textual_description_of_tool="""
70
  search_tool(question: str) -> str:
 
88
  "question": state["question"]
89
  }
90
 
91
+ def search_tool(self, question: str, max_length: int = 1024) -> str:
92
  """
93
  Search info in the web.
94