新增robot;调整engineer

This commit is contained in:
2025-01-13 18:17:27 +08:00
parent 5f9111948b
commit 6fcac50416
7 changed files with 186 additions and 32 deletions

View File

@@ -1,5 +1,6 @@
from pathlib import Path
import os
from autogen_ext.code_executors.docker import DockerCommandLineCodeExecutor
# Define your API keys and configurations
@@ -16,7 +17,7 @@ SILENT = True # 关闭嵌套智能体的输出
STREAM = True # stream on console
CACHE = None # None 就是关闭 41是默认值开启
current_path = os.path.dirname(os.path.abspath(__file__))
WORK_DIR = Path(current_path, ".coding")
WORK_DIR.mkdir(exist_ok=True)
WORK_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), ".coding")
if not os.path.exists(WORK_DIR):
os.mkdir(WORK_DIR)
# code_executor = DockerCommandLineCodeExecutor(work_dir=WORK_DIR)