feat: remove ruby (#20)

This commit is contained in:
sigoden
2024-06-06 09:38:48 +08:00
committed by GitHub
parent 4052bc944e
commit d8eeb55578
5 changed files with 1 additions and 130 deletions
-22
View File
@@ -1,22 +0,0 @@
def declarate
{
"name": "may_execute_rb_code",
"description": "Runs the ruby code.",
"parameters": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "Ruby code to execute, such as `puts \"hello world\"`"
}
},
"required": [
"code"
]
}
}
end
def execute(data)
eval(data["code"])
end