Spaces:
Sleeping
Sleeping
zasharepw77
commited on
Commit
·
44200bb
1
Parent(s):
a423e03
Теперь оба Код агенты
Browse files
app.py
CHANGED
|
@@ -57,7 +57,8 @@ class WebpageVisitorTool(Tool):
|
|
| 57 |
return f"An unexpected error occurred: {str(e)}"
|
| 58 |
|
| 59 |
# Создание веб-агента
|
| 60 |
-
web_agent = ToolCallingAgent(
|
|
|
|
| 61 |
tools=[DuckDuckGoSearchTool(), WebpageVisitorTool()],
|
| 62 |
model=model,
|
| 63 |
max_steps=10,
|
|
|
|
| 57 |
return f"An unexpected error occurred: {str(e)}"
|
| 58 |
|
| 59 |
# Создание веб-агента
|
| 60 |
+
#web_agent = ToolCallingAgent(
|
| 61 |
+
web_agent = CodeAgent(
|
| 62 |
tools=[DuckDuckGoSearchTool(), WebpageVisitorTool()],
|
| 63 |
model=model,
|
| 64 |
max_steps=10,
|