Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

Merge branch 'mgx_ops' into 'data_analyst_ldy'

李丹阳cbe9c9f87216
diff --cc metagpt/prompts/di/data_analyst.py
index 27b247fb3,d26f2bf09..08b8d0df8
--- a/metagpt/prompts/di/data_analyst.py
+++ b/metagpt/prompts/di/data_analyst.py
@@@ -40,11 -40,5 +40,12 @@@ Some text indicating your thoughts, suc
...
]
```
+ Notice: your output JSON data section must start with **```json [**
"""
+
+BROWSER_INSTRUCTION = """
+4. Carefully choose to use or not use the browser tool to assist you in web tasks.
+ - When no click action is required, no need to use the browser tool to navigate to the webpage before scraping.
+ - If you need detail HTML content, write code to get it but not to use the browser tool.
+ - Make sure the command_name are certainly in Available Commands when you use the browser tool.
+"""
diff --cc metagpt/roles/di/role_zero.py
index 01f792ed0,c6ed6f6c6..a52d72c8e
--- a/metagpt/roles/di/role_zero.py
+++ b/metagpt/roles/di/role_zero.py
@@@ -4,9 -4,8 +4,9 @@@ import inspec
import json
import re
import traceback
- from typing import Callable, Literal, Tuple
+ from typing import Callable, Dict, List, Literal, Tuple
+from metagpt.strategy.task_type import TaskType
from pydantic import model_validator
from metagpt.actions import Action