mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-06 11:31:12 +00:00
feat(agent):support chat agent scene use dbgpts (#1075)
This commit is contained in:
@@ -6,7 +6,6 @@ from dbgpt.util.json_utils import serialize
|
||||
|
||||
|
||||
class Vis:
|
||||
@abstractmethod
|
||||
async def generate_param(self, **kwargs) -> Optional[str]:
|
||||
"""
|
||||
Display corresponding content using vis protocol
|
||||
@@ -16,6 +15,7 @@ class Vis:
|
||||
Returns:
|
||||
vis protocol text
|
||||
"""
|
||||
return kwargs["content"]
|
||||
|
||||
async def disply(self, **kwargs) -> Optional[str]:
|
||||
return f"```{self.vis_tag()}\n{json.dumps(await self.generate_param(**kwargs), default=serialize, ensure_ascii=False)}\n```"
|
||||
|
Reference in New Issue
Block a user