Upload 918 files
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- metagpt/.DS_Store +0 -0
- metagpt/__init__.py +7 -0
- metagpt/__pycache__/__init__.cpython-310.pyc +0 -0
- metagpt/__pycache__/__init__.cpython-39.pyc +0 -0
- metagpt/__pycache__/_compat.cpython-310.pyc +0 -0
- metagpt/__pycache__/_compat.cpython-39.pyc +0 -0
- metagpt/__pycache__/config2.cpython-310.pyc +0 -0
- metagpt/__pycache__/config2.cpython-39.pyc +0 -0
- metagpt/__pycache__/const.cpython-310.pyc +0 -0
- metagpt/__pycache__/const.cpython-39.pyc +0 -0
- metagpt/__pycache__/context.cpython-310.pyc +0 -0
- metagpt/__pycache__/context.cpython-39.pyc +0 -0
- metagpt/__pycache__/context_mixin.cpython-310.pyc +0 -0
- metagpt/__pycache__/context_mixin.cpython-39.pyc +0 -0
- metagpt/__pycache__/llm.cpython-310.pyc +0 -0
- metagpt/__pycache__/llm.cpython-39.pyc +0 -0
- metagpt/__pycache__/logs.cpython-310.pyc +0 -0
- metagpt/__pycache__/logs.cpython-39.pyc +0 -0
- metagpt/__pycache__/repo_parser.cpython-310.pyc +0 -0
- metagpt/__pycache__/repo_parser.cpython-39.pyc +0 -0
- metagpt/__pycache__/schema.cpython-310.pyc +0 -0
- metagpt/__pycache__/schema.cpython-39.pyc +0 -0
- metagpt/_compat.py +23 -0
- metagpt/actions/.DS_Store +0 -0
- metagpt/actions/__init__.py +57 -0
- metagpt/actions/__pycache__/__init__.cpython-310.pyc +0 -0
- metagpt/actions/__pycache__/__init__.cpython-39.pyc +0 -0
- metagpt/actions/__pycache__/action.cpython-310.pyc +0 -0
- metagpt/actions/__pycache__/action.cpython-39.pyc +0 -0
- metagpt/actions/__pycache__/action_node.cpython-310.pyc +0 -0
- metagpt/actions/__pycache__/action_node.cpython-39.pyc +0 -0
- metagpt/actions/__pycache__/action_outcls_registry.cpython-310.pyc +0 -0
- metagpt/actions/__pycache__/action_outcls_registry.cpython-39.pyc +0 -0
- metagpt/actions/__pycache__/action_output.cpython-310.pyc +0 -0
- metagpt/actions/__pycache__/action_output.cpython-39.pyc +0 -0
- metagpt/actions/__pycache__/add_requirement.cpython-310.pyc +0 -0
- metagpt/actions/__pycache__/add_requirement.cpython-39.pyc +0 -0
- metagpt/actions/__pycache__/debug_error.cpython-310.pyc +0 -0
- metagpt/actions/__pycache__/debug_error.cpython-39.pyc +0 -0
- metagpt/actions/__pycache__/design_api.cpython-310.pyc +0 -0
- metagpt/actions/__pycache__/design_api.cpython-39.pyc +0 -0
- metagpt/actions/__pycache__/design_api_an.cpython-310.pyc +0 -0
- metagpt/actions/__pycache__/design_api_an.cpython-39.pyc +0 -0
- metagpt/actions/__pycache__/design_api_review.cpython-310.pyc +0 -0
- metagpt/actions/__pycache__/design_api_review.cpython-39.pyc +0 -0
- metagpt/actions/__pycache__/fix_bug.cpython-310.pyc +0 -0
- metagpt/actions/__pycache__/fix_bug.cpython-39.pyc +0 -0
- metagpt/actions/__pycache__/prepare_documents.cpython-310.pyc +0 -0
- metagpt/actions/__pycache__/prepare_documents.cpython-39.pyc +0 -0
- metagpt/actions/__pycache__/project_management.cpython-310.pyc +0 -0
metagpt/.DS_Store
ADDED
|
Binary file (10.2 kB). View file
|
|
|
metagpt/__init__.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
# @Time : 2023/4/24 22:26
|
| 4 |
+
# @Author : alexanderwu
|
| 5 |
+
# @File : __init__.py
|
| 6 |
+
|
| 7 |
+
from metagpt import _compat as _ # noqa: F401
|
metagpt/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (212 Bytes). View file
|
|
|
metagpt/__pycache__/__init__.cpython-39.pyc
ADDED
|
Binary file (188 Bytes). View file
|
|
|
metagpt/__pycache__/_compat.cpython-310.pyc
ADDED
|
Binary file (878 Bytes). View file
|
|
|
metagpt/__pycache__/_compat.cpython-39.pyc
ADDED
|
Binary file (832 Bytes). View file
|
|
|
metagpt/__pycache__/config2.cpython-310.pyc
ADDED
|
Binary file (6.27 kB). View file
|
|
|
metagpt/__pycache__/config2.cpython-39.pyc
ADDED
|
Binary file (6.26 kB). View file
|
|
|
metagpt/__pycache__/const.cpython-310.pyc
ADDED
|
Binary file (4.31 kB). View file
|
|
|
metagpt/__pycache__/const.cpython-39.pyc
ADDED
|
Binary file (4.27 kB). View file
|
|
|
metagpt/__pycache__/context.cpython-310.pyc
ADDED
|
Binary file (4.84 kB). View file
|
|
|
metagpt/__pycache__/context.cpython-39.pyc
ADDED
|
Binary file (4.76 kB). View file
|
|
|
metagpt/__pycache__/context_mixin.cpython-310.pyc
ADDED
|
Binary file (3.37 kB). View file
|
|
|
metagpt/__pycache__/context_mixin.cpython-39.pyc
ADDED
|
Binary file (3.41 kB). View file
|
|
|
metagpt/__pycache__/llm.cpython-310.pyc
ADDED
|
Binary file (747 Bytes). View file
|
|
|
metagpt/__pycache__/llm.cpython-39.pyc
ADDED
|
Binary file (721 Bytes). View file
|
|
|
metagpt/__pycache__/logs.cpython-310.pyc
ADDED
|
Binary file (4.53 kB). View file
|
|
|
metagpt/__pycache__/logs.cpython-39.pyc
ADDED
|
Binary file (4.49 kB). View file
|
|
|
metagpt/__pycache__/repo_parser.cpython-310.pyc
ADDED
|
Binary file (32.8 kB). View file
|
|
|
metagpt/__pycache__/repo_parser.cpython-39.pyc
ADDED
|
Binary file (32.6 kB). View file
|
|
|
metagpt/__pycache__/schema.cpython-310.pyc
ADDED
|
Binary file (35.9 kB). View file
|
|
|
metagpt/__pycache__/schema.cpython-39.pyc
ADDED
|
Binary file (35.5 kB). View file
|
|
|
metagpt/_compat.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import platform
|
| 2 |
+
import sys
|
| 3 |
+
import warnings
|
| 4 |
+
|
| 5 |
+
if sys.implementation.name == "cpython" and platform.system() == "Windows":
|
| 6 |
+
import asyncio
|
| 7 |
+
|
| 8 |
+
if sys.version_info[:2] == (3, 9):
|
| 9 |
+
from asyncio.proactor_events import _ProactorBasePipeTransport
|
| 10 |
+
|
| 11 |
+
# https://github.com/python/cpython/pull/92842
|
| 12 |
+
def pacth_del(self, _warn=warnings.warn):
|
| 13 |
+
if self._sock is not None:
|
| 14 |
+
_warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
|
| 15 |
+
self._sock.close()
|
| 16 |
+
|
| 17 |
+
_ProactorBasePipeTransport.__del__ = pacth_del
|
| 18 |
+
|
| 19 |
+
if sys.version_info >= (3, 9, 0):
|
| 20 |
+
from semantic_kernel.orchestration import sk_function as _ # noqa: F401
|
| 21 |
+
|
| 22 |
+
# caused by https://github.com/microsoft/semantic-kernel/pull/1416
|
| 23 |
+
asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())
|
metagpt/actions/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
metagpt/actions/__init__.py
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
"""
|
| 4 |
+
@Time : 2023/5/11 17:44
|
| 5 |
+
@Author : alexanderwu
|
| 6 |
+
@File : __init__.py
|
| 7 |
+
"""
|
| 8 |
+
from enum import Enum
|
| 9 |
+
|
| 10 |
+
from metagpt.actions.action import Action
|
| 11 |
+
from metagpt.actions.action_output import ActionOutput
|
| 12 |
+
from metagpt.actions.add_requirement import UserRequirement
|
| 13 |
+
from metagpt.actions.debug_error import DebugError
|
| 14 |
+
from metagpt.actions.design_api import WriteDesign
|
| 15 |
+
from metagpt.actions.design_api_review import DesignReview
|
| 16 |
+
from metagpt.actions.project_management import WriteTasks
|
| 17 |
+
from metagpt.actions.research import CollectLinks, WebBrowseAndSummarize, ConductResearch
|
| 18 |
+
from metagpt.actions.run_code import RunCode
|
| 19 |
+
from metagpt.actions.search_and_summarize import SearchAndSummarize
|
| 20 |
+
from metagpt.actions.write_code import WriteCode
|
| 21 |
+
from metagpt.actions.write_code_review import WriteCodeReview
|
| 22 |
+
from metagpt.actions.write_prd import WritePRD
|
| 23 |
+
from metagpt.actions.write_prd_review import WritePRDReview
|
| 24 |
+
from metagpt.actions.write_test import WriteTest
|
| 25 |
+
from metagpt.actions.di.execute_nb_code import ExecuteNbCode
|
| 26 |
+
from metagpt.actions.di.write_analysis_code import WriteAnalysisCode
|
| 27 |
+
from metagpt.actions.di.write_plan import WritePlan
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
class ActionType(Enum):
|
| 31 |
+
"""All types of Actions, used for indexing."""
|
| 32 |
+
|
| 33 |
+
ADD_REQUIREMENT = UserRequirement
|
| 34 |
+
WRITE_PRD = WritePRD
|
| 35 |
+
WRITE_PRD_REVIEW = WritePRDReview
|
| 36 |
+
WRITE_DESIGN = WriteDesign
|
| 37 |
+
DESIGN_REVIEW = DesignReview
|
| 38 |
+
WRTIE_CODE = WriteCode
|
| 39 |
+
WRITE_CODE_REVIEW = WriteCodeReview
|
| 40 |
+
WRITE_TEST = WriteTest
|
| 41 |
+
RUN_CODE = RunCode
|
| 42 |
+
DEBUG_ERROR = DebugError
|
| 43 |
+
WRITE_TASKS = WriteTasks
|
| 44 |
+
SEARCH_AND_SUMMARIZE = SearchAndSummarize
|
| 45 |
+
COLLECT_LINKS = CollectLinks
|
| 46 |
+
WEB_BROWSE_AND_SUMMARIZE = WebBrowseAndSummarize
|
| 47 |
+
CONDUCT_RESEARCH = ConductResearch
|
| 48 |
+
EXECUTE_NB_CODE = ExecuteNbCode
|
| 49 |
+
WRITE_ANALYSIS_CODE = WriteAnalysisCode
|
| 50 |
+
WRITE_PLAN = WritePlan
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
__all__ = [
|
| 54 |
+
"ActionType",
|
| 55 |
+
"Action",
|
| 56 |
+
"ActionOutput",
|
| 57 |
+
]
|
metagpt/actions/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (2.28 kB). View file
|
|
|
metagpt/actions/__pycache__/__init__.cpython-39.pyc
ADDED
|
Binary file (2.25 kB). View file
|
|
|
metagpt/actions/__pycache__/action.cpython-310.pyc
ADDED
|
Binary file (4.67 kB). View file
|
|
|
metagpt/actions/__pycache__/action.cpython-39.pyc
ADDED
|
Binary file (4.62 kB). View file
|
|
|
metagpt/actions/__pycache__/action_node.cpython-310.pyc
ADDED
|
Binary file (26.4 kB). View file
|
|
|
metagpt/actions/__pycache__/action_node.cpython-39.pyc
ADDED
|
Binary file (26.5 kB). View file
|
|
|
metagpt/actions/__pycache__/action_outcls_registry.cpython-310.pyc
ADDED
|
Binary file (1.39 kB). View file
|
|
|
metagpt/actions/__pycache__/action_outcls_registry.cpython-39.pyc
ADDED
|
Binary file (1.36 kB). View file
|
|
|
metagpt/actions/__pycache__/action_output.cpython-310.pyc
ADDED
|
Binary file (717 Bytes). View file
|
|
|
metagpt/actions/__pycache__/action_output.cpython-39.pyc
ADDED
|
Binary file (694 Bytes). View file
|
|
|
metagpt/actions/__pycache__/add_requirement.cpython-310.pyc
ADDED
|
Binary file (557 Bytes). View file
|
|
|
metagpt/actions/__pycache__/add_requirement.cpython-39.pyc
ADDED
|
Binary file (531 Bytes). View file
|
|
|
metagpt/actions/__pycache__/debug_error.cpython-310.pyc
ADDED
|
Binary file (2.93 kB). View file
|
|
|
metagpt/actions/__pycache__/debug_error.cpython-39.pyc
ADDED
|
Binary file (2.9 kB). View file
|
|
|
metagpt/actions/__pycache__/design_api.cpython-310.pyc
ADDED
|
Binary file (11.9 kB). View file
|
|
|
metagpt/actions/__pycache__/design_api.cpython-39.pyc
ADDED
|
Binary file (11.8 kB). View file
|
|
|
metagpt/actions/__pycache__/design_api_an.cpython-310.pyc
ADDED
|
Binary file (3.65 kB). View file
|
|
|
metagpt/actions/__pycache__/design_api_an.cpython-39.pyc
ADDED
|
Binary file (3.63 kB). View file
|
|
|
metagpt/actions/__pycache__/design_api_review.cpython-310.pyc
ADDED
|
Binary file (1.07 kB). View file
|
|
|
metagpt/actions/__pycache__/design_api_review.cpython-39.pyc
ADDED
|
Binary file (1.04 kB). View file
|
|
|
metagpt/actions/__pycache__/fix_bug.cpython-310.pyc
ADDED
|
Binary file (573 Bytes). View file
|
|
|
metagpt/actions/__pycache__/fix_bug.cpython-39.pyc
ADDED
|
Binary file (547 Bytes). View file
|
|
|
metagpt/actions/__pycache__/prepare_documents.cpython-310.pyc
ADDED
|
Binary file (3.55 kB). View file
|
|
|
metagpt/actions/__pycache__/prepare_documents.cpython-39.pyc
ADDED
|
Binary file (3.51 kB). View file
|
|
|
metagpt/actions/__pycache__/project_management.cpython-310.pyc
ADDED
|
Binary file (8.18 kB). View file
|
|
|