🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
feat: + annotations
莘权 马946e6fa8b39d
diff --git a/metagpt/const.py b/metagpt/const.pyindex 8c1460a02..9e7462da6 100644--- a/metagpt/const.py+++ b/metagpt/const.py@@ -4,7 +4,7 @@@Time : 2023/5/1 11:59@Author : alexanderwu@File : const.py'-@Modified By: mashenquan, 2023/8/28. Add 'OPTIONS', 'DEFAULT_LANGUAGE', 'DEFAULT_MAX_TOKENS'+@Modified By: mashenquan, 2023/8/28. Add 'OPTIONS', 'DEFAULT_LANGUAGE', 'DEFAULT_MAX_TOKENS'..."""import contextvarsfrom pathlib import Path@@ -40,4 +40,7 @@ MEM_TTL = 24 * 30 * 3600OPTIONS = contextvars.ContextVar("OPTIONS")DEFAULT_LANGUAGE = "English"-DEFAULT_MAX_TOKENS = 1500\ No newline at end of file+DEFAULT_MAX_TOKENS = 1500+COMMAND_TOKENS = 500+BRAIN_MEMORY = "BRAIN_MEMORY"+SKILL_PATH = "SKILL_PATH"\ No newline at end of filediff --git a/metagpt/roles/assistant.py b/metagpt/roles/assistant.pyindex c8a786b41..7d1517d7e 100644--- a/metagpt/roles/assistant.py+++ b/metagpt/roles/assistant.py@@ -21,6 +21,7 @@ from metagpt.actions import ActionOutputfrom metagpt.actions.skill_action import SkillAction, ArgumentsParingActionfrom metagpt.actions.talk_action import TalkActionfrom metagpt.config import Config+from metagpt.const import BRAIN_MEMORY, SKILL_PATHfrom metagpt.learn.skill_loader import SkillLoaderfrom metagpt.logs import loggerfrom metagpt.memory.brain_memory import BrainMemory, MessageType@@ -28,11 +29,6 @@ from metagpt.provider.openai_api import CostManagerfrom metagpt.roles import Rolefrom metagpt.schema import Message-DEFAULT_MAX_TOKENS = 1500-COMMAND_TOKENS = 500-BRAIN_MEMORY = "BRAIN_MEMORY"-SKILL_PATH = "SKILL_PATH"-class Assistant(Role):"""Assistant for solving common issues."""