feat(agent):Agent supports conversation context (#2230)

Co-authored-by: Fangyin Cheng <staneyffer@gmail.com>
This commit is contained in:
明天
2024-12-20 16:50:08 +08:00
committed by GitHub
parent 16c5233a6d
commit 2b4597e6a7
13 changed files with 164 additions and 18 deletions

View File

@@ -361,6 +361,13 @@ class Config(metaclass=Singleton):
)
self.NOTE_BOOK_ROOT: str = os.getenv("NOTE_BOOK_ROOT", os.path.expanduser("~"))
self.MESSAGES_KEEP_START_ROUNDS: int = int(
os.getenv("MESSAGES_KEEP_START_ROUNDS", 0)
)
self.MESSAGES_KEEP_END_ROUNDS: int = int(
os.getenv("MESSAGES_KEEP_END_ROUNDS", 2)
)
@property
def local_db_manager(self) -> "ConnectorManager":
from dbgpt.datasource.manages import ConnectorManager