Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
Merge branch 'main' into feature/global-logging
Max Blackmer10865a4cb8d7
diff --cc memgpt/config.pyindex ced041bf6,ff6bb7c42..57e324e78--- a/memgpt/config.py+++ b/memgpt/config.py@@@ -10,9 -9,8 +10,9 @@@ import memgpimport memgpt.utils as utilsfrom memgpt.utils import printd, get_schema_difffrom memgpt.functions.functions import load_all_function_sets- from memgpt.constants import MEMGPT_DIR, LLM_MAX_TOKENS, DEFAULT_HUMAN, DEFAULT_PERSONA+- from memgpt.presets.presets import DEFAULT_PRESET+ from memgpt.constants import MEMGPT_DIR, LLM_MAX_TOKENS, DEFAULT_HUMAN, DEFAULT_PERSONA, DEFAULT_PRESET+ from memgpt.data_types import AgentState, User, LLMConfig, EmbeddingConfig# helper functions for writing to configsdiff --cc memgpt/constants.pyindex d0f50a7f5,a58064323..58778c715--- a/memgpt/constants.py+++ b/memgpt/constants.py@@@ -6,21 -5,8 +6,22 @@@ MEMGPT_DIR = os.path.join(os.path.expanDEFAULT_MEMGPT_MODEL = "gpt-4"DEFAULT_PERSONA = "sam_pov"DEFAULT_HUMAN = "basic"+ DEFAULT_PRESET = "memgpt_chat"+# Used to isolate MemGPT logger instance from Dependant Libraries logging+LOGGER_NAME = "MemGPT"+LOGGER_DEFAULT_LEVEL = CRITICAL+# Where to store the logs+LOGGER_DIR = os.path.join(MEMGPT_DIR, "logs")+# filename of the log+LOGGER_FILENAME = "MemGPT.log"+# Number of log files to rotate+LOGGER_FILE_BACKUP_COUNT = 3+# Max Log file size in bytes+LOGGER_MAX_FILE_SIZE = 10485760+# LOGGER_LOG_LEVEL is use to convert Text to Logging level value for logging mostly for Cli input to setting level+LOGGER_LOG_LEVELS = {"CRITICAL": CRITICAL, "ERROR": ERROR, "WARN": WARN, "WARNING": WARNING, "INFO": INFO, "DEBUG": DEBUG, "NOTSET": NOTSET}+FIRST_MESSAGE_ATTEMPTS = 10INITIAL_BOOT_MESSAGE = "Boot sequence complete. Persona activated."diff --cc memgpt/main.pyindex 245e6dcb6,44dd14569..c7e1bc259--- a/memgpt/main.py+++ b/memgpt/main.py@@@ -17,8 -17,8 +17,9 @@@ from prettytable import PrettyTablconsole = Console()+from memgpt.log import loggerfrom memgpt.interface import CLIInterface as interface # for printing to terminal+ from memgpt.config import MemGPTConfigimport memgpt.agent as agentimport memgpt.system as systemimport memgpt.constants as constants