mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-11 15:15:18 +02:00
update: add refactor code for make_tools.
This commit is contained in:
parent
1265d3d924
commit
ab020adec4
1 changed files with 4 additions and 2 deletions
|
|
@ -11,8 +11,10 @@ from metagpt.actions.write_analysis_code import WriteCodeByGenerate
|
|||
|
||||
class MakeTools(WriteCodeByGenerate):
|
||||
DEFAULT_SYSTEM_MSG = """Please Create a General Function Code startswith `def` from any codes you got.\n
|
||||
**Notice:The import statement must be written after `def`, it is very important for you.
|
||||
Reflect on whether it meets the requirements of function. Must Write example code, and we will execute the example code.**
|
||||
**Notice:1. The import statement must be written after `def`, it is very important for you.
|
||||
2. Reflect on whether it meets the requirements of function.
|
||||
3. Refactor your code with the best performance when dealing with big data.
|
||||
4. Must Write example code, and it could be execute in the user machine.**
|
||||
"""
|
||||
|
||||
def __init__(self, name: str = '', context=None, llm=None, workspace: str = None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue