Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- planner_agent.py +1 -1
- search_agent.py +1 -1
planner_agent.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
from pydantic import BaseModel
|
| 2 |
from agents import Agent
|
| 3 |
|
| 4 |
-
HOW_MANY_SEARCHES =
|
| 5 |
|
| 6 |
INSTRUCTIONS = f"You are a helpful research assistant. Given a query, come up with a set of web searches \
|
| 7 |
to perform to best answer the query. Output {HOW_MANY_SEARCHES} terms to query for."
|
|
|
|
| 1 |
from pydantic import BaseModel
|
| 2 |
from agents import Agent
|
| 3 |
|
| 4 |
+
HOW_MANY_SEARCHES = 5
|
| 5 |
|
| 6 |
INSTRUCTIONS = f"You are a helpful research assistant. Given a query, come up with a set of web searches \
|
| 7 |
to perform to best answer the query. Output {HOW_MANY_SEARCHES} terms to query for."
|
search_agent.py
CHANGED
|
@@ -11,7 +11,7 @@ INSTRUCTIONS = (
|
|
| 11 |
search_agent = Agent(
|
| 12 |
name="Search agent",
|
| 13 |
instructions=INSTRUCTIONS,
|
| 14 |
-
tools=[WebSearchTool(search_context_size="
|
| 15 |
model="gpt-4o-mini",
|
| 16 |
model_settings=ModelSettings(tool_choice="required"),
|
| 17 |
)
|
|
|
|
| 11 |
search_agent = Agent(
|
| 12 |
name="Search agent",
|
| 13 |
instructions=INSTRUCTIONS,
|
| 14 |
+
tools=[WebSearchTool(search_context_size="low")],
|
| 15 |
model="gpt-4o-mini",
|
| 16 |
model_settings=ModelSettings(tool_choice="required"),
|
| 17 |
)
|