Upload agent
Browse files- requirements.txt +1 -2
- tools/get_today_datetime.py +5 -2
requirements.txt
CHANGED
|
@@ -1,2 +1 @@
|
|
| 1 |
-
smolagents
|
| 2 |
-
smolagents[litellm]
|
|
|
|
| 1 |
+
smolagents
|
|
|
tools/get_today_datetime.py
CHANGED
|
@@ -5,12 +5,15 @@ class SimpleTool(Tool):
|
|
| 5 |
name = "get_today_datetime"
|
| 6 |
description = "Get the current local date and time."
|
| 7 |
inputs = {}
|
| 8 |
-
output_type = "
|
| 9 |
|
| 10 |
-
def forward(self):
|
| 11 |
"""
|
| 12 |
Get the current local date and time.
|
| 13 |
|
|
|
|
|
|
|
|
|
|
| 14 |
Returns:
|
| 15 |
str: Current date and time in the format 'YYYY-MM-DD HH:MM:SS'.
|
| 16 |
|
|
|
|
| 5 |
name = "get_today_datetime"
|
| 6 |
description = "Get the current local date and time."
|
| 7 |
inputs = {}
|
| 8 |
+
output_type = "string"
|
| 9 |
|
| 10 |
+
def forward(self) -> str:
|
| 11 |
"""
|
| 12 |
Get the current local date and time.
|
| 13 |
|
| 14 |
+
Args:
|
| 15 |
+
None
|
| 16 |
+
|
| 17 |
Returns:
|
| 18 |
str: Current date and time in the format 'YYYY-MM-DD HH:MM:SS'.
|
| 19 |
|