Spaces:
Runtime error
Runtime error
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
from smolagents import HfApiModel, CodeAgent, DuckDuckGoSearchTool, WikipediaSearchTool, Tool, LiteLLMModel
|
| 2 |
from langchain_community.tools.tavily_search import TavilySearchResults
|
| 3 |
from langchain_community.document_loaders import WikipediaLoader, ArxivLoader
|
| 4 |
-
from langchain_google_genai import ChatGoogleGenerativeAI
|
| 5 |
|
| 6 |
|
| 7 |
class add(Tool):
|
|
@@ -221,7 +220,7 @@ tools=[
|
|
| 221 |
TavilySearchTool()
|
| 222 |
]
|
| 223 |
|
| 224 |
-
model =
|
| 225 |
|
| 226 |
def delay_execution_10(pagent, **kwargs) -> bool:
|
| 227 |
"""
|
|
|
|
| 1 |
from smolagents import HfApiModel, CodeAgent, DuckDuckGoSearchTool, WikipediaSearchTool, Tool, LiteLLMModel
|
| 2 |
from langchain_community.tools.tavily_search import TavilySearchResults
|
| 3 |
from langchain_community.document_loaders import WikipediaLoader, ArxivLoader
|
|
|
|
| 4 |
|
| 5 |
|
| 6 |
class add(Tool):
|
|
|
|
| 220 |
TavilySearchTool()
|
| 221 |
]
|
| 222 |
|
| 223 |
+
model = LiteLLMModel(model="gemini-2.0-flash", temperature=0)
|
| 224 |
|
| 225 |
def delay_execution_10(pagent, **kwargs) -> bool:
|
| 226 |
"""
|