diff --git a/README.md b/README.md index edb2066a3..44fcfab18 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,8 @@ # MetaGPT: The Multi-Agent Framework

## News +🚀 Mar. 29, 2024: [v0.8.0](https://github.com/geekan/MetaGPT/releases/tag/v0.8.0) released. Now you can use Data Interpreter via pypi package import. Meanwhile, we integrated RAG module and supported multiple new LLMs. + 🚀 Mar. 14, 2024: Our **Data Interpreter** paper is on [arxiv](https://arxiv.org/abs/2402.18679). Check the [example](https://docs.deepwisdom.ai/main/en/DataInterpreter/) and [code](https://github.com/geekan/MetaGPT/tree/main/examples/di)! 🚀 Feb. 08, 2024: [v0.7.0](https://github.com/geekan/MetaGPT/releases/tag/v0.7.0) released, supporting assigning different LLMs to different Roles. We also introduced [Data Interpreter](https://github.com/geekan/MetaGPT/blob/main/examples/di/README.md), a powerful agent capable of solving a wide range of real-world problems. @@ -145,10 +147,13 @@ ## Tutorial ## Support -### Discard Join US -📢 Join Our [Discord Channel](https://discord.gg/ZRHeExS6xv)! +### Discord Join US -Looking forward to seeing you there! 🎉 +📢 Join Our [Discord Channel](https://discord.gg/ZRHeExS6xv)! Looking forward to seeing you there! 🎉 + +### Contributor form + +📝 [Fill out the form](https://airtable.com/appInfdG0eJ9J4NNL/pagK3Fh1sGclBvVkV/form) to become a contributor. We are looking forward to your participation! ### Contact Information diff --git a/examples/build_customized_agent.py b/examples/build_customized_agent.py index cfe264b47..7dab4833d 100644 --- a/examples/build_customized_agent.py +++ b/examples/build_customized_agent.py @@ -17,7 +17,7 @@ from metagpt.schema import Message class SimpleWriteCode(Action): PROMPT_TEMPLATE: str = """ - Write a python function that can {instruction} and provide two runnnable test cases. + Write a python function that can {instruction} and provide two runnable test cases. Return ```python your_code_here ``` with NO other texts, your code: """ diff --git a/metagpt/roles/di/data_interpreter.py b/metagpt/roles/di/data_interpreter.py index c78bc7e1a..e9045f0b7 100644 --- a/metagpt/roles/di/data_interpreter.py +++ b/metagpt/roles/di/data_interpreter.py @@ -86,9 +86,13 @@ class DataInterpreter(Role): return Message(content=code, role="assistant", cause_by=WriteAnalysisCode) async def _plan_and_act(self) -> Message: - rsp = await super()._plan_and_act() - await self.execute_code.terminate() - return rsp + try: + rsp = await super()._plan_and_act() + await self.execute_code.terminate() + return rsp + except Exception as e: + await self.execute_code.terminate() + raise e async def _act_on_task(self, current_task: Task) -> TaskResult: """Useful in 'plan_and_act' mode. Wrap the output in a TaskResult for review and confirmation.""" diff --git a/setup.py b/setup.py index 8e1ad71c7..382e13a47 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ extras_require = { "selenium": ["selenium>4", "webdriver_manager", "beautifulsoup4"], "search-google": ["google-api-python-client==2.94.0"], "search-ddg": ["duckduckgo-search~=4.1.1"], - "ocr": ["paddlepaddle==2.4.2", "paddleocr>=2.0.1", "tabulate==0.9.0"], + "ocr": ["paddlepaddle==2.4.2", "paddleocr~=2.7.3", "tabulate==0.9.0"], "rag": [ "llama-index-core==0.10.15", "llama-index-embeddings-azure-openai==0.1.6", @@ -67,7 +67,7 @@ extras_require["dev"] = (["pylint~=3.0.3", "black~=23.3.0", "isort~=5.12.0", "pr setup( name="metagpt", - version="0.7.6", + version="0.8.0", description="The Multi-Agent Framework", long_description=long_description, long_description_content_type="text/markdown",