aboutsummaryrefslogtreecommitdiffstats
path: root/useragents/src/custom_agents/web_search_tool.py
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2025-05-09 14:53:09 +0000
committerterminaldweller <devi@terminaldweller.com>2025-05-09 14:53:09 +0000
commitcf5499db368a1cb52ab734d204f08bbcc114a890 (patch)
tree03e4c28a170a5c2318093e6a417fde9830ab5061 /useragents/src/custom_agents/web_search_tool.py
parentnow using the options for the google models again (diff)
downloadmilla-cf5499db368a1cb52ab734d204f08bbcc114a890.tar.gz
milla-cf5499db368a1cb52ab734d204f08bbcc114a890.zip
addes user agents. added aliases.HEADmain
Diffstat (limited to 'useragents/src/custom_agents/web_search_tool.py')
-rw-r--r--useragents/src/custom_agents/web_search_tool.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/useragents/src/custom_agents/web_search_tool.py b/useragents/src/custom_agents/web_search_tool.py
new file mode 100644
index 0000000..16bf206
--- /dev/null
+++ b/useragents/src/custom_agents/web_search_tool.py
@@ -0,0 +1,17 @@
+from agents import Agent, WebSearchTool
+from src.current_time import fetch_date
+from src.models import AgentRequest
+from src.registry import agentRegistry
+
+
+@agentRegistry
+def web_search_tool(agent_request: AgentRequest) -> Agent:
+ tools = [WebSearchTool(), fetch_date]
+
+ agent = Agent(
+ name=agent_request.agent_name,
+ instructions=agent_request.instructions,
+ tools=tools,
+ )
+
+ return agent