Spaces:
Sleeping
Sleeping
zasharepw77
commited on
Commit
·
ad3baff
1
Parent(s):
505f57a
Step call func 3
Browse files
app.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
-
from smolagents import ToolCallingAgent, CodeAgent, DuckDuckGoSearchTool, LiteLLMModel
|
| 2 |
import os
|
|
|
|
| 3 |
#import litellm
|
| 4 |
#litellm._turn_on_debug() # Enable debugging for litellm
|
| 5 |
|
|
@@ -14,8 +15,8 @@ model = LiteLLMModel(
|
|
| 14 |
api_base="https://api.sambanova.ai/v1", # Specify the base URL for Sambanova, as in your working requests example
|
| 15 |
)
|
| 16 |
|
| 17 |
-
def my_paused(step_log: ActionStep, agent:
|
| 18 |
-
sleep(5.0)
|
| 19 |
return
|
| 20 |
|
| 21 |
# Create the agent
|
|
|
|
| 1 |
+
from smolagents import ToolCallingAgent, ActionStep, CodeAgent, DuckDuckGoSearchTool, LiteLLMModel
|
| 2 |
import os
|
| 3 |
+
import time
|
| 4 |
#import litellm
|
| 5 |
#litellm._turn_on_debug() # Enable debugging for litellm
|
| 6 |
|
|
|
|
| 15 |
api_base="https://api.sambanova.ai/v1", # Specify the base URL for Sambanova, as in your working requests example
|
| 16 |
)
|
| 17 |
|
| 18 |
+
def my_paused(step_log: ActionStep, agent: ToolCallingAgent) -> None:
|
| 19 |
+
time.sleep(5.0)
|
| 20 |
return
|
| 21 |
|
| 22 |
# Create the agent
|