Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -425,9 +425,9 @@ class SlpMultiAgent:
|
|
| 425 |
|
| 426 |
manager_agent = CodeAgent(
|
| 427 |
model=model if not isinstance(model, GeminiModel) else OpenAIServerModel(model_id="gpt-3.5-turbo", temperature=0.0, max_tokens=400),
|
| 428 |
-
tools=[GoogleSearchTool(), WikipediaSearchTool(),
|
| 429 |
name="ManagerAgent",
|
| 430 |
-
description="Answer questions using search
|
| 431 |
additional_authorized_imports=["re", "math", "requests"],
|
| 432 |
verbosity_level=0,
|
| 433 |
max_steps=4
|
|
@@ -447,7 +447,7 @@ class SlpMultiAgent:
|
|
| 447 |
|
| 448 |
Instructions:
|
| 449 |
1. For Wikipedia questions, use wikipedia_search() first
|
| 450 |
-
2. For other factual questions,
|
| 451 |
3. For math problems, use math_calculator()
|
| 452 |
4. Give a specific, direct answer
|
| 453 |
|
|
@@ -455,7 +455,7 @@ class SlpMultiAgent:
|
|
| 455 |
Thoughts: [brief reasoning]
|
| 456 |
<code>
|
| 457 |
# Search for information
|
| 458 |
-
result = wikipedia_search("search term") # or google_search()
|
| 459 |
# Extract the specific answer from results
|
| 460 |
final_answer("specific answer only")
|
| 461 |
</code>
|
|
|
|
| 425 |
|
| 426 |
manager_agent = CodeAgent(
|
| 427 |
model=model if not isinstance(model, GeminiModel) else OpenAIServerModel(model_id="gpt-3.5-turbo", temperature=0.0, max_tokens=400),
|
| 428 |
+
tools=[GoogleSearchTool(), WikipediaSearchTool(), MathTool()],
|
| 429 |
name="ManagerAgent",
|
| 430 |
+
description="Answer questions using Google search, Wikipedia, and math.",
|
| 431 |
additional_authorized_imports=["re", "math", "requests"],
|
| 432 |
verbosity_level=0,
|
| 433 |
max_steps=4
|
|
|
|
| 447 |
|
| 448 |
Instructions:
|
| 449 |
1. For Wikipedia questions, use wikipedia_search() first
|
| 450 |
+
2. For other factual questions, use google_search()
|
| 451 |
3. For math problems, use math_calculator()
|
| 452 |
4. Give a specific, direct answer
|
| 453 |
|
|
|
|
| 455 |
Thoughts: [brief reasoning]
|
| 456 |
<code>
|
| 457 |
# Search for information
|
| 458 |
+
result = wikipedia_search("search term") # or google_search()
|
| 459 |
# Extract the specific answer from results
|
| 460 |
final_answer("specific answer only")
|
| 461 |
</code>
|