mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-27 09:46:24 +02:00
去掉role装饰器
This commit is contained in:
parent
e1c2683038
commit
cdfb413f9d
1 changed files with 1 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ from metagpt.actions.di.write_analysis_code import WriteAnalysisCode
|
|||
from metagpt.const import SERDESER_PATH
|
||||
from metagpt.roles.di.data_interpreter import DataInterpreter
|
||||
from metagpt.schema import Message, Task, TaskResult
|
||||
from metagpt.utils.common import CodeParser, role_raise_decorator, write_json_file
|
||||
from metagpt.utils.common import CodeParser, write_json_file
|
||||
|
||||
EXTRACT_SCORE_PROMPT = """
|
||||
# Code:
|
||||
|
|
@ -165,7 +165,6 @@ class ResearchAssistant(DataInterpreter):
|
|||
]
|
||||
|
||||
@async_timeout()
|
||||
@role_raise_decorator
|
||||
async def run(self, with_message=None) -> Message | None:
|
||||
"""Observe, and think and act based on the results of the observation"""
|
||||
if with_message == "continue":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue