mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-07 12:00:46 +00:00
feat(core): Support export messages (#2802)
This commit is contained in:
@@ -7,12 +7,12 @@ class VisThinking(Vis):
|
||||
@classmethod
|
||||
async def build_message(cls, message: str) -> str:
|
||||
vis = VisThinking()
|
||||
return f"```{vis.vis_tag()}\n{message}\n```"
|
||||
return f"``````{vis.vis_tag()}\n{message}\n``````"
|
||||
|
||||
def sync_display(self, **kwargs) -> str:
|
||||
"""Display the content using the vis protocol."""
|
||||
content = kwargs.get("content")
|
||||
return f"```{self.vis_tag()}\n{content}\n```"
|
||||
return f"``````{self.vis_tag()}\n{content}\n``````"
|
||||
|
||||
@classmethod
|
||||
def vis_tag(cls):
|
||||
|
Reference in New Issue
Block a user