public sealed class AnnotatedString : IMessage<AnnotatedString>, IEquatable<AnnotatedString>, IDeepCloneable<AnnotatedString>, IBufferMessage, IMessage
Describes string annotation from both semantic and formatting perspectives.
Example:
User Query:
top countries by population in Africa
0 4 14 17 28 31 37
Table Data:
"country" - dimension
"population" - metric
"Africa" - value in the "continent" column
text_formatted = "top countries by population in Africa"
html_formatted =
"top <b>countries</b> by <b>population</b> in <i>Africa</i>"
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eAnnotatedString\u003c/code\u003e class describes string annotations, encompassing both semantic and formatting aspects, as seen in user queries and table data examples.\u003c/p\u003e\n"],["\u003cp\u003eIt provides three main properties: \u003ccode\u003eHtmlFormatted\u003c/code\u003e for the HTML version, \u003ccode\u003eMarkups\u003c/code\u003e for semantic annotations, and \u003ccode\u003eTextFormatted\u003c/code\u003e for the plain text version of the string.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e and inherits from the \u003ccode\u003eObject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available, a default \u003ccode\u003eAnnotatedString()\u003c/code\u003e and one that takes another \u003ccode\u003eAnnotatedString\u003c/code\u003e object as a parameter, allowing for cloning.\u003c/p\u003e\n"]]],[],null,[]]