feat(core): Support export messages (#2802)

This commit is contained in:
Fangyin Cheng
2025-06-27 18:06:20 +08:00
committed by GitHub
parent f423b1fb2c
commit 1efcd1b887
4 changed files with 116 additions and 3 deletions

View File

@@ -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):