repo
stringlengths
5
53
pr_number
int32
1
321k
task_type
stringclasses
2 values
issue_text
stringlengths
0
81.2k
pr_title
stringlengths
1
319
pr_body
stringlengths
0
105k
base_sha
stringlengths
40
40
head_sha
stringlengths
40
40
gold_diff
stringlengths
0
202M
changed_files
listlengths
0
100
review_threads
listlengths
0
100
test_patch
stringlengths
0
23.4M
merged
bool
1 class
FluentValidation/FluentValidation
2,257
issue_to_patch
remove some usings
dfe5764a236fe71a73741fede3a7e167e4de8c4b
e576b948575b0cf48647f5fc63cb5095534bcbe0
diff --git a/src/CommonAssemblyInfo.cs b/src/CommonAssemblyInfo.cs index a67267b9f..161d4f742 100644 --- a/src/CommonAssemblyInfo.cs +++ b/src/CommonAssemblyInfo.cs @@ -1,4 +1,3 @@ -using System; using System.Reflection; [assembly : AssemblyVersion("11.0.0.0")] diff --git a/src/FluentValidation.Tests/AbstractVa...
[ "src/CommonAssemblyInfo.cs", "src/FluentValidation.Tests/AbstractValidatorTester.cs", "src/FluentValidation.Tests/LanguageManagerTests.cs", "src/FluentValidation.Tests/NullTester.cs", "src/FluentValidation.Tests/RuleDependencyTests.cs", "src/FluentValidation.Tests/TestValidatorWithPreValidate.cs", "src/...
[]
true
FluentValidation/FluentValidation
2,256
issue_to_patch
remove some redundant private set
dfe5764a236fe71a73741fede3a7e167e4de8c4b
a909af73932bba2e8fac5522f7805d81002a2d7d
diff --git a/src/FluentValidation.Tests/ChildRulesTests.cs b/src/FluentValidation.Tests/ChildRulesTests.cs index 625df6adc..a1a4213cd 100644 --- a/src/FluentValidation.Tests/ChildRulesTests.cs +++ b/src/FluentValidation.Tests/ChildRulesTests.cs @@ -160,7 +160,7 @@ public RulesetOrderValidator() { } public cla...
[ "src/FluentValidation.Tests/ChildRulesTests.cs", "src/FluentValidation/IValidationContext.cs", "src/FluentValidation/Validators/AbstractComparisonValidator.cs", "src/FluentValidation/Validators/EqualValidator.cs", "src/FluentValidation/Validators/NotEqualValidator.cs" ]
[]
true
FluentValidation/FluentValidation
2,255
issue_to_patch
move SignAssembly to props and remove redundant DelaySign
dfe5764a236fe71a73741fede3a7e167e4de8c4b
4594c1e40389523716a519dcef037bda3d838513
diff --git a/src/Directory.Build.props b/src/Directory.Build.props index bcece9f6c..87e55e396 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -16,6 +16,7 @@ <PackageLicenseExpression>Apache-2.0</PackageLicenseExpression> <GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersi...
[ "src/Directory.Build.props", "src/FluentValidation.DependencyInjectionExtensions/FluentValidation.DependencyInjectionExtensions.csproj", "src/FluentValidation.Tests/FluentValidation.Tests.csproj", "src/FluentValidation/FluentValidation.csproj" ]
[]
true
FluentValidation/FluentValidation
2,254
issue_to_patch
remove some redundant casts
dfe5764a236fe71a73741fede3a7e167e4de8c4b
b92c7f4fe40b9d1542b771b9f9cced4ff4adc5ff
diff --git a/src/FluentValidation.Tests/InheritanceValidatorTest.cs b/src/FluentValidation.Tests/InheritanceValidatorTest.cs index f328c4f2a..c828aeace 100644 --- a/src/FluentValidation.Tests/InheritanceValidatorTest.cs +++ b/src/FluentValidation.Tests/InheritanceValidatorTest.cs @@ -297,7 +297,7 @@ public async Task V...
[ "src/FluentValidation.Tests/InheritanceValidatorTest.cs", "src/FluentValidation.Tests/ValidateAndThrowTester.cs", "src/FluentValidation/DefaultValidatorExtensions.cs", "src/FluentValidation/DefaultValidatorOptions.cs" ]
[]
true
FluentValidation/FluentValidation
2,252
issue_to_patch
move DebugType>embedded to dir props
36bdf7a52060fb14cfe5f8c5d9503c3b3a3270bb
443706c2f35b6bd92ed7531f60580d58bd3c19b8
diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 5ae9ea98b..bcece9f6c 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -6,6 +6,7 @@ <!--<VersionSuffix Condition="'$(GITHUB_RUN_NUMBER)'!=''">ci-$(GITHUB_RUN_NUMBER)</VersionSuffix>--> <Authors>Jeremy Skinner</Au...
[ "src/Directory.Build.props", "src/FluentValidation.DependencyInjectionExtensions/FluentValidation.DependencyInjectionExtensions.csproj", "src/FluentValidation/FluentValidation.csproj" ]
[]
true
FluentValidation/FluentValidation
2,253
issue_to_patch
remove redundant proj props that default to the file name
78a82311384a8f1a51be9abe641949b1ff944d81
c174cee47d97522f4bd241afb77fdb5f4805e987
diff --git a/src/FluentValidation.DependencyInjectionExtensions/FluentValidation.DependencyInjectionExtensions.csproj b/src/FluentValidation.DependencyInjectionExtensions/FluentValidation.DependencyInjectionExtensions.csproj index 1a5c549dd..bc05e2660 100644 --- a/src/FluentValidation.DependencyInjectionExtensions/Flue...
[ "src/FluentValidation.DependencyInjectionExtensions/FluentValidation.DependencyInjectionExtensions.csproj", "src/FluentValidation.Tests/FluentValidation.Tests.csproj" ]
[]
true
FluentValidation/FluentValidation
2,251
issue_to_patch
simplify doc file generation
the doc file will default to the path and name of the output assembly
78a82311384a8f1a51be9abe641949b1ff944d81
d435ef419b6437df89271374c95f55e2ffb93288
diff --git a/src/FluentValidation.DependencyInjectionExtensions/FluentValidation.DependencyInjectionExtensions.csproj b/src/FluentValidation.DependencyInjectionExtensions/FluentValidation.DependencyInjectionExtensions.csproj index 1a5c549dd..0e584f259 100644 --- a/src/FluentValidation.DependencyInjectionExtensions/Flue...
[ "src/FluentValidation.DependencyInjectionExtensions/FluentValidation.DependencyInjectionExtensions.csproj", "src/FluentValidation/FluentValidation.csproj" ]
[]
true
FluentValidation/FluentValidation
2,250
issue_to_patch
add Directory.Build.props to sln items
78a82311384a8f1a51be9abe641949b1ff944d81
5461c597eb0486458707243cf72ed83bf187a63c
diff --git a/FluentValidation.sln b/FluentValidation.sln index 0a8f73abd..ace1633d9 100644 --- a/FluentValidation.sln +++ b/FluentValidation.sln @@ -8,6 +8,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution .editorconfig = .editorconfig Changelog.txt = Changelog.txt global.j...
[ "FluentValidation.sln" ]
[]
true
FluentValidation/FluentValidation
2,249
issue_to_patch
use default instead of new CancellationToken
8d3aa78bfe2fb87271e44043e197584d46881a41
7291526f866f2b67ffe7fb6d07ea1230a98314a3
diff --git a/src/FluentValidation.Tests/ComplexValidationTester.cs b/src/FluentValidation.Tests/ComplexValidationTester.cs index 5394cfe36..81b57313b 100644 --- a/src/FluentValidation.Tests/ComplexValidationTester.cs +++ b/src/FluentValidation.Tests/ComplexValidationTester.cs @@ -296,7 +296,7 @@ public override Validat...
[ "src/FluentValidation.Tests/ComplexValidationTester.cs", "src/FluentValidation/AbstractValidator.cs", "src/FluentValidation/IValidator.cs" ]
[]
true
FoundationAgents/MetaGPT
1,897
issue_to_patch
[terminal.py] Add Windows Terminal support to terminal.py
**Features** Improve Windows environment compatibility for the open-source version, with a primary focus on fixing and enhancing the terminal module. **Feature Docs** <!-- The RFC, tutorial, or use cases about the feature if it's a pretty big update. If not, there is no need to fill. --> **Influence** <!--...
fc6e8433747be02826dec818627ed5cec0950e77
de17c62ae81a2693698bcacdf9b9deac267b506d
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 09a3b19ab5..25d8b5fae4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ default_stages: [ commit ] # 2. pre-commit install # 3. pre-commit run --all-files # make sure all files are clean repos: - - repo: https://...
[ ".pre-commit-config.yaml", "metagpt/tools/libs/terminal.py", "metagpt/utils/token_counter.py" ]
[]
true
FoundationAgents/MetaGPT
1,786
issue_to_patch
Simplify RoleZero code
Move around 170 lines of utils code out of role_zero.py, shrinking the script by around 25%. By removing these minor details, readers can understand the main logic of RoleZero more easily.
ad334450f48f08121356cdde7a6a30801ed2361d
b19dee33033bfc1684fd53f2380483e42a831a87
diff --git a/metagpt/roles/di/engineer2.py b/metagpt/roles/di/engineer2.py index 683b5f4a93..a1e71715bb 100644 --- a/metagpt/roles/di/engineer2.py +++ b/metagpt/roles/di/engineer2.py @@ -25,6 +25,7 @@ from metagpt.tools.tool_registry import register_tool from metagpt.utils.common import CodeParser, awrite from metag...
[ "metagpt/roles/di/engineer2.py", "metagpt/roles/di/role_zero.py", "metagpt/utils/role_zero_utils.py" ]
[]
true
FoundationAgents/MetaGPT
1,820
issue_to_patch
Add Llama API Support
**Features** The changes in the PR are to add Llama API support with the openai spec compat endpoint. This includes the support for the following models: - llama-4-Scout-17B-16E-Instruct-FP8 - llama-4-Maverick-17B-128E-Instruct-FP8 - llama-3.3-8B-Instruct - llama-3.3-70B-Instruct **I'm unable to run beca...
be6921cae61471bf1ffaf9cb9fe7375a6cfd00c5
d239e5329a3389c9ed677d411241da52a4b7cdc7
diff --git a/config/examples/llamaapi-Llama-3.3-70B-Instruct.yaml b/config/examples/llamaapi-Llama-3.3-70B-Instruct.yaml new file mode 100644 index 0000000000..392bbe2680 --- /dev/null +++ b/config/examples/llamaapi-Llama-3.3-70B-Instruct.yaml @@ -0,0 +1,6 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates +llm: +...
[ "config/examples/llamaapi-Llama-3.3-70B-Instruct.yaml", "config/examples/llamaapi-Llama-3.3-8B-Instruct.yaml", "config/examples/llamaapi-Llama-4-Scout-17B-16E-Instruct-FP8.yaml", "config/examples/llamaapi-llama-4-Maverick-17B-128E-Instruct-FP8.yaml", "metagpt/configs/llm_config.py", "metagpt/provider/open...
[]
true
FoundationAgents/MetaGPT
1,849
issue_to_patch
Use model instead of config.model inside an LLM instance
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> Fixed bug where model configurations interfere with each other between LLM instances: introduced self.model as an independent copy of config.model Established new code standards: ...
a855e66d041e0e0011e8b71a166c9abdca7c18c1
cfb578fe5a234519cfa478aa144456338683d77c
diff --git a/metagpt/provider/base_llm.py b/metagpt/provider/base_llm.py index 6560fc7ddd..781963434f 100644 --- a/metagpt/provider/base_llm.py +++ b/metagpt/provider/base_llm.py @@ -42,7 +42,9 @@ class BaseLLM(ABC): # OpenAI / Azure / Others aclient: Optional[Union[AsyncOpenAI]] = None cost_manager: Opt...
[ "metagpt/provider/base_llm.py", "metagpt/provider/bedrock_api.py", "metagpt/provider/human_provider.py", "metagpt/provider/ollama_api.py", "metagpt/provider/openai_api.py", "metagpt/provider/qianfan_api.py", "tests/metagpt/provider/mock_llm_config.py", "tests/metagpt/provider/test_base_llm.py", "tes...
[ { "comment": "should not delete the several test_compress_messages tests here", "path": "tests/metagpt/provider/test_base_llm.py", "hunk": "@@ -108,64 +108,6 @@ async def test_async_base_llm():\n # assert resp == default_resp_cont\n \n \n-@pytest.mark.parametrize(\"compress_type\", list(CompressType...
diff --git a/tests/metagpt/provider/mock_llm_config.py b/tests/metagpt/provider/mock_llm_config.py index f563dccad4..60b443fcd9 100644 --- a/tests/metagpt/provider/mock_llm_config.py +++ b/tests/metagpt/provider/mock_llm_config.py @@ -15,6 +15,7 @@ app_id="mock_app_id", api_secret="mock_api_secret", doma...
true
FoundationAgents/MetaGPT
1,849
comment_to_fix
Use model instead of config.model inside an LLM instance
should not delete the several test_compress_messages tests here
a855e66d041e0e0011e8b71a166c9abdca7c18c1
cfb578fe5a234519cfa478aa144456338683d77c
diff --git a/tests/metagpt/provider/test_base_llm.py b/tests/metagpt/provider/test_base_llm.py index 62083a769e..d1a4bd66dc 100644 --- a/tests/metagpt/provider/test_base_llm.py +++ b/tests/metagpt/provider/test_base_llm.py @@ -175,7 +175,7 @@ def test_format_msg(mocker): def test_format_msg_w_images(mocker): ba...
[ "tests/metagpt/provider/test_base_llm.py" ]
[ { "comment": "should not delete the several test_compress_messages tests here", "path": "tests/metagpt/provider/test_base_llm.py", "hunk": "@@ -108,64 +108,6 @@ async def test_async_base_llm():\n # assert resp == default_resp_cont\n \n \n-@pytest.mark.parametrize(\"compress_type\", list(CompressType...
true
FoundationAgents/MetaGPT
1,848
issue_to_patch
update test_bedrock_api
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> - update test_bedrock_api **Feature Docs** <!-- The RFC, tutorial, or use cases about the feature if it's a pretty big update. If not, there is no need to fill. --> **...
ba2868974b2ecc3fe4218ad29dd334867c07f678
38d6d81a2036865ec87235c5ab251024466ff4d8
[ "tests/metagpt/provider/req_resp_const.py", "tests/metagpt/provider/test_bedrock_api.py" ]
[]
diff --git a/tests/metagpt/provider/req_resp_const.py b/tests/metagpt/provider/req_resp_const.py index 111b57f915..38fdd60630 100644 --- a/tests/metagpt/provider/req_resp_const.py +++ b/tests/metagpt/provider/req_resp_const.py @@ -191,7 +191,7 @@ async def llm_general_chat_funcs_test(llm: BaseLLM, prompt: str, messages...
true
FoundationAgents/MetaGPT
1,788
issue_to_patch
Fix unittest workflow
1. Ignore some test files so that unittest can pass. These ignored test files need to be added back after they are tested successfully. 2. resolve conflicts of setuptools 3. bugfix: Missing download info for actions/upload-artifact@v3
ad334450f48f08121356cdde7a6a30801ed2361d
3b7b7823a167cd9ec872383ebe227b4a7c3bc477
diff --git a/.github/workflows/unittest.yaml b/.github/workflows/unittest.yaml index 15cb83df3a..485ebec091 100644 --- a/.github/workflows/unittest.yaml +++ b/.github/workflows/unittest.yaml @@ -10,7 +10,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: ...
[ ".github/workflows/unittest.yaml", "pytest.ini", "requirements.txt", "tests/data/rsp_cache.json" ]
[]
diff --git a/tests/data/rsp_cache.json b/tests/data/rsp_cache.json index 6c287a32b4..b6f03a4075 100644 --- a/tests/data/rsp_cache.json +++ b/tests/data/rsp_cache.json @@ -458,5 +458,27 @@ "\n# System\nRole: You are a professional software engineer, and your main task is to review and revise the code. You need to e...
true
FoundationAgents/MetaGPT
1,438
issue_to_patch
fixbug: there's a problem about using external LLM of huoshan #1429
**Features** - #1429
9d38a30ca89c3d309842b33eb42cb79168d47caf
c886d018e074a52bcf978aa34420ac03c9b9755c
diff --git a/metagpt/configs/llm_config.py b/metagpt/configs/llm_config.py index 67fb6afdb0..e7c280ee3d 100644 --- a/metagpt/configs/llm_config.py +++ b/metagpt/configs/llm_config.py @@ -33,7 +33,7 @@ class LLMType(Enum): YI = "yi" # lingyiwanwu OPENROUTER = "openrouter" BEDROCK = "bedrock" - ARK = "...
[ "metagpt/configs/llm_config.py", "metagpt/provider/ark_api.py", "metagpt/utils/token_counter.py", "requirements.txt" ]
[ { "comment": "Seems ark has a openai compatible interface, should we use the official sdk?", "path": "metagpt/provider/ark_api.py", "hunk": "@@ -16,11 +37,45 @@ class ArkLLM(OpenAILLM):\n 见:https://www.volcengine.com/docs/82379/1263482\n \"\"\"\n \n+ aclient: Optional[AsyncArk] = None", "...
true
FoundationAgents/MetaGPT
1,794
issue_to_patch
remove milvus from RAG
**Features** - Due to dependency conflicts, temporarily remove milvus from RAG **Feature Docs** <!-- The RFC, tutorial, or use cases about the feature if it's a pretty big update. If not, there is no need to fill. --> **Influence** <!-- Tell me the impact of the new feature and I'll focus on it. --> **...
ad334450f48f08121356cdde7a6a30801ed2361d
2fdfd703ba430cd60f63753817a5ec71a3836cf2
diff --git a/metagpt/rag/factories/index.py b/metagpt/rag/factories/index.py index 4e6d6b167c..f897af3ad0 100644 --- a/metagpt/rag/factories/index.py +++ b/metagpt/rag/factories/index.py @@ -8,7 +8,6 @@ from llama_index.vector_stores.chroma import ChromaVectorStore from llama_index.vector_stores.elasticsearch import ...
[ "metagpt/rag/factories/index.py", "metagpt/rag/factories/retriever.py", "metagpt/rag/retrievers/milvus_retriever.py", "metagpt/rag/schema.py", "setup.py", "tests/metagpt/document_store/test_milvus_store.py", "tests/metagpt/rag/factories/test_index.py", "tests/metagpt/rag/factories/test_retriever.py" ]
[]
diff --git a/tests/metagpt/document_store/test_milvus_store.py b/tests/metagpt/document_store/test_milvus_store.py index 93d4187f93..1d4b1d99d8 100644 --- a/tests/metagpt/document_store/test_milvus_store.py +++ b/tests/metagpt/document_store/test_milvus_store.py @@ -1,9 +1,5 @@ import random -import pytest - -from m...
true
FoundationAgents/MetaGPT
1,060
issue_to_patch
fixbug: llm.timeout not working
**Features** fixbug: #1059
0958cc333ee13d1ce5216ae0bdeaa53b5eacc6ea
c6b9e234bf03497c58ed065846b3b175a6e86df2
diff --git a/config/config2.example.yaml b/config/config2.example.yaml index 3a5cc35855..c5454ec323 100644 --- a/config/config2.example.yaml +++ b/config/config2.example.yaml @@ -4,6 +4,7 @@ llm: api_key: "YOUR_API_KEY" model: "gpt-4-turbo-preview" # or gpt-3.5-turbo-1106 / gpt-4-1106-preview proxy: "YOUR_PRO...
[ "config/config2.example.yaml", "metagpt/actions/action_node.py", "metagpt/configs/llm_config.py", "metagpt/const.py", "metagpt/provider/anthropic_api.py", "metagpt/provider/base_llm.py", "metagpt/provider/dashscope_api.py", "metagpt/provider/general_api_base.py", "metagpt/provider/google_gemini_api....
[ { "comment": "You may need to add the meaning of timeout: 0 here.", "path": "config/config2.example.yaml", "hunk": "@@ -4,6 +4,7 @@ llm:\n api_key: \"YOUR_API_KEY\"\n model: \"gpt-4-turbo-preview\" # or gpt-3.5-turbo-1106 / gpt-4-1106-preview\n proxy: \"YOUR_PROXY\" # for LLM API requests\n+ # ...
true
FoundationAgents/MetaGPT
1,060
comment_to_fix
fixbug: llm.timeout not working
You may need to add the meaning of timeout: 0 here.
0958cc333ee13d1ce5216ae0bdeaa53b5eacc6ea
c6b9e234bf03497c58ed065846b3b175a6e86df2
diff --git a/config/config2.example.yaml b/config/config2.example.yaml index 3a5cc35855..c5454ec323 100644 --- a/config/config2.example.yaml +++ b/config/config2.example.yaml @@ -4,6 +4,7 @@ llm: api_key: "YOUR_API_KEY" model: "gpt-4-turbo-preview" # or gpt-3.5-turbo-1106 / gpt-4-1106-preview proxy: "YOUR_PRO...
[ "config/config2.example.yaml" ]
[ { "comment": "You may need to add the meaning of timeout: 0 here.", "path": "config/config2.example.yaml", "hunk": "@@ -4,6 +4,7 @@ llm:\n api_key: \"YOUR_API_KEY\"\n model: \"gpt-4-turbo-preview\" # or gpt-3.5-turbo-1106 / gpt-4-1106-preview\n proxy: \"YOUR_PROXY\" # for LLM API requests\n+ # ...
true
FoundationAgents/MetaGPT
1,750
issue_to_patch
Project name with timestamp
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> - The project name with timestamp, such as `2048_game_1741582685`, is to prevent project name conflicts. **Feature Docs** <!-- The RFC, tutorial, or use cases about the f...
cf761ab7541295eebc5b26b1f259726625bfb53e
feec34ca013e2a3ec5026a4f7c40f40b8ac185ef
diff --git a/metagpt/prompts/di/engineer2.py b/metagpt/prompts/di/engineer2.py index 8948e2670e..e027eca42c 100644 --- a/metagpt/prompts/di/engineer2.py +++ b/metagpt/prompts/di/engineer2.py @@ -1,3 +1,5 @@ +import time + from metagpt.const import REACT_TEMPLATE_PATH, VUE_TEMPLATE_PATH from metagpt.prompts.di.role_ze...
[ "metagpt/prompts/di/engineer2.py", "metagpt/utils/token_counter.py" ]
[]
true
FoundationAgents/MetaGPT
1,765
issue_to_patch
update bedrock claude usage
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> - update bedrock claude usage **Feature Docs** <!-- The RFC, tutorial, or use cases about the feature if it's a pretty big update. If not, there is no need to fill. --> ...
79390a28247dbfaf8097d3bcd6e6f23b56e9e444
1b8df6ff1dd0fdaa8d0fab0faeaf15b4657478bc
diff --git a/metagpt/provider/bedrock/base_provider.py b/metagpt/provider/bedrock/base_provider.py index 7eb5dfb614..8cd9611289 100644 --- a/metagpt/provider/bedrock/base_provider.py +++ b/metagpt/provider/bedrock/base_provider.py @@ -1,11 +1,12 @@ import json from abc import ABC, abstractmethod -from typing import U...
[ "metagpt/provider/bedrock/base_provider.py", "metagpt/provider/bedrock/bedrock_provider.py", "metagpt/provider/bedrock/utils.py", "metagpt/provider/bedrock_api.py", "metagpt/utils/token_counter.py", "setup.py" ]
[]
true
FoundationAgents/MetaGPT
1,760
issue_to_patch
hello_world example compatibility
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> - hello_world example compatibility **Feature Docs** <!-- The RFC, tutorial, or use cases about the feature if it's a pretty big update. If not, there is no need to fill....
b1cc2cf3617abd8853d73fc5e669eddd9ac604e8
edff9b284228995477f37ae0f6accc270b78f92a
diff --git a/examples/hello_world.py b/examples/hello_world.py index 5c10823538..641ac0dcf7 100644 --- a/examples/hello_world.py +++ b/examples/hello_world.py @@ -14,7 +14,7 @@ async def ask_and_print(question: str, llm: LLM, system_prompt) -> str: logger.info(f"Q: {question}") rsp = await llm.aask(question,...
[ "examples/hello_world.py" ]
[]
true
FoundationAgents/MetaGPT
1,757
issue_to_patch
update video wall link
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> - update video wall link **Feature Docs** <!-- The RFC, tutorial, or use cases about the feature if it's a pretty big update. If not, there is no need to fill. --> **I...
3b2d8e048f7581ce6b135019befb709f50c388c1
52baf3bd9c51a6a852a110b1fdf17b498e92647d
diff --git a/README.md b/README.md index c59bc049b0..fefdd8aed7 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ asyncio.run(main()) # or await main() in a jupyter notebook setting - [Matthew Berman: How To Install MetaGPT - Build A Startup With One Prompt!!](https://youtu.be/uT75J_KG_aY) - [Official Demo ...
[ "README.md", "docs/README_CN.md", "docs/README_FR.md", "docs/README_JA.md" ]
[]
true
FoundationAgents/MetaGPT
1,754
issue_to_patch
simplify log if messages contain base64 data
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> - simplify log if messages contain base64 data **Feature Docs** <!-- The RFC, tutorial, or use cases about the feature if it's a pretty big update. If not, there is no ne...
e54503267b9857c856f7590f1ec9f7ee1beb2b0d
117031de5be3b6530a57a82d7ca14a565653d405
diff --git a/metagpt/provider/base_llm.py b/metagpt/provider/base_llm.py index a1fbeccd0e..6560fc7ddd 100644 --- a/metagpt/provider/base_llm.py +++ b/metagpt/provider/base_llm.py @@ -142,6 +142,38 @@ def get_costs(self) -> Costs: return Costs(0, 0, 0, 0) return self.cost_manager.get_costs() + ...
[ "metagpt/provider/base_llm.py", "metagpt/provider/constant.py" ]
[]
true
FoundationAgents/MetaGPT
1,726
issue_to_patch
add LLM Reasoning models
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> - add reasoning like o-series / r-series / claude-3.7 - update llm provider like deepseek / openrouter / official claude / aws claude - all configuration tests passed **...
44eccf0e16a18d81a3e1aa29dff06463236f6e84
08587f392f88705e0e822d579a18bdff843f15a5
diff --git a/examples/hello_world.py b/examples/hello_world.py index 04bb880911..5c10823538 100644 --- a/examples/hello_world.py +++ b/examples/hello_world.py @@ -13,7 +13,9 @@ async def ask_and_print(question: str, llm: LLM, system_prompt) -> str: logger.info(f"Q: {question}") - rsp = await llm.aask(questio...
[ "examples/hello_world.py", "metagpt/configs/llm_config.py", "metagpt/provider/__init__.py", "metagpt/provider/anthropic_api.py", "metagpt/provider/base_llm.py", "metagpt/provider/bedrock/base_provider.py", "metagpt/provider/bedrock/bedrock_provider.py", "metagpt/provider/bedrock/utils.py", "metagpt/...
[]
true
FoundationAgents/MetaGPT
1,753
issue_to_patch
update readme
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> - update readme **Feature Docs** <!-- The RFC, tutorial, or use cases about the feature if it's a pretty big update. If not, there is no need to fill. --> **Influence*...
fc51ecf768640317e653d085f9bbb71d07403111
a18745c9d90245e8bbb4c9382f9e1debcfe69553
diff --git a/README.md b/README.md index 4fa95e208e..c59bc049b0 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,10 @@ </p> <p align="center"> -[ <b> En </b> | -<a href="docs/README_CN.md"> 中 </a> | -<a href="docs/README_FR.md"> Fr </a> | -<a href="docs/README_JA.md"> 日 </a> ] +[ <b>En</b> | +<a href="docs/README...
[ "README.md", "docs/README_CN.md", "docs/README_FR.md", "docs/README_JA.md" ]
[]
true
FoundationAgents/MetaGPT
1,752
issue_to_patch
update readme format
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> - update readme format **Feature Docs** <!-- The RFC, tutorial, or use cases about the feature if it's a pretty big update. If not, there is no need to fill. --> **Inf...
0da170317e06f4f13a28aac9c7c42afc97a2d692
6f278cf3627921643cd781196ddd4dcf3430cc4e
diff --git a/README.md b/README.md index 093293b1ed..4fa95e208e 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,10 @@ </p> <p align="center"> +[ <b> En </b> | +<a href="docs/README_CN.md"> 中 </a> | +<a href="docs/README_FR.md"> Fr </a> | +<a href="docs/README_JA.md"> 日 </a> ] <b>Assign different roles to GPTs to...
[ "README.md", "docs/ACADEMIC_WORK.md", "docs/NEWS.md", "docs/README_CN.md", "docs/README_FR.md", "docs/README_JA.md" ]
[]
true
FoundationAgents/MetaGPT
1,751
issue_to_patch
update readme
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> - update readme **Feature Docs** <!-- The RFC, tutorial, or use cases about the feature if it's a pretty big update. If not, there is no need to fill. --> **Influence*...
d1c6596783d743fc24aa65eb166b694c90cdb32f
1b165f060edc023349b324a0a33c1bbd72cfc891
diff --git a/.coveragerc b/.coveragerc index 905b611a69..3f6cfe357d 100644 --- a/.coveragerc +++ b/.coveragerc @@ -5,4 +5,3 @@ omit = */metagpt/ext/* */metagpt/environment/android_env/* */metagpt/environment/werewolf_env/* - \ No newline at end of file diff --git a/.gitattributes b/.gitattributes ind...
[ ".coveragerc", ".gitattributes", ".github/ISSUE_TEMPLATE/show_me_the_bug.md", "README.md", "docs/README_CN.md", "docs/README_FR.md", "docs/README_JA.md", "docs/resources/MetaGPT-logo.jpeg", "docs/resources/MetaGPT-logo.png", "docs/resources/MetaGPT-new-log-v2.png", "pytest.ini" ]
[]
true
FoundationAgents/MetaGPT
1,408
issue_to_patch
Feat omniparse
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> - config新增omniparse配置 - 基于[omniparse的API](https://docs.cognitivelab.in/api)封装成SDK - RAG在解析pdf文件时指定使用omniparse,而不是llamaindex默认的PyPDF **Feature Docs** <!-- The RFC, tutor...
ec2c1dcd8a12d23962be3a9eb81ce96ebe0af893
015212d602d1bfc0561f9395c9befca9dcee683a
diff --git a/.gitattributes b/.gitattributes index 865da2ca2d..e6436790e4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -14,6 +14,7 @@ *.ico binary *.jpeg binary *.mp3 binary +*.mp4 binary *.zip binary *.bin binary diff --git a/config/config2.example.yaml b/config/config2.example.yaml index 4b155e5dc1..b82...
[ ".gitattributes", "config/config2.example.yaml", "examples/data/omniparse/test01.docx", "examples/data/omniparse/test02.pdf", "examples/data/omniparse/test03.mp4", "examples/data/omniparse/test04.mp3", "examples/rag/omniparse.py", "examples/rag/rag_bm.py", "examples/rag/rag_pipeline.py", "examples...
[ { "comment": "Should we only use `parse_file` and route to different `_parse_pdf` and so on inside?", "path": "examples/rag/omniparse.py", "hunk": "@@ -0,0 +1,64 @@\n+import asyncio\n+\n+from metagpt.config2 import config\n+from metagpt.const import EXAMPLE_DATA_PATH\n+from metagpt.logs import logger\n+...
diff --git a/tests/metagpt/rag/engines/test_simple.py b/tests/metagpt/rag/engines/test_simple.py index 8c7a15be2e..a10fcbe639 100644 --- a/tests/metagpt/rag/engines/test_simple.py +++ b/tests/metagpt/rag/engines/test_simple.py @@ -7,6 +7,7 @@ from llama_index.core.schema import Document, NodeWithScore, TextNode fro...
true
FoundationAgents/MetaGPT
1,546
issue_to_patch
Make context length configurable
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> - Added LLM context_length configuration. - [Related issue](https://github.com/geekan/MetaGPT/issues/1372). Previously, this was resolved by adjusting max_token, and now it can...
8b209d4e17ad7dfc1ad7a80505eac42f71228734
7b81c8a6901f65fe6076fd4d4ca6e6b4ff488859
diff --git a/metagpt/configs/llm_config.py b/metagpt/configs/llm_config.py index 60118303c9..0d4561a7a3 100644 --- a/metagpt/configs/llm_config.py +++ b/metagpt/configs/llm_config.py @@ -83,6 +83,7 @@ class LLMConfig(YamlModel): logprobs: Optional[bool] = None top_logprobs: Optional[int] = None timeout: ...
[ "metagpt/configs/llm_config.py", "metagpt/rag/factories/llm.py" ]
[]
true
FoundationAgents/MetaGPT
1,725
issue_to_patch
Support gemini models
fix issue: https://github.com/geekan/MetaGPT/issues/1724
07d4be2df32ab18687ecbd3dcb769635f3e7aba3
ae9cd3e6346b7dc9d95f01da6fa6029d32ff4770
diff --git a/metagpt/provider/google_gemini_api.py b/metagpt/provider/google_gemini_api.py index e4b3a3f177..df21399931 100644 --- a/metagpt/provider/google_gemini_api.py +++ b/metagpt/provider/google_gemini_api.py @@ -51,7 +51,7 @@ def __init__(self, config: LLMConfig): self.__init_gemini(config) s...
[ "metagpt/provider/google_gemini_api.py" ]
[]
true
FoundationAgents/MetaGPT
1,600
issue_to_patch
Add api key to ollama client to support open webui
**Features** This commit enables authentication as required by Open WebUI. **Feature Docs** My previously accepted PR #1465 didn't work anylonger after some refactoring. **Influence** Tested it on both, a local instance of Ollama and a running Open WebUI instance. Both work fine with these changes. **Result...
2b160f294936f5b6c29cde63b8e4aa65e9a2ef9f
d712b88d217847d73428225c1a0a387492c49f51
diff --git a/metagpt/provider/ollama_api.py b/metagpt/provider/ollama_api.py index 3f7d20d0ac..bb458b0e8b 100644 --- a/metagpt/provider/ollama_api.py +++ b/metagpt/provider/ollama_api.py @@ -193,7 +193,7 @@ class OllamaLLM(BaseLLM): """ def __init__(self, config: LLMConfig): - self.client = GeneralAP...
[ "metagpt/provider/ollama_api.py" ]
[]
true
FoundationAgents/MetaGPT
1,749
issue_to_patch
update readme
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> - update readme about news and academic work **Feature Docs** <!-- The RFC, tutorial, or use cases about the feature if it's a pretty big update. If not, there is no need...
3d4d0360ddff72f8ba8d9c2cf189c62888c720b6
e8fbc2ddbdf0cf7c939d9659c04d611e2ab6e2c8
diff --git a/News.md b/News.md new file mode 100644 index 0000000000..75ab8b5bf4 --- /dev/null +++ b/News.md @@ -0,0 +1,22 @@ +## Earlier news + +🚀 Oct. 29, 2024: We introduced three papers: [AFLOW](https://arxiv.org/abs/2410.10762), [FACT](https://arxiv.org/abs/2410.21012), and [SELA](https://arxiv.org/abs/2410.17238...
[ "News.md", "README.md", "academic_work.md" ]
[]
true
FoundationAgents/MetaGPT
1,268
issue_to_patch
fix openai image schema bug
### **User description** I try to run android assistant with gpt-4-turbo, but there was an error indicating the messages schema was incorrect: `"Invalid type for 'messages[1].content[1].image_url': expected an object, but got a string instead` by checking the openai-sdk doc https://platform.openai.com/docs/guides/vi...
f201b2f5f32c2d48eab6632bf103e9b3a92fc999
82b4be51bdd69000cc1ace7b7140c6c5f2e07ab9
diff --git a/metagpt/provider/base_llm.py b/metagpt/provider/base_llm.py index 6387e39365..e554f77671 100644 --- a/metagpt/provider/base_llm.py +++ b/metagpt/provider/base_llm.py @@ -65,7 +65,7 @@ def _user_msg_with_imgs(self, msg: str, images: Optional[Union[str, list[str]]]) # image url or image base64 ...
[ "metagpt/provider/base_llm.py" ]
[]
true
FoundationAgents/MetaGPT
1,732
issue_to_patch
Update SPO and AOT in README.md
Update SPO and AOT in README.md
07d4be2df32ab18687ecbd3dcb769635f3e7aba3
1a1052f6b64a39efae44e86e2e6712c8f220e177
diff --git a/README.md b/README.md index e42b5b7664..85696cdb35 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,8 @@ ## News 🚀 Feb. 19, 2025: Today we are officially launching our natural language programming product: MGX (MetaGPT X) - the world's first AI agent development team. [Offical website](https://mgx.d...
[ "README.md" ]
[]
true
FoundationAgents/MetaGPT
1,731
issue_to_patch
update cli entry / readme
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> - update cli entry / readme **Feature Docs** <!-- The RFC, tutorial, or use cases about the feature if it's a pretty big update. If not, there is no need to fill. --> ...
f36a4ece63278bccfea3b9270b76c9ffabe98e15
600ea9107eca5cb8ac8afcad2ba1c01796718348
diff --git a/README.md b/README.md index e42b5b7664..c94d0b7c87 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,8 @@ pip install --upgrade metagpt # or `git clone https://github.com/geekan/MetaGPT && cd MetaGPT && pip install --upgrade -e .` ``` +**Install [node](https://nodejs.org/en/download) and [pnpm](https...
[ "README.md", "metagpt/config2.py", "metagpt/prompts/di/architect.py", "metagpt/prompts/di/engineer2.py", "metagpt/roles/__init__.py", "metagpt/roles/di/role_zero.py", "metagpt/software_company.py", "metagpt/team.py", "metagpt/tools/tool_recommend.py" ]
[]
true
FoundationAgents/MetaGPT
1,728
issue_to_patch
example fix
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> - di example fix **Feature Docs** <!-- The RFC, tutorial, or use cases about the feature if it's a pretty big update. If not, there is no need to fill. --> **Influence...
c7314e31b8ce75e976a8128c1f125fb79e4799b4
a553be61c55d5034ade4eb67d09f1c39b9f724e3
diff --git a/examples/data/di/dog.jpg b/examples/data/di/dog.jpg new file mode 100644 index 0000000000..679a932e82 Binary files /dev/null and b/examples/data/di/dog.jpg differ diff --git a/examples/data/di/receipt_shopping.jpg b/examples/data/di/receipt_shopping.jpg new file mode 100644 index 0000000000..3368eb42fe Bin...
[ "examples/data/di/dog.jpg", "examples/data/di/receipt_shopping.jpg", "examples/data/omniparse/test01.docx", "examples/di/interacting_with_human.py", "examples/di/ocr_receipt.py", "examples/di/rm_image_background.py", "examples/write_design.py", "metagpt/config2.py", "metagpt/environment/werewolf/env...
[ { "comment": "??", "path": "examples/di/ocr_receipt.py", "hunk": "@@ -1,17 +1,18 @@\n+from metagpt.const import EXAMPLE_DATA_PATH\n from metagpt.roles.di.data_interpreter import DataInterpreter\n \n \n async def main():\n # Notice: pip install metagpt[ocr] before using this example\n- image_path ...
diff --git a/tests/metagpt/roles/di/test_swe_agent.py b/tests/metagpt/roles/di/test_swe_agent.py index 325e7bed8e..3dbfa910b7 100644 --- a/tests/metagpt/roles/di/test_swe_agent.py +++ b/tests/metagpt/roles/di/test_swe_agent.py @@ -1,22 +1,17 @@ import pytest +from metagpt.environment.mgx.mgx_env import MGXEnv from ...
true
FoundationAgents/MetaGPT
1,728
comment_to_fix
example fix
??
c7314e31b8ce75e976a8128c1f125fb79e4799b4
a553be61c55d5034ade4eb67d09f1c39b9f724e3
diff --git a/examples/di/ocr_receipt.py b/examples/di/ocr_receipt.py index af54d519ba..bf32f5722c 100644 --- a/examples/di/ocr_receipt.py +++ b/examples/di/ocr_receipt.py @@ -1,17 +1,17 @@ +from metagpt.const import EXAMPLE_DATA_PATH from metagpt.roles.di.data_interpreter import DataInterpreter async def main(): ...
[ "examples/di/ocr_receipt.py" ]
[ { "comment": "??", "path": "examples/di/ocr_receipt.py", "hunk": "@@ -1,17 +1,18 @@\n+from metagpt.const import EXAMPLE_DATA_PATH\n from metagpt.roles.di.data_interpreter import DataInterpreter\n \n \n async def main():\n # Notice: pip install metagpt[ocr] before using this example\n- image_path ...
true
FoundationAgents/MetaGPT
1,727
issue_to_patch
Feat merge cr
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> - xx - yy **Feature Docs** <!-- The RFC, tutorial, or use cases about the feature if it's a pretty big update. If not, there is no need to fill. --> **Influence** <!...
c7314e31b8ce75e976a8128c1f125fb79e4799b4
25016d2b2226d31de0c9c22c1293e7d8bb1496db
diff --git a/examples/agent_creator.py b/examples/agent_creator.py index 34160d3986..bd58840ce9 100644 --- a/examples/agent_creator.py +++ b/examples/agent_creator.py @@ -6,13 +6,12 @@ import re from metagpt.actions import Action -from metagpt.config2 import Config +from metagpt.config2 import config from metagpt....
[ "examples/agent_creator.py", "examples/di/interacting_with_human.py", "examples/rag/rag_bm.py", "examples/ui_with_chainlit/app.py", "examples/write_design.py", "metagpt/actions/requirement_analysis/framework/__init__.py", "metagpt/config2.py", "metagpt/environment/android/env_space.py", "metagpt/env...
[ { "comment": "why not use `https://github.com/geekan/MetaGPT/blob/main/metagpt/config2.py#L169`", "path": "metagpt/rag/engines/simple.py", "hunk": "@@ -31,7 +31,7 @@\n TransformComponent,\n )\n \n-from metagpt.config2 import config\n+from metagpt.config2 import Config", "resolving_sha": "25016d2...
diff --git a/tests/metagpt/learn/test_text_to_embedding.py b/tests/metagpt/learn/test_text_to_embedding.py index f50f6a7aa5..3b5486c5d8 100644 --- a/tests/metagpt/learn/test_text_to_embedding.py +++ b/tests/metagpt/learn/test_text_to_embedding.py @@ -11,7 +11,7 @@ import pytest -from metagpt.config2 import Config ...
true
FoundationAgents/MetaGPT
1,695
issue_to_patch
update role atomization capacity example
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> - update role atomization capacity example **Feature Docs** <!-- The RFC, tutorial, or use cases about the feature if it's a pretty big update. If not, there is no need t...
6fa4cd0b5a19d4c6833241f278a62eae10357094
e6523779fd2eb5b3dc450301da094443aae913b3
diff --git a/examples/di/arxiv_reader.py b/examples/di/arxiv_reader.py index 6e1939b816..206b2aa983 100644 --- a/examples/di/arxiv_reader.py +++ b/examples/di/arxiv_reader.py @@ -1,6 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- from metagpt.roles.di.data_interpreter import DataInterpreter +from metagpt.tool...
[ "examples/di/arxiv_reader.py", "examples/di/atomization_capacity_plan.py", "examples/di/automated_planning_of_tasks.py", "examples/di/data_analyst_write_code.py", "examples/di/interacting_with_human.py", "examples/di/software_company.py", "examples/mgx/__init__.py", "examples/mgx/run_mgx.py", "examp...
[ { "comment": "pre-commit", "path": "examples/di/atomization_capacity_plan.py", "hunk": "@@ -0,0 +1,78 @@\n+from metagpt.logs import logger\n+from metagpt.roles.di.team_leader import TeamLeader\n+import fire", "resolving_sha": "e6523779fd2eb5b3dc450301da094443aae913b3", "resolving_diff": "diff --...
true
FoundationAgents/MetaGPT
1,695
comment_to_fix
update role atomization capacity example
pre-commit
6fa4cd0b5a19d4c6833241f278a62eae10357094
e6523779fd2eb5b3dc450301da094443aae913b3
diff --git a/examples/di/atomization_capacity_plan.py b/examples/di/atomization_capacity_plan.py new file mode 100644 index 0000000000..eb86f9bd25 --- /dev/null +++ b/examples/di/atomization_capacity_plan.py @@ -0,0 +1,65 @@ +import fire + +from metagpt.logs import logger +from metagpt.roles.di.team_leader import TeamL...
[ "examples/di/atomization_capacity_plan.py" ]
[ { "comment": "pre-commit", "path": "examples/di/atomization_capacity_plan.py", "hunk": "@@ -0,0 +1,78 @@\n+from metagpt.logs import logger\n+from metagpt.roles.di.team_leader import TeamLeader\n+import fire", "resolving_sha": "e6523779fd2eb5b3dc450301da094443aae913b3", "resolving_diff": "diff --...
true
FoundationAgents/MetaGPT
1,695
comment_to_fix
update role atomization capacity example
缺少# 1?
6fa4cd0b5a19d4c6833241f278a62eae10357094
e6523779fd2eb5b3dc450301da094443aae913b3
diff --git a/examples/di/atomization_capacity_plan.py b/examples/di/atomization_capacity_plan.py new file mode 100644 index 0000000000..eb86f9bd25 --- /dev/null +++ b/examples/di/atomization_capacity_plan.py @@ -0,0 +1,65 @@ +import fire + +from metagpt.logs import logger +from metagpt.roles.di.team_leader import TeamL...
[ "examples/di/atomization_capacity_plan.py" ]
[ { "comment": "缺少# 1?", "path": "examples/di/atomization_capacity_plan.py", "hunk": "@@ -0,0 +1,78 @@\n+from metagpt.logs import logger\n+from metagpt.roles.di.team_leader import TeamLeader\n+import fire\n+\n+\n+async def main():\n+ tl = TeamLeader()\n+ logger.info(\"\\n=== Adding Initial Tasks ===...
true
FoundationAgents/MetaGPT
1,695
comment_to_fix
update role atomization capacity example
关于运行env的例子,可以参考tests/scripts/run_mgx_env.py
6fa4cd0b5a19d4c6833241f278a62eae10357094
e6523779fd2eb5b3dc450301da094443aae913b3
diff --git a/examples/write_game_code.py b/examples/write_game_code.py new file mode 100644 index 0000000000..86412a0931 --- /dev/null +++ b/examples/write_game_code.py @@ -0,0 +1,42 @@ +import asyncio +import time + +from metagpt.environment.mgx.mgx_env import MGXEnv +from metagpt.roles.di.engineer2 import Engineer2 +...
[ "examples/write_game_code.py" ]
[ { "comment": "关于运行env的例子,可以参考tests/scripts/run_mgx_env.py", "path": "examples/write_game_code.py", "hunk": "@@ -0,0 +1,24 @@\n+import asyncio", "resolving_sha": "e6523779fd2eb5b3dc450301da094443aae913b3", "resolving_diff": "diff --git a/examples/write_game_code.py b/examples/write_game_code.py\n...
true
FoundationAgents/MetaGPT
1,679
issue_to_patch
Feat role ut
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> - add roles ut code **Feature Docs** <!-- The RFC, tutorial, or use cases about the feature if it's a pretty big update. If not, there is no need to fill. --> **Influe...
8fe00a17885f77167aab48a5a7714870d378f7dc
571301cefc1cd966e216df33b277ec49fa4a9a4d
[ "tests/data/rsp_cache.json", "tests/metagpt/roles/di/test_data_analyst.py", "tests/metagpt/roles/di/test_role_zero.py", "tests/metagpt/roles/di/test_swe_agent.py", "tests/metagpt/roles/di/test_team_leader.py", "tests/metagpt/roles/test_architect.py", "tests/metagpt/roles/test_engineer.py", "tests/meta...
[]
diff --git a/tests/data/rsp_cache.json b/tests/data/rsp_cache.json index 772b4d5edf..1a200ebd9c 100644 --- a/tests/data/rsp_cache.json +++ b/tests/data/rsp_cache.json @@ -445,5 +445,178 @@ "\"\"\"\nConvert an action description to an emoji (important: use two or less emojis).\n\nAction description: sleeping\nEmoji...
true
FoundationAgents/MetaGPT
1,358
issue_to_patch
integration with UI frameworks... I want to integrate metagpt with UI framework, but all metagpt example and demo are under CLI... do we have any UI integration example or demo,,, which UI framework should I use? thanks a lot,
feat: Integration of MetaGPT with UI framework, Chainlit
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> - MetaGPT on UI, Integrated using Chainlit: https://github.com/Chainlit/chainlit, as it gives flexibility with python. - Message `Streaming` working ✅ - We can send an "idea" f...
38cea1daf2b87ebc31a56c995d7857d07289fa70
e56c06dafcee5a6421cbd45fad6610b26e86eda4
diff --git a/examples/ui_with_chainlit/.gitignore b/examples/ui_with_chainlit/.gitignore new file mode 100644 index 0000000000..1e528c3841 --- /dev/null +++ b/examples/ui_with_chainlit/.gitignore @@ -0,0 +1,3 @@ +*.chainlit +chainlit.md +.files \ No newline at end of file diff --git a/examples/ui_with_chainlit/README.m...
[ "examples/ui_with_chainlit/.gitignore", "examples/ui_with_chainlit/README.md", "examples/ui_with_chainlit/__init__.py", "examples/ui_with_chainlit/app.py", "examples/ui_with_chainlit/init_setup.py", "examples/ui_with_chainlit/public/2048.jpg", "examples/ui_with_chainlit/public/MetaGPT-new-log.jpg", "e...
[]
true
FoundationAgents/MetaGPT
1,694
issue_to_patch
Modify some files, about AFlow and SPO
1. Modify the concurrency of spo evaluator 2. add modelscope link to spo README 3. add AFlow oral news 4. modify AFlow prompt
81feca4f16824fe3c30f626032b990c149a799b7
47ced11d9ca484654e7600bb4d58eb0caf0e0d59
diff --git a/README.md b/README.md index 4b846795cb..49568710b7 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,8 @@ </p> ## News +🚀 Jan. 22, 2025: Our paper [AFlow: Automating Agentic Workflow Generation](https://openreview.net/forum?id=z5uVAKwmjf) accepted for **oral presentation (top 1.8%)** at ICLR 2025, *...
[ "README.md", "examples/spo/README.md", "metagpt/ext/aflow/scripts/prompts/optimize_prompt.py", "metagpt/ext/spo/utils/evaluation_utils.py" ]
[]
true
FoundationAgents/MetaGPT
1,692
issue_to_patch
modify SPO README and app
1. Changed the name of the QA pair. 2. Added a demo on Hugging Face. 3. Added a link to our paper.
e935b97456afaeff16e426b8ab6987c265a6d316
18bdda1bc2db3a2733801dcd301f7ecd296a26b8
diff --git a/examples/spo/README.md b/examples/spo/README.md index 08ed6f804d..8bfa3b2069 100644 --- a/examples/spo/README.md +++ b/examples/spo/README.md @@ -1,5 +1,7 @@ # SPO | Self-Supervised Prompt Optimization <img src="../../docs/resources/spo/SPO-logo.png" width="60" height="60" style="vertical-align: middle; m...
[ "examples/spo/README.md", "examples/spo/config2.example.yaml", "metagpt/ext/spo/app.py", "metagpt/ext/spo/settings/Navigate.yaml", "metagpt/ext/spo/settings/Poem.yaml", "metagpt/ext/spo/utils/load.py" ]
[]
true
FoundationAgents/MetaGPT
1,683
issue_to_patch
Implement Self-Supervised Prompt Optimizer (SPO)
An automated prompt engineering tool for Large Language Models (LLMs), designed for universal domain adaptation.
4954729e7564c806d7e58b3ed8b00ef991f889cc
62dda60c126481ff8e0ea35ddbbd90eb6046179f
diff --git a/docs/resources/spo/SPO-closed_task_figure.png b/docs/resources/spo/SPO-closed_task_figure.png new file mode 100644 index 0000000000..329ff5461e Binary files /dev/null and b/docs/resources/spo/SPO-closed_task_figure.png differ diff --git a/docs/resources/spo/SPO-closed_task_table.png b/docs/resources/spo/SP...
[ "docs/resources/spo/SPO-closed_task_figure.png", "docs/resources/spo/SPO-closed_task_table.png", "docs/resources/spo/SPO-logo.png", "docs/resources/spo/SPO-method.png", "docs/resources/spo/SPO-open_ended_task_figure.png", "examples/spo/README.md", "examples/spo/config2.example.yaml", "examples/spo/opt...
[ { "comment": "\"scripts\" usually means the files are entries to be run. However, your files here define the actual logic and core objects, I recommend renaming the folder to better represent the files. Perhaps components/src/...?", "path": "metagpt/ext/spo/scripts/optimizer.py", "hunk": "@@ -0,0 +1,144...
true
FoundationAgents/MetaGPT
1,683
comment_to_fix
Implement Self-Supervised Prompt Optimizer (SPO)
add metric evidences and comparison table
4954729e7564c806d7e58b3ed8b00ef991f889cc
62dda60c126481ff8e0ea35ddbbd90eb6046179f
diff --git a/examples/spo/README.md b/examples/spo/README.md new file mode 100644 index 0000000000..08ed6f804d --- /dev/null +++ b/examples/spo/README.md @@ -0,0 +1,184 @@ +# SPO | Self-Supervised Prompt Optimization <img src="../../docs/resources/spo/SPO-logo.png" width="60" height="60" style="vertical-align: middle; ...
[ "examples/spo/README.md" ]
[ { "comment": "add metric evidences and comparison table", "path": "examples/spo/README.md", "hunk": "@@ -0,0 +1,97 @@\n+# SPO 🤖 | Self-Supervised Prompt Optimizer\n+\n+An automated prompt engineering tool for Large Language Models (LLMs), designed for universal domain adaptation.\n+\n+A next-generation...
true
FoundationAgents/MetaGPT
1,683
comment_to_fix
Implement Self-Supervised Prompt Optimizer (SPO)
seems SSPO is better?(suggested by gpt)
4954729e7564c806d7e58b3ed8b00ef991f889cc
62dda60c126481ff8e0ea35ddbbd90eb6046179f
diff --git a/examples/spo/README.md b/examples/spo/README.md new file mode 100644 index 0000000000..08ed6f804d --- /dev/null +++ b/examples/spo/README.md @@ -0,0 +1,184 @@ +# SPO | Self-Supervised Prompt Optimization <img src="../../docs/resources/spo/SPO-logo.png" width="60" height="60" style="vertical-align: middle; ...
[ "examples/spo/README.md" ]
[ { "comment": "seems SSPO is better?(suggested by gpt)", "path": "examples/spo/README.md", "hunk": "@@ -0,0 +1,97 @@\n+# SPO 🤖 | Self-Supervised Prompt Optimizer\n+\n+An automated prompt engineering tool for Large Language Models (LLMs), designed for universal domain adaptation.\n+\n+A next-generation p...
true
FoundationAgents/MetaGPT
1,683
comment_to_fix
Implement Self-Supervised Prompt Optimizer (SPO)
question to solve
4954729e7564c806d7e58b3ed8b00ef991f889cc
62dda60c126481ff8e0ea35ddbbd90eb6046179f
diff --git a/examples/spo/README.md b/examples/spo/README.md new file mode 100644 index 0000000000..08ed6f804d --- /dev/null +++ b/examples/spo/README.md @@ -0,0 +1,184 @@ +# SPO | Self-Supervised Prompt Optimization <img src="../../docs/resources/spo/SPO-logo.png" width="60" height="60" style="vertical-align: middle; ...
[ "examples/spo/README.md" ]
[ { "comment": "question to solve", "path": "examples/spo/README.md", "hunk": "@@ -0,0 +1,97 @@\n+# SPO 🤖 | Self-Supervised Prompt Optimizer\n+\n+An automated prompt engineering tool for Large Language Models (LLMs), designed for universal domain adaptation.\n+\n+A next-generation prompt engineering syst...
true
FoundationAgents/MetaGPT
1,683
comment_to_fix
Implement Self-Supervised Prompt Optimizer (SPO)
give instructions to write prompt/question or template description
4954729e7564c806d7e58b3ed8b00ef991f889cc
62dda60c126481ff8e0ea35ddbbd90eb6046179f
diff --git a/examples/spo/README.md b/examples/spo/README.md new file mode 100644 index 0000000000..08ed6f804d --- /dev/null +++ b/examples/spo/README.md @@ -0,0 +1,184 @@ +# SPO | Self-Supervised Prompt Optimization <img src="../../docs/resources/spo/SPO-logo.png" width="60" height="60" style="vertical-align: middle; ...
[ "examples/spo/README.md" ]
[ { "comment": "give instructions to write prompt/question or template description", "path": "examples/spo/README.md", "hunk": "@@ -0,0 +1,97 @@\n+# SPO 🤖 | Self-Supervised Prompt Optimizer\n+\n+An automated prompt engineering tool for Large Language Models (LLMs), designed for universal domain adaptatio...
true
FoundationAgents/MetaGPT
1,683
comment_to_fix
Implement Self-Supervised Prompt Optimizer (SPO)
more general format like `optimize_model`? and `optimize` is verb, maybe you can just use `opt_model / exec_model`
4954729e7564c806d7e58b3ed8b00ef991f889cc
62dda60c126481ff8e0ea35ddbbd90eb6046179f
diff --git a/examples/spo/README.md b/examples/spo/README.md new file mode 100644 index 0000000000..08ed6f804d --- /dev/null +++ b/examples/spo/README.md @@ -0,0 +1,184 @@ +# SPO | Self-Supervised Prompt Optimization <img src="../../docs/resources/spo/SPO-logo.png" width="60" height="60" style="vertical-align: middle; ...
[ "examples/spo/README.md" ]
[ { "comment": "more general format like `optimize_model`? and `optimize` is verb, maybe you can just use `opt_model / exec_model`", "path": "examples/spo/README.md", "hunk": "@@ -0,0 +1,97 @@\n+# SPO 🤖 | Self-Supervised Prompt Optimizer\n+\n+An automated prompt engineering tool for Large Language Models...
true
FoundationAgents/MetaGPT
1,683
comment_to_fix
Implement Self-Supervised Prompt Optimizer (SPO)
seems you have add a `examples/spo/config2.example.yaml`, but here refs to `aflow`
4954729e7564c806d7e58b3ed8b00ef991f889cc
62dda60c126481ff8e0ea35ddbbd90eb6046179f
diff --git a/examples/spo/README.md b/examples/spo/README.md new file mode 100644 index 0000000000..08ed6f804d --- /dev/null +++ b/examples/spo/README.md @@ -0,0 +1,184 @@ +# SPO | Self-Supervised Prompt Optimization <img src="../../docs/resources/spo/SPO-logo.png" width="60" height="60" style="vertical-align: middle; ...
[ "examples/spo/README.md" ]
[ { "comment": "seems you have add a `examples/spo/config2.example.yaml`, but here refs to `aflow`", "path": "examples/spo/README.md", "hunk": "@@ -0,0 +1,97 @@\n+# SPO 🤖 | Self-Supervised Prompt Optimizer\n+\n+An automated prompt engineering tool for Large Language Models (LLMs), designed for universal ...
true
FoundationAgents/MetaGPT
1,683
comment_to_fix
Implement Self-Supervised Prompt Optimizer (SPO)
Optional suggestion, add a prompt optimized example(original/optimized ones) to bring a direct feeling.
4954729e7564c806d7e58b3ed8b00ef991f889cc
62dda60c126481ff8e0ea35ddbbd90eb6046179f
diff --git a/examples/spo/README.md b/examples/spo/README.md new file mode 100644 index 0000000000..08ed6f804d --- /dev/null +++ b/examples/spo/README.md @@ -0,0 +1,184 @@ +# SPO | Self-Supervised Prompt Optimization <img src="../../docs/resources/spo/SPO-logo.png" width="60" height="60" style="vertical-align: middle; ...
[ "examples/spo/README.md" ]
[ { "comment": "Optional suggestion, add a prompt optimized example(original/optimized ones) to bring a direct feeling.", "path": "examples/spo/README.md", "hunk": "@@ -0,0 +1,97 @@\n+# SPO 🤖 | Self-Supervised Prompt Optimizer\n+\n+An automated prompt engineering tool for Large Language Models (LLMs), de...
true
FoundationAgents/MetaGPT
1,683
comment_to_fix
Implement Self-Supervised Prompt Optimizer (SPO)
full cmd like `python3 -m examples.spo.optimize xx` or `cd examples.spo && xx`
4954729e7564c806d7e58b3ed8b00ef991f889cc
62dda60c126481ff8e0ea35ddbbd90eb6046179f
diff --git a/examples/spo/README.md b/examples/spo/README.md new file mode 100644 index 0000000000..08ed6f804d --- /dev/null +++ b/examples/spo/README.md @@ -0,0 +1,184 @@ +# SPO | Self-Supervised Prompt Optimization <img src="../../docs/resources/spo/SPO-logo.png" width="60" height="60" style="vertical-align: middle; ...
[ "examples/spo/README.md" ]
[ { "comment": "full cmd like `python3 -m examples.spo.optimize xx` or `cd examples.spo && xx`", "path": "examples/spo/README.md", "hunk": "@@ -0,0 +1,97 @@\n+# SPO 🤖 | Self-Supervised Prompt Optimizer\n+\n+An automated prompt engineering tool for Large Language Models (LLMs), designed for universal doma...
true
FoundationAgents/MetaGPT
1,683
comment_to_fix
Implement Self-Supervised Prompt Optimizer (SPO)
.Based -> . Based
4954729e7564c806d7e58b3ed8b00ef991f889cc
62dda60c126481ff8e0ea35ddbbd90eb6046179f
diff --git a/metagpt/ext/spo/prompts/optimize_prompt.py b/metagpt/ext/spo/prompts/optimize_prompt.py new file mode 100644 index 0000000000..f6ca81e334 --- /dev/null +++ b/metagpt/ext/spo/prompts/optimize_prompt.py @@ -0,0 +1,32 @@ +PROMPT_OPTIMIZE_PROMPT = """ +You are building a prompt to address user requirement. Bas...
[ "metagpt/ext/spo/prompts/optimize_prompt.py" ]
[ { "comment": ".Based -> . Based", "path": "metagpt/ext/spo/prompts/optimize_prompt.py", "hunk": "@@ -0,0 +1,32 @@\n+PROMPT_OPTIMIZE_PROMPT = \"\"\"\n+You are building a prompt to address user requirement.Based on the given prompt, ", "resolving_sha": "62dda60c126481ff8e0ea35ddbbd90eb6046179f", "...
true
FoundationAgents/MetaGPT
1,683
comment_to_fix
Implement Self-Supervised Prompt Optimizer (SPO)
Optional suggestion, tree the files structure of round's data/evaluation/prompt utils, and give comments.
4954729e7564c806d7e58b3ed8b00ef991f889cc
62dda60c126481ff8e0ea35ddbbd90eb6046179f
diff --git a/examples/spo/README.md b/examples/spo/README.md new file mode 100644 index 0000000000..08ed6f804d --- /dev/null +++ b/examples/spo/README.md @@ -0,0 +1,184 @@ +# SPO | Self-Supervised Prompt Optimization <img src="../../docs/resources/spo/SPO-logo.png" width="60" height="60" style="vertical-align: middle; ...
[ "examples/spo/README.md" ]
[ { "comment": "Optional suggestion, tree the files structure of round's data/evaluation/prompt utils, and give comments.", "path": "examples/spo/README.md", "hunk": "@@ -0,0 +1,97 @@\n+# SPO 🤖 | Self-Supervised Prompt Optimizer\n+\n+An automated prompt engineering tool for Large Language Models (LLMs), ...
true
FoundationAgents/MetaGPT
1,683
comment_to_fix
Implement Self-Supervised Prompt Optimizer (SPO)
inconsistent with `https://github.com/geekan/MetaGPT/pull/1683/files#diff-28ab12091b7000e78473abee8ff5881aeb9a5e792dead7dfc8cb80cd7451d7c1R11`
4954729e7564c806d7e58b3ed8b00ef991f889cc
62dda60c126481ff8e0ea35ddbbd90eb6046179f
diff --git a/examples/spo/README.md b/examples/spo/README.md new file mode 100644 index 0000000000..08ed6f804d --- /dev/null +++ b/examples/spo/README.md @@ -0,0 +1,184 @@ +# SPO | Self-Supervised Prompt Optimization <img src="../../docs/resources/spo/SPO-logo.png" width="60" height="60" style="vertical-align: middle; ...
[ "examples/spo/README.md" ]
[ { "comment": "inconsistent with `https://github.com/geekan/MetaGPT/pull/1683/files#diff-28ab12091b7000e78473abee8ff5881aeb9a5e792dead7dfc8cb80cd7451d7c1R11`", "path": "examples/spo/README.md", "hunk": "@@ -0,0 +1,180 @@\n+# SPO | Self-Supervised Prompt Optimization <img src=\"../../docs/resources/spo/SP...
true
FoundationAgents/MetaGPT
1,683
comment_to_fix
Implement Self-Supervised Prompt Optimizer (SPO)
should we need to add this?
4954729e7564c806d7e58b3ed8b00ef991f889cc
62dda60c126481ff8e0ea35ddbbd90eb6046179f
diff --git a/metagpt/ext/spo/app.py b/metagpt/ext/spo/app.py new file mode 100644 index 0000000000..963775be4e --- /dev/null +++ b/metagpt/ext/spo/app.py @@ -0,0 +1,283 @@ +import asyncio +from pathlib import Path +from typing import Dict + +import streamlit as st +import yaml +from loguru import logger as _logger + +f...
[ "metagpt/ext/spo/app.py" ]
[ { "comment": "should we need to add this?", "path": "metagpt/ext/spo/app.py", "hunk": "@@ -0,0 +1,233 @@\n+import sys\n+from pathlib import Path\n+\n+import streamlit as st\n+import yaml\n+from loguru import logger as _logger\n+\n+sys.path.append(str(Path(__file__).parents[3]))", "resolving_sha": "6...
true
FoundationAgents/MetaGPT
1,683
comment_to_fix
Implement Self-Supervised Prompt Optimizer (SPO)
typing hint, check pr code.
4954729e7564c806d7e58b3ed8b00ef991f889cc
62dda60c126481ff8e0ea35ddbbd90eb6046179f
diff --git a/metagpt/ext/spo/app.py b/metagpt/ext/spo/app.py new file mode 100644 index 0000000000..963775be4e --- /dev/null +++ b/metagpt/ext/spo/app.py @@ -0,0 +1,283 @@ +import asyncio +from pathlib import Path +from typing import Dict + +import streamlit as st +import yaml +from loguru import logger as _logger + +f...
[ "metagpt/ext/spo/app.py" ]
[ { "comment": "typing hint, check pr code.", "path": "metagpt/ext/spo/app.py", "hunk": "@@ -0,0 +1,233 @@\n+import sys\n+from pathlib import Path\n+\n+import streamlit as st\n+import yaml\n+from loguru import logger as _logger\n+\n+sys.path.append(str(Path(__file__).parents[3]))\n+\n+from metagpt.const i...
true
FoundationAgents/MetaGPT
1,683
comment_to_fix
Implement Self-Supervised Prompt Optimizer (SPO)
Use logger instead of print whenever possible
4954729e7564c806d7e58b3ed8b00ef991f889cc
62dda60c126481ff8e0ea35ddbbd90eb6046179f
diff --git a/metagpt/ext/spo/components/evaluator.py b/metagpt/ext/spo/components/evaluator.py new file mode 100644 index 0000000000..952ef211ba --- /dev/null +++ b/metagpt/ext/spo/components/evaluator.py @@ -0,0 +1,75 @@ +# -*- coding: utf-8 -*- +# @Date : 8/23/2024 10:00 AM +# @Author : all +# @Desc : Evaluati...
[ "metagpt/ext/spo/components/evaluator.py" ]
[ { "comment": "Use logger instead of print whenever possible", "path": "metagpt/ext/spo/components/evaluator.py", "hunk": "@@ -0,0 +1,82 @@\n+# -*- coding: utf-8 -*-\n+# @Date : 8/23/2024 10:00 AM\n+# @Author : all\n+# @Desc : Evaluation for different datasets\n+import asyncio\n+import random\n+fr...
true
FoundationAgents/MetaGPT
1,683
comment_to_fix
Implement Self-Supervised Prompt Optimizer (SPO)
suggest using pathlib
4954729e7564c806d7e58b3ed8b00ef991f889cc
62dda60c126481ff8e0ea35ddbbd90eb6046179f
diff --git a/metagpt/ext/spo/utils/load.py b/metagpt/ext/spo/utils/load.py new file mode 100644 index 0000000000..f8c4f53fce --- /dev/null +++ b/metagpt/ext/spo/utils/load.py @@ -0,0 +1,48 @@ +import random +from pathlib import Path + +import yaml + +FILE_NAME = "" +SAMPLE_K = 3 + + +def set_file_name(name: str): + ...
[ "metagpt/ext/spo/utils/load.py" ]
[ { "comment": "suggest using pathlib", "path": "metagpt/ext/spo/utils/load.py", "hunk": "@@ -0,0 +1,48 @@\n+import os", "resolving_sha": "62dda60c126481ff8e0ea35ddbbd90eb6046179f", "resolving_diff": "diff --git a/metagpt/ext/spo/utils/load.py b/metagpt/ext/spo/utils/load.py\nnew file mode 100644\...
true
FoundationAgents/MetaGPT
1,669
issue_to_patch
Feat tool ut
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> - add tools unit test **Feature Docs** <!-- The RFC, tutorial, or use cases about the feature if it's a pretty big update. If not, there is no need to fill. --> **Infl...
8fe00a17885f77167aab48a5a7714870d378f7dc
ee05b4109771c0391bea9a2264a9917e27856d2f
diff --git a/metagpt/tools/libs/gpt_v_generator.py b/metagpt/tools/libs/gpt_v_generator.py index 62c36b2f88..ea11e71cf0 100644 --- a/metagpt/tools/libs/gpt_v_generator.py +++ b/metagpt/tools/libs/gpt_v_generator.py @@ -37,7 +37,7 @@ class GPTvGenerator: It utilizes a vision model to analyze the layout from an imag...
[ "metagpt/tools/libs/gpt_v_generator.py", "tests/metagpt/tools/libs/test_browser.py", "tests/metagpt/tools/libs/test_cr.py", "tests/metagpt/tools/libs/test_editor.py", "tests/metagpt/tools/libs/test_env.py", "tests/metagpt/tools/libs/test_git.py", "tests/metagpt/tools/libs/test_image_getter.py", "tests...
[]
diff --git a/tests/metagpt/tools/libs/test_browser.py b/tests/metagpt/tools/libs/test_browser.py index ec0b5c848c..dd699e5e98 100644 --- a/tests/metagpt/tools/libs/test_browser.py +++ b/tests/metagpt/tools/libs/test_browser.py @@ -1,90 +1,122 @@ +from unittest.mock import AsyncMock, patch + import pytest +import pytes...
true
FoundationAgents/MetaGPT
1,644
issue_to_patch
pass the reigion name to the boto3.session.client to use region gated…
A small fix to be able to use aws bedrock models that are specific to some region. **bugfix** https://github.com/geekan/MetaGPT/issues/1643
0ab21e3b370a4e6dd8b3e1e7ee012eb592e682af
f439c6717b32e71dc3cef37fd851050453e460f9
diff --git a/metagpt/provider/bedrock_api.py b/metagpt/provider/bedrock_api.py index 4e783f5798..72eefa7e50 100644 --- a/metagpt/provider/bedrock_api.py +++ b/metagpt/provider/bedrock_api.py @@ -38,7 +38,7 @@ def __init_client(self, service_name: Literal["bedrock-runtime", "bedrock"]): "region_name": os.en...
[ "metagpt/provider/bedrock_api.py" ]
[]
true
FoundationAgents/MetaGPT
1,008
issue_to_patch
restore WalmartSalesForecast example.
恢复examples/di/machine_learning.py中沃尔玛销量预测的例子
fd7cc41f73ccdec58d87208fe26cf81d38b848e5
a26c849b5087184cb1902f35ae74d3f5e0e280ec
diff --git a/examples/di/machine_learning.py b/examples/di/machine_learning.py index a587358315..c674e66e87 100644 --- a/examples/di/machine_learning.py +++ b/examples/di/machine_learning.py @@ -2,11 +2,21 @@ from metagpt.roles.di.data_interpreter import DataInterpreter +WINE_REQ = "Run data analysis on sklearn Wi...
[ "examples/di/machine_learning.py" ]
[]
true
FoundationAgents/MetaGPT
1,007
issue_to_patch
restore WalmartSalesForecast example.
恢复examples/di/machine_learning.py中沃尔玛销量预测的例子
72179a0bd455baaec5b49a9621e3665d0f1e50a8
a26c849b5087184cb1902f35ae74d3f5e0e280ec
diff --git a/examples/di/machine_learning.py b/examples/di/machine_learning.py index a587358315..c674e66e87 100644 --- a/examples/di/machine_learning.py +++ b/examples/di/machine_learning.py @@ -2,11 +2,21 @@ from metagpt.roles.di.data_interpreter import DataInterpreter +WINE_REQ = "Run data analysis on sklearn Wi...
[ "examples/di/machine_learning.py" ]
[]
true
FoundationAgents/MetaGPT
980
issue_to_patch
refine parse_outputs in ExecuteNbCode.
重构ExecuteNbCode中输出解析部分代码。实现同时输出代码片段中的正常打印内容和异常内容,示例如下: ```python executor = ExecuteNbCode() code = """ import pandas as pd df = pd.DataFrame({'ID': [1,2,3], 'NAME': ['a', 'b', 'c']}) print(df.columns) # 需要正常输出的内容 print(df['DUMMPY_ID']) # 会发生异常的代码 """ output, is_success = await executor.run(code) assert not ...
543f519deb0de72b77b5fb5318175fb77cea2ec8
980851136fb1e63dc6bd04c33046f68f167b4b6f
diff --git a/metagpt/actions/mi/execute_nb_code.py b/metagpt/actions/mi/execute_nb_code.py index 3a64a8bec1..f6a8defbde 100644 --- a/metagpt/actions/mi/execute_nb_code.py +++ b/metagpt/actions/mi/execute_nb_code.py @@ -9,7 +9,6 @@ import asyncio import base64 import re -import traceback from typing import Literal, ...
[ "metagpt/actions/mi/execute_nb_code.py", "tests/metagpt/actions/mi/test_execute_nb_code.py" ]
[ { "comment": "is_success 是否应该通过output_type判断,而非log关键词?", "path": "metagpt/actions/mi/execute_nb_code.py", "hunk": "@@ -92,27 +91,33 @@ def add_output_to_cell(self, cell: NotebookNode, output: str):\n else:\n cell[\"outputs\"].append(new_output(output_type=\"stream\", name=\"stdout\",...
diff --git a/tests/metagpt/actions/mi/test_execute_nb_code.py b/tests/metagpt/actions/mi/test_execute_nb_code.py index 3059ad3ae1..2ecfbd2a2d 100644 --- a/tests/metagpt/actions/mi/test_execute_nb_code.py +++ b/tests/metagpt/actions/mi/test_execute_nb_code.py @@ -1,6 +1,6 @@ import pytest -from metagpt.actions.mi.exe...
true
FoundationAgents/MetaGPT
980
comment_to_fix
refine parse_outputs in ExecuteNbCode.
is_success 是否应该通过output_type判断,而非log关键词?
543f519deb0de72b77b5fb5318175fb77cea2ec8
980851136fb1e63dc6bd04c33046f68f167b4b6f
diff --git a/metagpt/actions/mi/execute_nb_code.py b/metagpt/actions/mi/execute_nb_code.py index 3a64a8bec1..f6a8defbde 100644 --- a/metagpt/actions/mi/execute_nb_code.py +++ b/metagpt/actions/mi/execute_nb_code.py @@ -9,7 +9,6 @@ import asyncio import base64 import re -import traceback from typing import Literal, ...
[ "metagpt/actions/mi/execute_nb_code.py" ]
[ { "comment": "is_success 是否应该通过output_type判断,而非log关键词?", "path": "metagpt/actions/mi/execute_nb_code.py", "hunk": "@@ -92,27 +91,33 @@ def add_output_to_cell(self, cell: NotebookNode, output: str):\n else:\n cell[\"outputs\"].append(new_output(output_type=\"stream\", name=\"stdout\",...
true
FoundationAgents/MetaGPT
980
comment_to_fix
refine parse_outputs in ExecuteNbCode.
外层逻辑parse_output后还有truncate,是否重复?这次改动可以连同truncate的逻辑一起改,根据是否成功决定前后截断的逻辑不容易理解。尽量简化代码
543f519deb0de72b77b5fb5318175fb77cea2ec8
980851136fb1e63dc6bd04c33046f68f167b4b6f
diff --git a/metagpt/actions/mi/execute_nb_code.py b/metagpt/actions/mi/execute_nb_code.py index 3a64a8bec1..f6a8defbde 100644 --- a/metagpt/actions/mi/execute_nb_code.py +++ b/metagpt/actions/mi/execute_nb_code.py @@ -9,7 +9,6 @@ import asyncio import base64 import re -import traceback from typing import Literal, ...
[ "metagpt/actions/mi/execute_nb_code.py" ]
[ { "comment": "外层逻辑parse_output后还有truncate,是否重复?这次改动可以连同truncate的逻辑一起改,根据是否成功决定前后截断的逻辑不容易理解。尽量简化代码", "path": "metagpt/actions/mi/execute_nb_code.py", "hunk": "@@ -92,27 +91,33 @@ def add_output_to_cell(self, cell: NotebookNode, output: str):\n else:\n cell[\"outputs\"].append(new_outp...
true
FoundationAgents/MetaGPT
980
comment_to_fix
refine parse_outputs in ExecuteNbCode.
1. ioutput 这个命名的含义不是很清楚 2. 97行is_success默认为True,因此几个条件中为True的,不需要重新赋值 3. remove_escape在最后做一次即可,不需要在每个条件中写一次
543f519deb0de72b77b5fb5318175fb77cea2ec8
980851136fb1e63dc6bd04c33046f68f167b4b6f
diff --git a/metagpt/actions/mi/execute_nb_code.py b/metagpt/actions/mi/execute_nb_code.py index 3a64a8bec1..f6a8defbde 100644 --- a/metagpt/actions/mi/execute_nb_code.py +++ b/metagpt/actions/mi/execute_nb_code.py @@ -9,7 +9,6 @@ import asyncio import base64 import re -import traceback from typing import Literal, ...
[ "metagpt/actions/mi/execute_nb_code.py" ]
[ { "comment": "1. ioutput 这个命名的含义不是很清楚\r\n2. 97行is_success默认为True,因此几个条件中为True的,不需要重新赋值\r\n3. remove_escape在最后做一次即可,不需要在每个条件中写一次", "path": "metagpt/actions/mi/execute_nb_code.py", "hunk": "@@ -92,27 +91,46 @@ def add_output_to_cell(self, cell: NotebookNode, output: str):\n else:\n cel...
true
FoundationAgents/MetaGPT
980
comment_to_fix
refine parse_outputs in ExecuteNbCode.
不需要判断keep_len的,xxx如果长度没达到keep_len,[:keep_len] 会取xxx的全部
543f519deb0de72b77b5fb5318175fb77cea2ec8
980851136fb1e63dc6bd04c33046f68f167b4b6f
diff --git a/metagpt/actions/mi/execute_nb_code.py b/metagpt/actions/mi/execute_nb_code.py index 3a64a8bec1..f6a8defbde 100644 --- a/metagpt/actions/mi/execute_nb_code.py +++ b/metagpt/actions/mi/execute_nb_code.py @@ -9,7 +9,6 @@ import asyncio import base64 import re -import traceback from typing import Literal, ...
[ "metagpt/actions/mi/execute_nb_code.py" ]
[ { "comment": "不需要判断keep_len的,xxx如果长度没达到keep_len,[:keep_len] 会取xxx的全部", "path": "metagpt/actions/mi/execute_nb_code.py", "hunk": "@@ -92,27 +91,46 @@ def add_output_to_cell(self, cell: NotebookNode, output: str):\n else:\n cell[\"outputs\"].append(new_output(output_type=\"stream\", na...
true
FoundationAgents/MetaGPT
980
comment_to_fix
refine parse_outputs in ExecuteNbCode.
需要在本次循环的开头给ioutput默认值,否则若上述条件没有命中,则ioutput会未定义。比如包含INFO | metagpt的output
543f519deb0de72b77b5fb5318175fb77cea2ec8
980851136fb1e63dc6bd04c33046f68f167b4b6f
diff --git a/metagpt/actions/mi/execute_nb_code.py b/metagpt/actions/mi/execute_nb_code.py index 3a64a8bec1..f6a8defbde 100644 --- a/metagpt/actions/mi/execute_nb_code.py +++ b/metagpt/actions/mi/execute_nb_code.py @@ -9,7 +9,6 @@ import asyncio import base64 import re -import traceback from typing import Literal, ...
[ "metagpt/actions/mi/execute_nb_code.py" ]
[ { "comment": "需要在本次循环的开头给ioutput默认值,否则若上述条件没有命中,则ioutput会未定义。比如包含INFO | metagpt的output", "path": "metagpt/actions/mi/execute_nb_code.py", "hunk": "@@ -92,27 +91,46 @@ def add_output_to_cell(self, cell: NotebookNode, output: str):\n else:\n cell[\"outputs\"].append(new_output(outp...
true
FoundationAgents/MetaGPT
980
comment_to_fix
refine parse_outputs in ExecuteNbCode.
这一行为什么需要更改呢
543f519deb0de72b77b5fb5318175fb77cea2ec8
980851136fb1e63dc6bd04c33046f68f167b4b6f
diff --git a/metagpt/actions/mi/execute_nb_code.py b/metagpt/actions/mi/execute_nb_code.py index 3a64a8bec1..f6a8defbde 100644 --- a/metagpt/actions/mi/execute_nb_code.py +++ b/metagpt/actions/mi/execute_nb_code.py @@ -9,7 +9,6 @@ import asyncio import base64 import re -import traceback from typing import Literal, ...
[ "metagpt/actions/mi/execute_nb_code.py" ]
[ { "comment": "这一行为什么需要更改呢", "path": "metagpt/actions/mi/execute_nb_code.py", "hunk": "@@ -157,7 +175,7 @@ async def run_cell(self, cell: NotebookNode, cell_index: int) -> Tuple[bool, str\n await self.reset()\n return False, \"DeadKernelError\"\n except Exception:\n- ...
true
FoundationAgents/MetaGPT
977
issue_to_patch
Fix ipykernel error in _plan_and_act of Interpreter.
Fix ipykernel error in _plan_and_act of Role: If you create a lot of ExecuteNbCode instance objects without closing it, you will face the following error: Traceback (most recent call last): File "/anaconda3/lib/python3.9/runpy.py", line 197, in _run_module_as_main File "/opt/anaconda3/lib/python3.9/runpy.py", li...
79262f392e2dd478577640ed04bbc6ee2d2f6cbd
803359a7588f5d955395222368320e450cc27bf8
diff --git a/metagpt/actions/mi/execute_nb_code.py b/metagpt/actions/mi/execute_nb_code.py index 0e4563a375..3a64a8bec1 100644 --- a/metagpt/actions/mi/execute_nb_code.py +++ b/metagpt/actions/mi/execute_nb_code.py @@ -58,7 +58,8 @@ async def build(self): async def terminate(self): """kill NotebookClien...
[ "metagpt/actions/mi/execute_nb_code.py", "metagpt/roles/mi/interpreter.py", "tests/metagpt/actions/mi/test_execute_nb_code.py" ]
[ { "comment": "能否在interpreter的代码里加,比如初始化execute_code时指定结束时间。因为执行代码是解释器的逻辑,不宜放在role内", "path": "metagpt/roles/role.py", "hunk": "@@ -503,6 +503,9 @@ async def _plan_and_act(self) -> Message:\n \n self.rc.memory.add(rsp) # add to persistent memory\n \n+ if hasattr(self, \"execute_code\") an...
diff --git a/tests/metagpt/actions/mi/test_execute_nb_code.py b/tests/metagpt/actions/mi/test_execute_nb_code.py index 59a8140540..3059ad3ae1 100644 --- a/tests/metagpt/actions/mi/test_execute_nb_code.py +++ b/tests/metagpt/actions/mi/test_execute_nb_code.py @@ -104,6 +104,15 @@ async def test_terminate(): time....
true
FoundationAgents/MetaGPT
918
issue_to_patch
Add sales forecast in machine learning
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> - Add `sales forecast` use case in machine learning. - fix pip error.
48f8b7d67d5095f2db895efa9856140fb6d8b36f
041a2d61097bad45b5b7e28a880b37268a285c5a
diff --git a/examples/mi/machine_learning.py b/examples/mi/machine_learning.py index a8ab5051e0..56c68f69ee 100644 --- a/examples/mi/machine_learning.py +++ b/examples/mi/machine_learning.py @@ -2,10 +2,20 @@ from metagpt.roles.mi.interpreter import Interpreter +WINE_REQ = "Run data analysis on sklearn Wine recogn...
[ "examples/mi/machine_learning.py", "metagpt/actions/mi/execute_nb_code.py" ]
[ { "comment": "```\r\n顶格\r\nDATA_DIR = ...\r\nWINE_REQ = ...\r\nSALES_FORECAST_REQ = f\"\"\"\r\n...\r\n\"\"\"\r\n\r\nREQUIREMENTS = {\r\n \"wine\": WINE_REQ,\r\n \"sales_forecast\": SALES_FORECAST_REQ\r\n}\r\n```\r\n觉得这样会看的清楚些,不然这个字典太大了,看不太清楚,而且还带着行首的空格", "path": "examples/mi/machine_learning.py", "hu...
true
FoundationAgents/MetaGPT
918
comment_to_fix
Add sales forecast in machine learning
``` 顶格 DATA_DIR = ... WINE_REQ = ... SALES_FORECAST_REQ = f""" ... """ REQUIREMENTS = { "wine": WINE_REQ, "sales_forecast": SALES_FORECAST_REQ } ``` 觉得这样会看的清楚些,不然这个字典太大了,看不太清楚,而且还带着行首的空格
48f8b7d67d5095f2db895efa9856140fb6d8b36f
041a2d61097bad45b5b7e28a880b37268a285c5a
diff --git a/examples/mi/machine_learning.py b/examples/mi/machine_learning.py index a8ab5051e0..56c68f69ee 100644 --- a/examples/mi/machine_learning.py +++ b/examples/mi/machine_learning.py @@ -2,10 +2,20 @@ from metagpt.roles.mi.interpreter import Interpreter +WINE_REQ = "Run data analysis on sklearn Wine recogn...
[ "examples/mi/machine_learning.py" ]
[ { "comment": "```\r\n顶格\r\nDATA_DIR = ...\r\nWINE_REQ = ...\r\nSALES_FORECAST_REQ = f\"\"\"\r\n...\r\n\"\"\"\r\n\r\nREQUIREMENTS = {\r\n \"wine\": WINE_REQ,\r\n \"sales_forecast\": SALES_FORECAST_REQ\r\n}\r\n```\r\n觉得这样会看的清楚些,不然这个字典太大了,看不太清楚,而且还带着行首的空格", "path": "examples/mi/machine_learning.py", "hu...
true
FoundationAgents/MetaGPT
918
comment_to_fix
Add sales forecast in machine learning
全局变量应该是REQUIREMENTS
48f8b7d67d5095f2db895efa9856140fb6d8b36f
041a2d61097bad45b5b7e28a880b37268a285c5a
diff --git a/examples/mi/machine_learning.py b/examples/mi/machine_learning.py index a8ab5051e0..56c68f69ee 100644 --- a/examples/mi/machine_learning.py +++ b/examples/mi/machine_learning.py @@ -2,10 +2,20 @@ from metagpt.roles.mi.interpreter import Interpreter +WINE_REQ = "Run data analysis on sklearn Wine recogn...
[ "examples/mi/machine_learning.py" ]
[ { "comment": "全局变量应该是REQUIREMENTS", "path": "examples/mi/machine_learning.py", "hunk": "@@ -2,11 +2,37 @@\n \n from metagpt.roles.mi.interpreter import Interpreter\n \n+DATA_DIR = \"examples/mi/data\"\n+WINE_REQ = \"Run data analysis on sklearn Wine recognition dataset, include a plot, and train a model...
true
FoundationAgents/MetaGPT
903
issue_to_patch
set `block on white` style for markdown block.
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> - 为markdown block设置 `block on white` style ,效果如下: - 示例代码为:![image](https://github.com/geekan/MetaGPT/assets/84325228/eb2cac13-914b-40ff-afdd-5d26010377b8) - terminal是黑底时:![...
7f826286303fb419637763abb12078c815578876
e1eb69b07d4cec1b3714279d3fe866f397f7109a
diff --git a/metagpt/actions/mi/execute_nb_code.py b/metagpt/actions/mi/execute_nb_code.py index a8c9c30859..8e8e997b83 100644 --- a/metagpt/actions/mi/execute_nb_code.py +++ b/metagpt/actions/mi/execute_nb_code.py @@ -215,35 +215,38 @@ def truncate(result: str, keep_len: int = 2000, is_success: bool = True): def ...
[ "metagpt/actions/mi/execute_nb_code.py" ]
[ { "comment": "用英文注释", "path": "metagpt/actions/mi/execute_nb_code.py", "hunk": "@@ -226,22 +226,24 @@ def display_markdown(content: str):\n matches = re.finditer(r\"```(.+?)```\", content, re.DOTALL)\n start_index = 0\n content_panels = []\n+ # 文本背景色和文字颜色设置", "resolving_sha": "e1eb69b...
true
FoundationAgents/MetaGPT
903
comment_to_fix
set `block on white` style for markdown block.
用英文注释
7f826286303fb419637763abb12078c815578876
e1eb69b07d4cec1b3714279d3fe866f397f7109a
diff --git a/metagpt/actions/mi/execute_nb_code.py b/metagpt/actions/mi/execute_nb_code.py index a8c9c30859..8e8e997b83 100644 --- a/metagpt/actions/mi/execute_nb_code.py +++ b/metagpt/actions/mi/execute_nb_code.py @@ -215,35 +215,38 @@ def truncate(result: str, keep_len: int = 2000, is_success: bool = True): def ...
[ "metagpt/actions/mi/execute_nb_code.py" ]
[ { "comment": "用英文注释", "path": "metagpt/actions/mi/execute_nb_code.py", "hunk": "@@ -226,22 +226,24 @@ def display_markdown(content: str):\n matches = re.finditer(r\"```(.+?)```\", content, re.DOTALL)\n start_index = 0\n content_panels = []\n+ # 文本背景色和文字颜色设置", "resolving_sha": "e1eb69b...
true
FoundationAgents/MetaGPT
851
issue_to_patch
feat: add parse arguments for openai tool_calls.
**Features** <!-- Clear and direct description of the submit features. --> <!-- If it's a bug fix, please also paste the issue link. --> add parse arguments for openai tool_calls.
1826c27fbd9d865e2ab48c1c7650c0a170ee6709
8537e3b436f296fdb473a054c532a5b5219fb30a
diff --git a/metagpt/provider/openai_api.py b/metagpt/provider/openai_api.py index 63e68c9bdf..a20330919d 100644 --- a/metagpt/provider/openai_api.py +++ b/metagpt/provider/openai_api.py @@ -8,6 +8,7 @@ """ import json +import re from typing import AsyncIterator, Optional, Union from openai import APIConnection...
[ "metagpt/provider/openai_api.py", "tests/metagpt/provider/test_openai.py" ]
[ { "comment": "I don't think that's a good approach. We should either reuse the repair-related method, or we should retry until it succeeds", "path": "metagpt/provider/openai_api.py", "hunk": "@@ -209,7 +234,14 @@ def get_choice_function_arguments(self, rsp: ChatCompletion) -> dict:\n and mes...
diff --git a/tests/metagpt/provider/test_openai.py b/tests/metagpt/provider/test_openai.py index d6aa04c7ba..b9db4dfb6a 100644 --- a/tests/metagpt/provider/test_openai.py +++ b/tests/metagpt/provider/test_openai.py @@ -106,9 +106,11 @@ def test_get_choice_function_arguments_for_aask_code(self, tool_calls_rsp): d...
true
FoundationAgents/MetaGPT
1,098
issue_to_patch
fix issue 868
fix issue https://github.com/geekan/MetaGPT/issues/868; according to https://github.com/pandas-dev/pandas/pull/55008, pd.DataFrame.copy() leaks has been fixed by pandas 2.1.1
4d8234763c2ab6d33ba671e09d416a4d0048454a
d0dc2674cab060da71f6e2289cc0a7ad3d1388e2
diff --git a/requirements.txt b/requirements.txt index 6b23e47b66..aca31ef00e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -24,7 +24,7 @@ numpy==1.24.3 openai==1.6.1 openpyxl beautifulsoup4==4.12.3 -pandas==2.0.3 +pandas==2.1.1 pydantic==2.5.3 #pygame==2.1.3 #pymilvus==2.2.8
[ "requirements.txt" ]
[]
true
FoundationAgents/MetaGPT
1,141
issue_to_patch
add try_except for _plan_and_act in data_interpreter.
在data_interpreter的_plan_and_act中添加异常捕获,并在捕获异常时同样也对ExecuteNbCode执行terminate,有助于减少`[IPKernelApp] WARNING | Parent appears to have exited, shutting down.`的出现,保证ExecuteNbCode占用的资源被及时释放。可以减少此类问题对MG debug的干扰,和此有关的issue有:https://github.com/geekan/MetaGPT/issues/1014, https://github.com/geekan/MetaGPT/issues/1009, https://gith...
61cbee18ae0ea0c20773f7257dc62923d9a42240
5255be144ec668deb70118466c721874e7dada76
diff --git a/metagpt/roles/di/data_interpreter.py b/metagpt/roles/di/data_interpreter.py index a8534b710a..44a85fe065 100644 --- a/metagpt/roles/di/data_interpreter.py +++ b/metagpt/roles/di/data_interpreter.py @@ -86,9 +86,13 @@ async def _act(self) -> Message: return Message(content=code, role="assistant", c...
[ "metagpt/roles/di/data_interpreter.py" ]
[]
true
FoundationAgents/MetaGPT
1,632
issue_to_patch
Add detailed error message for missing model configurations
**Features** - Added command-line flags `--opt_model_name` and `--exec_model_name` to specify models for optimization and execution tasks. - Improved the exception handling with more detailed error messages when the models are not found in the configuration file. **Result** ```bash python -m examples.aflow...
0a5a2357d0fadbefca8392db30391dbc04414a9f
5eb6098e08d81ef9292eef48f0e192d5dd9ffe23
diff --git a/.gitignore b/.gitignore index e3f7c5e868..8413064296 100644 --- a/.gitignore +++ b/.gitignore @@ -192,3 +192,6 @@ cov.xml *.csv metagpt/ext/sela/results/* .chainlit/ + +metagpt/ext/aflow/data +metagpt/ext/aflow/scripts/optimized diff --git a/examples/aflow/optimize.py b/examples/aflow/optimize.py index ...
[ ".gitignore", "examples/aflow/optimize.py" ]
[ { "comment": "为什么要gitnore掉scripts,如果是避免download下来的文件,应该是\r\nmetagpt/ext/aflow/scripts/optimized", "path": ".gitignore", "hunk": "@@ -192,3 +192,6 @@ cov.xml\n *.csv\n metagpt/ext/sela/results/*\n .chainlit/\n+\n+metagpt/ext/aflow/data\n+metagpt/ext/aflow/scripts", "resolving_sha": "5eb6098e08d81ef92...
true
FoundationAgents/MetaGPT
1,632
comment_to_fix
Add detailed error message for missing model configurations
为什么要gitnore掉scripts,如果是避免download下来的文件,应该是 metagpt/ext/aflow/scripts/optimized
0a5a2357d0fadbefca8392db30391dbc04414a9f
5eb6098e08d81ef9292eef48f0e192d5dd9ffe23
diff --git a/.gitignore b/.gitignore index e3f7c5e868..8413064296 100644 --- a/.gitignore +++ b/.gitignore @@ -192,3 +192,6 @@ cov.xml *.csv metagpt/ext/sela/results/* .chainlit/ + +metagpt/ext/aflow/data +metagpt/ext/aflow/scripts/optimized
[ ".gitignore" ]
[ { "comment": "为什么要gitnore掉scripts,如果是避免download下来的文件,应该是\r\nmetagpt/ext/aflow/scripts/optimized", "path": ".gitignore", "hunk": "@@ -192,3 +192,6 @@ cov.xml\n *.csv\n metagpt/ext/sela/results/*\n .chainlit/\n+\n+metagpt/ext/aflow/data\n+metagpt/ext/aflow/scripts", "resolving_sha": "5eb6098e08d81ef92...
true
FoundationAgents/MetaGPT
1,631
issue_to_patch
fixbug: #1623, use a share context to pass the repo path information
**Features** - fixbug: #1623 , use a `context` object to share repo path information between multiple actions within the role. ```log 2024-12-06 15:46:20.433 | INFO | metagpt.const:get_metagpt_package_root:21 - Package root set to /Users/ix/github/bak/MetaGPT 2024-12-06 15:46:32.805 | INFO | metagpt.roles...
68b7dc6c16894a7aea6eedd5a2d9b74c9d2642a0
3aaa8cf30b523960e109f4d7a06691f8e67539cd
diff --git a/examples/use_off_the_shelf_agent.py b/examples/use_off_the_shelf_agent.py index 4445a6c623..7ccf87a2b3 100644 --- a/examples/use_off_the_shelf_agent.py +++ b/examples/use_off_the_shelf_agent.py @@ -5,13 +5,15 @@ """ import asyncio +from metagpt.context import Context from metagpt.logs import logger f...
[ "examples/use_off_the_shelf_agent.py" ]
[]
true
FoundationAgents/MetaGPT
1,619
issue_to_patch
fixbug: #1617 TypeError: AsyncClient.__init__() got an unexpected keyword argument 'proxies'
**Features** - fixbug: #1617
2b160f294936f5b6c29cde63b8e4aa65e9a2ef9f
ee87d87007ea7653d37db9932cc703600b7ca270
diff --git a/requirements.txt b/requirements.txt index 288d50636d..51b3d786bf 100644 --- a/requirements.txt +++ b/requirements.txt @@ -84,3 +84,4 @@ spark_ai_python~=0.3.30 agentops tree_sitter~=0.23.2 tree_sitter_python~=0.23.2 +httpx==0.27.2 \ No newline at end of file
[ "requirements.txt" ]
[]
true
FoundationAgents/OpenManus
1,266
issue_to_patch
Add Jiekou.AI as new LLM provider
**Features** <!-- Describe the features or bug fixes in this PR. For bug fixes, link to the issue. --> - Add new LLM API provider: Jiekou.AI **Influence** Add new LLM API provider config example
37e7f9c8f948ecb02f9f1d7cbf8427f9aeec230d
872d5bb59e8d68c657c61c8bc88dc807700a91bf
diff --git a/config/config.example-model-jiekouai.toml b/config/config.example-model-jiekouai.toml new file mode 100644 index 000000000..ea40f27e9 --- /dev/null +++ b/config/config.example-model-jiekouai.toml @@ -0,0 +1,17 @@ +# Global LLM configuration +[llm] #Jiekou.AI: +api_type = 'jiekou' +model = "claude-sonnet-4-...
[ "config/config.example-model-jiekouai.toml", "config/config.example.toml" ]
[]
true
FoundationAgents/OpenManus
1,262
issue_to_patch
OSPP/feat: Integrate VMind to enable automated insight annotation and enhance report generation pipeline
**Features** <!-- Describe the features or bug fixes in this PR. For bug fixes, link to the issue. --> This pull request introduces a major enhancement to the OpenManus framework by integrating VMind's visualization engine and building a robust, automated report generation pipeline. The key features include: ​- ...
1380c20a5315a754f734286f1c6ca58b4d35368d
224a5748d7c83c74e8d748e86e91ccce7f696a77
diff --git a/.gitignore b/.gitignore index 41dbbf2d8..4501eb521 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,8 @@ data/ # Workspace workspace/ +config/ + ### Python ### # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/.vscode/settings.json b/.vscode/settings.json index d3aa302bb..51129098...
[ ".gitignore", ".vscode/settings.json", "app/agent/data_analysis.py", "app/prompt/visualization.py", "app/tool/chart_visualization/__init__.py", "app/tool/chart_visualization/add_insights.py", "app/tool/chart_visualization/chart_prepare.py", "app/tool/chart_visualization/data_visualization.py", "app/...
[]
diff --git a/app/tool/chart_visualization/test/chart_demo.py b/app/tool/chart_visualization/test/chart_demo.py index d89d993f2..f2f908e73 100644 --- a/app/tool/chart_visualization/test/chart_demo.py +++ b/app/tool/chart_visualization/test/chart_demo.py @@ -1,5 +1,8 @@ import asyncio - +import os +import sys +print(os....
true
FoundationAgents/OpenManus
1,261
issue_to_patch
OSPP/feat: Integrate VMind to enable automated insight annotation and enhance report generation pipeline
**Features** <!-- Describe the features or bug fixes in this PR. For bug fixes, link to the issue. --> This pull request introduces a major enhancement to the OpenManus framework by integrating VMind's visualization engine and building a robust, automated report generation pipeline. The key features include: ​- ...
a058b974002c2b92745c244932e162670feab256
60a58a3ac8245d07d61e4a8c82a1804c3f9cb5bd
[]
[]
true
FoundationAgents/OpenManus
1,260
issue_to_patch
Ospp/chart visualization revert
revert 2 commit
a058b974002c2b92745c244932e162670feab256
63fbd7ebbb5a464c599c549741f880db1d9cc66d
diff --git a/.gitignore b/.gitignore index 4501eb521..41dbbf2d8 100644 --- a/.gitignore +++ b/.gitignore @@ -8,8 +8,6 @@ data/ # Workspace workspace/ -config/ - ### Python ### # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/.vscode/settings.json b/.vscode/settings.json index 511290989..d3aa302b...
[ ".gitignore", ".vscode/settings.json", "app/agent/data_analysis.py", "app/prompt/visualization.py", "app/tool/chart_visualization/__init__.py", "app/tool/chart_visualization/add_insights.py", "app/tool/chart_visualization/chart_prepare.py", "app/tool/chart_visualization/data_visualization.py", "app/...
[]
diff --git a/app/tool/chart_visualization/test/chart_demo.py b/app/tool/chart_visualization/test/chart_demo.py index f2f908e73..d89d993f2 100644 --- a/app/tool/chart_visualization/test/chart_demo.py +++ b/app/tool/chart_visualization/test/chart_demo.py @@ -1,8 +1,5 @@ import asyncio -import os -import sys -print(os.pa...
true
FoundationAgents/OpenManus
1,258
issue_to_patch
Revert "Revert "OSPP/feat: Integrate VMind to enable automated insight annotation and enhance report generation pipeline""
Reverts FoundationAgents/OpenManus#1257
c3f1af3ef8bcaa4ab6efcc2d7f4aa52d8c9308ec
9a8c9dedd739321b982e52a2a3dd73242ffaa67a
diff --git a/.gitignore b/.gitignore index 41dbbf2d8..4501eb521 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,8 @@ data/ # Workspace workspace/ +config/ + ### Python ### # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/.vscode/settings.json b/.vscode/settings.json index d3aa302bb..51129098...
[ ".gitignore", ".vscode/settings.json", "app/agent/data_analysis.py", "app/prompt/visualization.py", "app/tool/chart_visualization/__init__.py", "app/tool/chart_visualization/add_insights.py", "app/tool/chart_visualization/chart_prepare.py", "app/tool/chart_visualization/data_visualization.py", "app/...
[]
diff --git a/app/tool/chart_visualization/test/chart_demo.py b/app/tool/chart_visualization/test/chart_demo.py index d89d993f2..f2f908e73 100644 --- a/app/tool/chart_visualization/test/chart_demo.py +++ b/app/tool/chart_visualization/test/chart_demo.py @@ -1,5 +1,8 @@ import asyncio - +import os +import sys +print(os....
true
FoundationAgents/OpenManus
1,257
issue_to_patch
Revert "OSPP/feat: Integrate VMind to enable automated insight annotation and enhance report generation pipeline"
Reverts FoundationAgents/OpenManus#1238
b2f5e2a29d323066e68b3d7a05446078fb00b7c1
d06fbfb5b37a739af407dba745e77357bf009b9f
diff --git a/.gitignore b/.gitignore index 4501eb521..41dbbf2d8 100644 --- a/.gitignore +++ b/.gitignore @@ -8,8 +8,6 @@ data/ # Workspace workspace/ -config/ - ### Python ### # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/.vscode/settings.json b/.vscode/settings.json index 511290989..d3aa302b...
[ ".gitignore", ".vscode/settings.json", "app/agent/data_analysis.py", "app/prompt/visualization.py", "app/tool/chart_visualization/__init__.py", "app/tool/chart_visualization/add_insights.py", "app/tool/chart_visualization/chart_prepare.py", "app/tool/chart_visualization/data_visualization.py", "app/...
[]
diff --git a/app/tool/chart_visualization/test/chart_demo.py b/app/tool/chart_visualization/test/chart_demo.py index f2f908e73..d89d993f2 100644 --- a/app/tool/chart_visualization/test/chart_demo.py +++ b/app/tool/chart_visualization/test/chart_demo.py @@ -1,8 +1,5 @@ import asyncio -import os -import sys -print(os.pa...
true
FoundationAgents/OpenManus
1,238
issue_to_patch
OSPP/feat: Integrate VMind to enable automated insight annotation and enhance report generation pipeline
**Features** <!-- Describe the features or bug fixes in this PR. For bug fixes, link to the issue. --> This pull request introduces a major enhancement to the OpenManus framework by integrating VMind's visualization engine and building a robust, automated report generation pipeline. The key features include: ​- ...
f21c7a2e5547cd9d6bdae682e6bf858da3d1266f
b56a8cbac11379fbc0e340b7c5c0c071e07cd8df
diff --git a/.github/ISSUE_TEMPLATE/config.yaml b/.github/ISSUE_TEMPLATE/config.yaml deleted file mode 100644 index 892abfb46..000000000 --- a/.github/ISSUE_TEMPLATE/config.yaml +++ /dev/null @@ -1,4 +0,0 @@ -blank_issues_enabled: false -contact_links: - - name: "📑 Read online docs" - about: Find tutorials, use ca...
[ ".github/ISSUE_TEMPLATE/config.yaml", ".github/ISSUE_TEMPLATE/config.yml", ".github/ISSUE_TEMPLATE/request_new_features.md", ".github/ISSUE_TEMPLATE/request_new_features.yaml", ".github/ISSUE_TEMPLATE/show_me_the_bug.md", ".github/ISSUE_TEMPLATE/show_me_the_bug.yaml", ".github/workflows/pr-autodiff.yaml...
[]
diff --git a/app/tool/chart_visualization/test/chart_demo.py b/app/tool/chart_visualization/test/chart_demo.py new file mode 100644 index 000000000..f2f908e73 --- /dev/null +++ b/app/tool/chart_visualization/test/chart_demo.py @@ -0,0 +1,108 @@ +import asyncio +import os +import sys +print(os.path.dirname(os.path.dirna...
true
FoundationAgents/OpenManus
1,256
issue_to_patch
Merge pull request #861 from 666haiwen/feat/chart-visualization
67d6c1c00d10d34f43a38894df871ccc796a4bd4
f21c7a2e5547cd9d6bdae682e6bf858da3d1266f
[]
[]
true
FoundationAgents/OpenManus
1,206
issue_to_patch
Feat: support 4 sandbox tools by using daytona
# Agent with Daytona sandbox ## Prerequisites - conda activate 'Your OpenManus python env' - pip install daytona==0.21.8 structlog==25.4.0 ## Setup & Running 1. daytona config : ```bash cd OpenManus cp config/config.example-daytona.toml config/config.toml ``` 2. get daytona apikey : goto...
20c7207bda3c9ea21723919c728b4be1f1265843
efccc9fcc9186bdc529a01116223b286cefe722b
diff --git a/app/agent/browser.py b/app/agent/browser.py index 92d8ea62f..3f25c4539 100644 --- a/app/agent/browser.py +++ b/app/agent/browser.py @@ -8,6 +8,7 @@ from app.prompt.browser import NEXT_STEP_PROMPT, SYSTEM_PROMPT from app.schema import Message, ToolChoice from app.tool import BrowserUseTool, Terminate, To...
[ "app/agent/browser.py", "app/agent/sandbox_agent.py", "app/config.py", "app/daytona/README.md", "app/daytona/sandbox.py", "app/daytona/tool_base.py", "app/tool/__init__.py", "app/tool/base.py", "app/tool/computer_use_tool.py", "app/tool/crawl4ai.py", "app/tool/sandbox/sb_browser_tool.py", "app...
[]
true
FoundationAgents/OpenManus
1,197
issue_to_patch
add Crawl4aiTool
be1e22c79c39f88ad5f7844e2efdc761eadc2719
08cd0443b6e0927f26ddf12996f8f59709a94c9d
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3b6c1ba46..84be37205 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,24 +16,22 @@ repos: rev: v2.0.1 hooks: - id: autoflake - args: [ - --remove-all-unused-imports, - --ignore-init-mo...
[ ".pre-commit-config.yaml", "app/tool/__init__.py", "app/tool/crawl4ai.py", "requirements.txt" ]
[]
true
FoundationAgents/OpenManus
1,101
issue_to_patch
feat:Support A2A protocol
**Features** <!-- Describe the features or bug fixes in this PR. For bug fixes, link to the issue. --> OpenManus run as A2A protocol Server **Feature Docs** This is an experimental integration of the A2A protocol (https://google.github.io/A2A/#/documentation) with OpenManus, currently supporting only non-strea...
36713cda624b33aa055d5bcc4ee24d3d05578c29
c37a145edccb1fd8e440378c3eef6b0da5773d90
diff --git a/protocol/a2a/__init__.py b/protocol/a2a/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/protocol/a2a/app/README.md b/protocol/a2a/app/README.md new file mode 100644 index 000000000..c5ee04a04 --- /dev/null +++ b/protocol/a2a/app/README.md @@ -0,0 +1,195 @@ +# Manus Agent with A2A P...
[ "protocol/a2a/__init__.py", "protocol/a2a/app/README.md", "protocol/a2a/app/README_zh.md", "protocol/a2a/app/__init__.py", "protocol/a2a/app/agent.py", "protocol/a2a/app/agent_executor.py", "protocol/a2a/app/main.py" ]
[ { "comment": "The first thing is, i think we can get a new folder called protocol, for A2A, its path should be protocols/a2a/ as root path.\r\n\r\nand then, why the folder name is Manus? maybe a general name will be better. ", "path": "A2A/Manus/README.md", "hunk": "@@ -0,0 +1,194 @@\n+# Manus Agent wit...
true
FoundationAgents/OpenManus
1,101
comment_to_fix
feat:Support A2A protocol
Use argparse instead
36713cda624b33aa055d5bcc4ee24d3d05578c29
c37a145edccb1fd8e440378c3eef6b0da5773d90
diff --git a/protocol/a2a/app/main.py b/protocol/a2a/app/main.py new file mode 100644 index 000000000..dd09f23d3 --- /dev/null +++ b/protocol/a2a/app/main.py @@ -0,0 +1,134 @@ +import httpx +import argparse + +from a2a.server.apps import A2AStarletteApplication +from a2a.server.request_handlers import DefaultRequestHan...
[ "protocol/a2a/app/main.py" ]
[ { "comment": "Use argparse instead", "path": "protocol/a2a/app/main.py", "hunk": "@@ -0,0 +1,118 @@\n+import httpx\n+\n+from a2a.server.apps import A2AStarletteApplication\n+from a2a.server.request_handlers import DefaultRequestHandler\n+from a2a.server.tasks import InMemoryTaskStore, InMemoryPushNotifi...
true