mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-05 14:55:18 +02:00
Merge pull request #798 from mannaandpoem/dev_incremental
Update the code compression package
This commit is contained in:
commit
b2e020a97c
9 changed files with 8 additions and 2 deletions
|
|
@ -172,11 +172,11 @@ Role: You are a professional engineer; The main goal is to complete incremental
|
|||
2. COMPLETE CODE: Your code will be part of the entire project, so please implement complete, reliable, reusable code snippets.
|
||||
3. Set default value: If there is any setting, ALWAYS SET A DEFAULT VALUE, ALWAYS USE STRONG TYPE AND EXPLICIT VARIABLE. AVOID circular import.
|
||||
4. Follow design: YOU MUST FOLLOW "Data structures and interfaces". DONT CHANGE ANY DESIGN. Do not use public member functions that do not exist in your design.
|
||||
5. Follow Code Plan And Change: If there is any Incremental Change or Legacy Code files contain "{filename} to be rewritten", you must merge it into the code file according to the plan.
|
||||
5. Follow Code Plan And Change: If there is any Incremental Change that is marked by the git diff format using '+' and '-' for add/modify/delete code, or Legacy Code files contain "{filename} to be rewritten", you must merge it into the code file according to the plan.
|
||||
6. CAREFULLY CHECK THAT YOU DONT MISS ANY NECESSARY CLASS/FUNCTION IN THIS FILE.
|
||||
7. Before using a external variable/module, make sure you import it first.
|
||||
8. Write out EVERY CODE DETAIL, DON'T LEAVE TODO.
|
||||
9. Attention: Retain content that is not related to incremental development but important for consistency and clarity.".
|
||||
9. Attention: Retain details that are not related to incremental development but are important for maintaining the consistency and clarity of the old code.
|
||||
"""
|
||||
|
||||
WRITE_CODE_PLAN_AND_CHANGE_NODE = ActionNode.from_children("WriteCodePlanAndChange", [CODE_PLAN_AND_CHANGE])
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -50,33 +50,39 @@ def test_simple_add_calculator():
|
|||
log_and_check_result(result)
|
||||
|
||||
|
||||
@pytest.mark.skip
|
||||
def test_number_guessing_game():
|
||||
result = get_incremental_dev_result(IDEAS[1], PROJECT_NAMES[1])
|
||||
log_and_check_result(result)
|
||||
|
||||
|
||||
@pytest.mark.skip
|
||||
def test_word_cloud():
|
||||
result = get_incremental_dev_result(IDEAS[2], PROJECT_NAMES[2])
|
||||
log_and_check_result(result)
|
||||
|
||||
|
||||
@pytest.mark.skip
|
||||
def test_gomoku():
|
||||
result = get_incremental_dev_result(IDEAS[3], PROJECT_NAMES[3])
|
||||
log_and_check_result(result)
|
||||
|
||||
|
||||
@pytest.mark.skip
|
||||
def test_dice_simulator_new():
|
||||
for i, (idea, project_name) in enumerate(zip(IDEAS[4:6], PROJECT_NAMES[4:6]), start=1):
|
||||
result = get_incremental_dev_result(idea, project_name)
|
||||
log_and_check_result(result, "refine_" + str(i))
|
||||
|
||||
|
||||
@pytest.mark.skip
|
||||
def test_refined_pygame_2048():
|
||||
for i, (idea, project_name) in enumerate(zip(IDEAS[6:8], PROJECT_NAMES[6:8]), start=1):
|
||||
result = get_incremental_dev_result(idea, project_name)
|
||||
log_and_check_result(result, "refine_" + str(i))
|
||||
|
||||
|
||||
@pytest.mark.skip
|
||||
def test_refined_snake_game():
|
||||
for i, (idea, project_name) in enumerate(zip(IDEAS[8:10], PROJECT_NAMES[8:10]), start=1):
|
||||
result = get_incremental_dev_result(idea, project_name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue