mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-21 14:05:17 +02:00
feat: add software team tool lib
This commit is contained in:
parent
155a5a8c65
commit
a994716eb2
3 changed files with 58 additions and 3 deletions
|
|
@ -82,8 +82,6 @@ class Context(BaseModel):
|
|||
|
||||
def set_repo_dir(self, path: str | Path):
|
||||
repo_path = Path(path)
|
||||
if not repo_path.exists():
|
||||
return
|
||||
self.git_repo = GitRepository(local_path=repo_path, auto_init=True)
|
||||
self.repo = ProjectRepo(self.git_repo)
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ from metagpt.utils.common import any_to_str
|
|||
|
||||
|
||||
@register_tool(tags=["software company", "ProductManager"])
|
||||
async def write_prd(idea: str, project_path: Optional[str | Path]) -> Path:
|
||||
async def write_prd(idea: str, project_path: Optional[str | Path] = None) -> Path:
|
||||
"""Writes a PRD based on user requirements.
|
||||
|
||||
Args:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue