Spaces:
Runtime error
Runtime error
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 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,11 +221,7 @@ tools=[
|
|
| 220 |
TavilySearchTool()
|
| 221 |
]
|
| 222 |
|
| 223 |
-
model =
|
| 224 |
-
model_id='ollama_chat/gemma3:27b',
|
| 225 |
-
api_base="http://127.0.0.1:11434",
|
| 226 |
-
num_ctx=8192
|
| 227 |
-
)
|
| 228 |
|
| 229 |
def delay_execution_10(pagent, **kwargs) -> bool:
|
| 230 |
"""
|
|
|
|
| 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 |
TavilySearchTool()
|
| 222 |
]
|
| 223 |
|
| 224 |
+
model = ChatGoogleGenerativeAI(model="gemini-2.0-flash", temperature=0)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 225 |
|
| 226 |
def delay_execution_10(pagent, **kwargs) -> bool:
|
| 227 |
"""
|