fix: strings

This commit is contained in:
Alex
2024-12-12 10:40:55 +00:00
parent f87ae429f4
commit 46b0de367a

View File

@@ -1796,7 +1796,7 @@ class CreateTool(Resource):
{
"name": fields.String(required=True, description="Name of the tool"),
"config": fields.Raw(required=True, description="Configuration of the tool"),
"actions": fields.List(required=True, description="Actions the tool can perform"),
"actions": fields.List(fields.String, required=True, description="Actions the tool can perform"),
"status": fields.Boolean(required=True, description="Status of the tool")
},
@@ -1862,7 +1862,7 @@ class UpdateToolActions(Resource):
"UpdateToolActionsModel",
{
"id": fields.String(required=True, description="Tool ID"),
"actions": fields.List(required=True, description="Actions the tool can perform"),
"actions": fields.List(fields.String, required=True, description="Actions the tool can perform"),
},
)