Update tools.py
Browse files
tools.py
CHANGED
|
@@ -185,7 +185,8 @@ class FileManagementTool(Tool):
|
|
| 185 |
},
|
| 186 |
"content": {
|
| 187 |
"type": "string",
|
| 188 |
-
"description": "The content to write to the file."
|
|
|
|
| 189 |
}
|
| 190 |
}
|
| 191 |
output_type = "string"
|
|
@@ -214,6 +215,7 @@ class FileManagementTool(Tool):
|
|
| 214 |
else:
|
| 215 |
return "Invalid action."
|
| 216 |
|
|
|
|
| 217 |
class DatabaseQueryTool(Tool):
|
| 218 |
name = "database_query"
|
| 219 |
description = "Interacts with databases for storing and retrieving information."
|
|
|
|
| 185 |
},
|
| 186 |
"content": {
|
| 187 |
"type": "string",
|
| 188 |
+
"description": "The content to write to the file.",
|
| 189 |
+
"nullable": True # Add this line to specify that 'content' is nullable
|
| 190 |
}
|
| 191 |
}
|
| 192 |
output_type = "string"
|
|
|
|
| 215 |
else:
|
| 216 |
return "Invalid action."
|
| 217 |
|
| 218 |
+
|
| 219 |
class DatabaseQueryTool(Tool):
|
| 220 |
name = "database_query"
|
| 221 |
description = "Interacts with databases for storing and retrieving information."
|