Spaces:
Sleeping
Sleeping
zasharepw77
commited on
Commit
·
d56d7b0
1
Parent(s):
ace442f
Tool calling 7
Browse files
app.py
CHANGED
|
@@ -15,16 +15,17 @@ model = LiteLLMModel(
|
|
| 15 |
)
|
| 16 |
|
| 17 |
# Create the agent
|
| 18 |
-
|
| 19 |
-
# tools=[DuckDuckGoSearchTool()],
|
| 20 |
-
# model=model
|
| 21 |
-
#)
|
| 22 |
-
|
| 23 |
-
agent = CodeAgent(
|
| 24 |
tools=[DuckDuckGoSearchTool()],
|
| 25 |
model=model
|
| 26 |
)
|
| 27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
# Run the agent with error handling
|
| 29 |
try:
|
| 30 |
result = agent.run("Search for the best music recommendations for a party at the Wayne's mansion.")
|
|
|
|
| 15 |
)
|
| 16 |
|
| 17 |
# Create the agent
|
| 18 |
+
agent = ToolCallingAgent(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
tools=[DuckDuckGoSearchTool()],
|
| 20 |
model=model
|
| 21 |
)
|
| 22 |
|
| 23 |
+
# Когда запуск идет через streamlingt то ответы переводятс в json автоматом
|
| 24 |
+
#agent = CodeAgent(
|
| 25 |
+
# tools=[DuckDuckGoSearchTool()],
|
| 26 |
+
# model=model
|
| 27 |
+
#)
|
| 28 |
+
|
| 29 |
# Run the agent with error handling
|
| 30 |
try:
|
| 31 |
result = agent.run("Search for the best music recommendations for a party at the Wayne's mansion.")
|