Spaces:
Sleeping
Sleeping
Add nullable option for month, year, user_name, and user_info inputs in tools
Browse files
tools/get_monthly_stats_tool.py
CHANGED
@@ -7,8 +7,8 @@ class GetMonthlyStatsTool(Tool):
|
|
7 |
description = "Retrieves monthly car sharing statistics for a specific user."
|
8 |
inputs = {
|
9 |
'user_name': {'type': 'string', 'description': 'Name of the user to get statistics for'},
|
10 |
-
'month': {'type': 'integer', 'description': 'Month number (1-12). If not provided, current month is used.'},
|
11 |
-
'year': {'type': 'integer', 'description': 'Year (e.g., 2023). If not provided, current year is used.'}
|
12 |
}
|
13 |
output_type = "any"
|
14 |
|
|
|
7 |
description = "Retrieves monthly car sharing statistics for a specific user."
|
8 |
inputs = {
|
9 |
'user_name': {'type': 'string', 'description': 'Name of the user to get statistics for'},
|
10 |
+
'month': {'type': 'integer', 'description': 'Month number (1-12). If not provided, current month is used.', 'nullable': True},
|
11 |
+
'year': {'type': 'integer', 'description': 'Year (e.g., 2023). If not provided, current year is used.', 'nullable': True}
|
12 |
}
|
13 |
output_type = "any"
|
14 |
|
tools/user_management_tool.py
CHANGED
@@ -8,8 +8,8 @@ class UserManagementTool(Tool):
|
|
8 |
description = "Manages user information for the car sharing system."
|
9 |
inputs = {
|
10 |
'action': {'type': 'string', 'description': 'The action to perform (get, set, list)'},
|
11 |
-
'user_name': {'type': 'string', 'description': 'Name of the user'},
|
12 |
-
'user_info': {'type': 'any', 'description': 'User information to store (for set action)'}
|
13 |
}
|
14 |
output_type = "any"
|
15 |
|
|
|
8 |
description = "Manages user information for the car sharing system."
|
9 |
inputs = {
|
10 |
'action': {'type': 'string', 'description': 'The action to perform (get, set, list)'},
|
11 |
+
'user_name': {'type': 'string', 'description': 'Name of the user', 'nullable': True},
|
12 |
+
'user_info': {'type': 'any', 'description': 'User information to store (for set action)', 'nullable': True}
|
13 |
}
|
14 |
output_type = "any"
|
15 |
|