mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-04 02:25:08 +00:00
feat(agent): Multi agents v0.1 (#1044)
Co-authored-by: qidanrui <qidanrui@gmail.com> Co-authored-by: csunny <cfqsunny@163.com> Co-authored-by: Fangyin Cheng <staneyffer@gmail.com>
This commit is contained in:
@@ -7,7 +7,7 @@ from dbgpt.agent.memory.gpts_memory import (
|
||||
GptsPlansMemory,
|
||||
)
|
||||
|
||||
from ..db.gpts_messages_db import GptsMessagesDao, GptsMessagesEntity
|
||||
from ..db.gpts_messages_db import GptsMessagesDao
|
||||
from ..db.gpts_plans_db import GptsPlansDao, GptsPlansEntity
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ class MetaDbGptsPlansMemory(GptsPlansMemory):
|
||||
def __init__(self):
|
||||
self.gpts_plan = GptsPlansDao()
|
||||
|
||||
def batch_save(self, plans: list[GptsPlan]):
|
||||
def batch_save(self, plans: List[GptsPlan]):
|
||||
self.gpts_plan.batch_save([item.to_dict() for item in plans])
|
||||
|
||||
def get_by_conv_id(self, conv_id: str) -> List[GptsPlan]:
|
||||
|
Reference in New Issue
Block a user