AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Check for inline code blocks in agent step
hunteraraujo27ff99a9a5da
diff --git a/frontend/lib/views/chat/agent_message_tile.dart b/frontend/lib/views/chat/agent_message_tile.dartindex 91226f71c3..4639b76bd4 100644--- a/frontend/lib/views/chat/agent_message_tile.dart+++ b/frontend/lib/views/chat/agent_message_tile.dart@@ -28,13 +28,14 @@ class _AgentMessageTileState extends State<AgentMessageTile> {int artifactsCount = widget.chat.artifacts.length;bool containsMarkdown(String text) {- // Regular expression to detect Markdown patterns like headers, bold, links, etc.+ // Regular expression to detect Markdown patterns including code blocks.final RegExp markdownPattern = RegExp(r'(?:\*\*|__).*?(?:\*\*|__)|' + // Boldr'(?:\*|_).*?(?:\*|_)|' + // Italicr'\[.*?\]\(.*?\)|' + // Linksr'!\[.*?\]\(.*?\)|' + // Images- r'#{1,6}.*', // Headers+ r'#{1,6}.*|' + // Headers+ r'`.*?`', // Inline Code BlocksmultiLine: true,caseSensitive: false,);