utils
autogen.agentchat.utils.parse_tags_from_content
parse_tags_from_content
Parses HTML style tags from message contents.
The parsing is done by looking for patterns in the text that match the format of HTML tags. The tag to be parsed is specified as an argument to the function. The function looks for this tag in the text and extracts its content. The content of a tag is everything that is inside the tag, between the opening and closing angle brackets. The content can be a single string or a set of attribute-value pairs.
Examples:
<img http://example.com/image.png> -> [\{"tag": "img", "attr": \{"src": "http://example.com/image.png"}, "match": re.Match}]
text="Hello I'm a robot" prompt="whisper"> ->