mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-30 19:36:24 +02:00
修改 metagpt/team.py 符合代码规范
This commit is contained in:
parent
fa1af92537
commit
bf9fa44765
1 changed files with 7 additions and 3 deletions
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
from pathlib import Path
|
||||
import warnings
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
from metagpt.actions import UserRequirement
|
||||
|
|
@ -94,9 +95,12 @@ class Team(BaseModel):
|
|||
Deprecated: This method will be removed in the future.
|
||||
Please use the `run_project` method instead.
|
||||
"""
|
||||
warnings.warn("The 'start_project' method is deprecated and will be removed in the future. "
|
||||
"Please use the 'run_project' method instead.",
|
||||
DeprecationWarning, stacklevel=2)
|
||||
warnings.warn(
|
||||
"The 'start_project' method is deprecated and will be removed in the future. "
|
||||
"Please use the 'run_project' method instead.",
|
||||
DeprecationWarning,
|
||||
stacklevel=2,
|
||||
)
|
||||
return self.run_project(idea=idea, send_to=send_to)
|
||||
|
||||
def _save(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue