diff --git a/AlgoriAgent/projects/algoriAgent/__pycache__/agent_manager.cpython-310.pyc b/AlgoriAgent/projects/algoriAgent/__pycache__/agent_manager.cpython-310.pyc index 5c5f73c..cf03fbf 100644 Binary files a/AlgoriAgent/projects/algoriAgent/__pycache__/agent_manager.cpython-310.pyc and b/AlgoriAgent/projects/algoriAgent/__pycache__/agent_manager.cpython-310.pyc differ diff --git a/AlgoriAgent/projects/algoriAgent/agent_manager.py b/AlgoriAgent/projects/algoriAgent/agent_manager.py index 69769c7..6a5a665 100644 --- a/AlgoriAgent/projects/algoriAgent/agent_manager.py +++ b/AlgoriAgent/projects/algoriAgent/agent_manager.py @@ -2,13 +2,9 @@ import sys import os current_directory = os.path.dirname(os.path.abspath(__file__)) sys.path.append(current_directory) -from flask_socketio import SocketIO, join_room, emit, Namespace import agentscope from agentscope.message import Msg import os -import asyncio -import threading -import json from agent.flex_service_toolkit import * from AlgoriAgent.projects.algoriAgent.agent.algori_agent import * @@ -51,7 +47,6 @@ def tool_name_to_tool(tool_name_list): continue if tool_name == "judge": tools.append(judge) - return tools def tool_name_to_tool_with_args(tool_name_list, tool_args_list) -> list[tuple[Callable, dict]]: @@ -60,9 +55,9 @@ def tool_name_to_tool_with_args(tool_name_list, tool_args_list) -> list[tuple[Ca if tool_name == "": continue if tool_name == "judge": - tools.append((judge, {"course_id": tool_args[0], "lesson_id": tool_args[1], "name": tool_args[2]})) - + tools.append((judge, {"name": tool_args[0]})) return tools + class AgentManager: def __init__(self,max_iter = 5, app=None, socketio=None): diff --git a/AlgoriAgent/projects/algoriAgent/tools/__pycache__/judge_tools.cpython-310.pyc b/AlgoriAgent/projects/algoriAgent/tools/__pycache__/judge_tools.cpython-310.pyc index c9fb558..45ba0aa 100644 Binary files a/AlgoriAgent/projects/algoriAgent/tools/__pycache__/judge_tools.cpython-310.pyc and b/AlgoriAgent/projects/algoriAgent/tools/__pycache__/judge_tools.cpython-310.pyc differ diff --git a/AlgoriAgent/projects/algoriAgent/tools/judge_tools.py b/AlgoriAgent/projects/algoriAgent/tools/judge_tools.py index c434540..a759844 100644 --- a/AlgoriAgent/projects/algoriAgent/tools/judge_tools.py +++ b/AlgoriAgent/projects/algoriAgent/tools/judge_tools.py @@ -5,15 +5,13 @@ from agentscope.service import ( ServiceExecStatus, ) import os -def judge(filepath:str, name: str, course_id: str, lesson_id: str, root_path:str): +def judge(filepath:str, name: str, course_id: str, root_path:str): """Call this method to judge the student's solution after they have completed the problem. Args: filepath (`str`): The path to the file containing the student's solution. name (`str`): The name of the problem. course_id (`str`): The id of the course. - lesson_id (`str`): The id of the lesson. - root_path (`str`): The root path of the user's workspace project. Returns: Report `tuple(int,str)`: The report of the student's solution. diff --git a/README.md b/README.md index d239f6d..10c7c14 100644 --- a/README.md +++ b/README.md @@ -51,5 +51,9 @@ secret_key = WqUv99vUpwqWzEF2kEVYNzNXTChy2wfB bucket = hsamooc-cdn-1374354408 region = ap-guangzhou +[ASE_ENGINE] +url = https://asengine.net +namespace = /socket.io/c159a41d238b00f35ff33e036d007a0dec4d03197084b5557949a2f7f5ffce03 + ``` diff --git a/requirements.txt b/requirements.txt index 399a10a..87acc51 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ markdown flask-pymongo -cos-python-sdk-v5 \ No newline at end of file +cos-python-sdk-v5 +websocket-client \ No newline at end of file diff --git a/study/TCake/68bacdfadf5aeae0912f7f18/基础算法/.config b/study/TCake/68bacdfadf5aeae0912f7f18/基础算法/.config index 6455270..bb697ef 100644 --- a/study/TCake/68bacdfadf5aeae0912f7f18/基础算法/.config +++ b/study/TCake/68bacdfadf5aeae0912f7f18/基础算法/.config @@ -1 +1 @@ -{"user_uuid": "user_d0cb8736-c5b0-42ba-8eca-6dc9754d9645", "course_id": "68bacdfadf5aeae0912f7f18", "chapter_name": "基础算法", "lesson_name": "二分", "path": "/mnt/f/GIThubRepository/CodeAgent/code-agent/study/TCake/68bacdfadf5aeae0912f7f18/基础算法"} \ No newline at end of file +{"user_uuid": "user_7c671995-1d9e-4bbb-9fa1-587d12720754", "course_id": "68bacdfadf5aeae0912f7f18", "chapter_name": "基础算法", "lesson_name": "二分", "path": "/mnt/f/GIThubRepository/CodeAgent/code-agent/study/TCake/68bacdfadf5aeae0912f7f18/基础算法"} \ No newline at end of file