Spaces:
Paused
Paused
Update tools.py
Browse files
tools.py
CHANGED
|
@@ -1,6 +1,11 @@
|
|
| 1 |
# Automatic function calling
|
| 2 |
# https://ai.google.dev/gemini-api/docs/function-calling
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
@tool("Web Search Tool")
|
| 5 |
def web_search_tool(question: str) -> str:
|
| 6 |
"""Given a question only, search the web to answer the question.
|
|
|
|
| 1 |
# Automatic function calling
|
| 2 |
# https://ai.google.dev/gemini-api/docs/function-calling
|
| 3 |
|
| 4 |
+
from crewai.tools import tool
|
| 5 |
+
#from crewai_tools import StagehandTool
|
| 6 |
+
from google import genai
|
| 7 |
+
from google.genai import types
|
| 8 |
+
|
| 9 |
@tool("Web Search Tool")
|
| 10 |
def web_search_tool(question: str) -> str:
|
| 11 |
"""Given a question only, search the web to answer the question.
|