Update app.py
Browse files
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 |
|