mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
default tool_config and module_name
This commit is contained in:
parent
17aeb9f825
commit
9e0b9745be
1 changed files with 3 additions and 4 deletions
|
|
@ -180,6 +180,9 @@ class WriteCodeWithTools(BaseWriteAnalysisCode):
|
|||
code_context = [remove_comments(task.code) for task in finished_tasks]
|
||||
code_context = "\n\n".join(code_context)
|
||||
|
||||
tool_catalog = {}
|
||||
module_name = ""
|
||||
|
||||
if len(available_tools) > 0:
|
||||
available_tools = {k: v["description"] for k, v in available_tools.items()}
|
||||
|
||||
|
|
@ -191,10 +194,6 @@ class WriteCodeWithTools(BaseWriteAnalysisCode):
|
|||
|
||||
module_name = TASK_MODULE_MAP[task_type]
|
||||
|
||||
else:
|
||||
tool_catalog = {}
|
||||
module_name = ""
|
||||
|
||||
tools_instruction = TOOL_USAGE_PROMPT.format(
|
||||
special_prompt=special_prompt, module_name=module_name, tool_catalog=tool_catalog
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue