动态代码解释器

This commit is contained in:
binary-husky
2023-09-23 01:51:05 +08:00
parent d56bc280e9
commit 3672c97a06
8 changed files with 350 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ def get_crazy_functions():
function_plugins = {
"虚空终端": {
"Group": "对话|编程|学术",
"Group": "对话|编程|学术|智能体",
"Color": "stop",
"AsButton": True,
"Function": HotReload(虚空终端)
@@ -513,6 +513,18 @@ def get_crazy_functions():
except:
print('Load function plugin failed')
try:
from crazy_functions.函数动态生成 import 函数动态生成
function_plugins.update({
"动态代码解释器CodeInterpreter": {
"Group": "智能体",
"Color": "stop",
"AsButton": True,
"Function": HotReload(函数动态生成)
}
})
except:
print('Load function plugin failed')
# try:
# from crazy_functions.CodeInterpreter import 虚空终端CodeInterpreter