@microsoft/agents-hosting-dialogs 0.2.14 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/dist/src/agentComponent.d.ts +18 -4
  2. package/dist/src/agentComponent.js +12 -4
  3. package/dist/src/agentComponent.js.map +1 -1
  4. package/dist/src/agentStateSet.d.ts +2 -2
  5. package/dist/src/agentStateSet.js +2 -2
  6. package/dist/src/choices/choice.d.ts +9 -0
  7. package/dist/src/choices/findChoices.d.ts +12 -0
  8. package/dist/src/choices/findChoices.js.map +1 -1
  9. package/dist/src/choices/findValues.d.ts +27 -0
  10. package/dist/src/choices/findValues.js.map +1 -1
  11. package/dist/src/choices/modelResult.d.ts +20 -0
  12. package/dist/src/choices/modelResult.js +4 -0
  13. package/dist/src/choices/modelResult.js.map +1 -1
  14. package/dist/src/choices/tokenizer.d.ts +15 -0
  15. package/dist/src/choices/tokenizer.js +4 -0
  16. package/dist/src/choices/tokenizer.js.map +1 -1
  17. package/dist/src/configurable.d.ts +1 -0
  18. package/dist/src/configurable.js +1 -0
  19. package/dist/src/configurable.js.map +1 -1
  20. package/dist/src/converter.d.ts +10 -1
  21. package/dist/src/dialog.d.ts +14 -13
  22. package/dist/src/dialog.js +11 -10
  23. package/dist/src/dialog.js.map +1 -1
  24. package/dist/src/dialogContext.d.ts +34 -35
  25. package/dist/src/dialogContext.js +24 -25
  26. package/dist/src/dialogContext.js.map +1 -1
  27. package/dist/src/dialogEvent.d.ts +3 -0
  28. package/dist/src/dialogEvents.d.ts +20 -0
  29. package/dist/src/dialogEvents.js +20 -0
  30. package/dist/src/dialogEvents.js.map +1 -1
  31. package/dist/src/dialogHelper.js +14 -0
  32. package/dist/src/dialogHelper.js.map +1 -1
  33. package/dist/src/dialogManager.d.ts +0 -1
  34. package/dist/src/dialogManager.js +0 -1
  35. package/dist/src/dialogManager.js.map +1 -1
  36. package/dist/src/dialogSet.d.ts +5 -9
  37. package/dist/src/dialogSet.js +5 -9
  38. package/dist/src/dialogSet.js.map +1 -1
  39. package/dist/src/dialogTurnStateConstants.d.ts +13 -1
  40. package/dist/src/dialogTurnStateConstants.js +13 -1
  41. package/dist/src/dialogTurnStateConstants.js.map +1 -1
  42. package/dist/src/intentScore.d.ts +6 -0
  43. package/dist/src/memory/dialogPath.d.ts +40 -8
  44. package/dist/src/memory/dialogPath.js +32 -8
  45. package/dist/src/memory/dialogPath.js.map +1 -1
  46. package/dist/src/memory/dialogStateManager.d.ts +2 -2
  47. package/dist/src/memory/dialogStateManager.js +2 -2
  48. package/dist/src/memory/pathResolvers/aliasPathResolver.d.ts +4 -0
  49. package/dist/src/memory/pathResolvers/aliasPathResolver.js +4 -0
  50. package/dist/src/memory/pathResolvers/aliasPathResolver.js.map +1 -1
  51. package/dist/src/memory/pathResolvers/atAtPathResolver.d.ts +6 -2
  52. package/dist/src/memory/pathResolvers/atAtPathResolver.js +6 -2
  53. package/dist/src/memory/pathResolvers/atAtPathResolver.js.map +1 -1
  54. package/dist/src/memory/pathResolvers/atPathResolver.d.ts +13 -7
  55. package/dist/src/memory/pathResolvers/atPathResolver.js +13 -7
  56. package/dist/src/memory/pathResolvers/atPathResolver.js.map +1 -1
  57. package/dist/src/memory/pathResolvers/dollarPathResolver.d.ts +7 -2
  58. package/dist/src/memory/pathResolvers/dollarPathResolver.js +7 -2
  59. package/dist/src/memory/pathResolvers/dollarPathResolver.js.map +1 -1
  60. package/dist/src/memory/pathResolvers/hashPathResolver.d.ts +7 -2
  61. package/dist/src/memory/pathResolvers/hashPathResolver.js +7 -2
  62. package/dist/src/memory/pathResolvers/hashPathResolver.js.map +1 -1
  63. package/dist/src/memory/pathResolvers/pathResolver.d.ts +10 -5
  64. package/dist/src/memory/pathResolvers/percentPathResolver.d.ts +7 -2
  65. package/dist/src/memory/pathResolvers/percentPathResolver.js +7 -2
  66. package/dist/src/memory/pathResolvers/percentPathResolver.js.map +1 -1
  67. package/dist/src/memory/scopePath.d.ts +27 -0
  68. package/dist/src/memory/scopePath.js +27 -0
  69. package/dist/src/memory/scopePath.js.map +1 -1
  70. package/dist/src/memory/scopes/classMemoryScope.d.ts +18 -14
  71. package/dist/src/memory/scopes/classMemoryScope.js +18 -14
  72. package/dist/src/memory/scopes/classMemoryScope.js.map +1 -1
  73. package/dist/src/memory/scopes/dialogClassMemoryScope.d.ts +12 -6
  74. package/dist/src/memory/scopes/dialogClassMemoryScope.js +12 -6
  75. package/dist/src/memory/scopes/dialogClassMemoryScope.js.map +1 -1
  76. package/dist/src/memory/scopes/dialogContextMemoryScope.d.ts +11 -7
  77. package/dist/src/memory/scopes/dialogContextMemoryScope.js +11 -7
  78. package/dist/src/memory/scopes/dialogContextMemoryScope.js.map +1 -1
  79. package/dist/src/memory/scopes/dialogMemoryScope.d.ts +23 -16
  80. package/dist/src/memory/scopes/dialogMemoryScope.js +23 -16
  81. package/dist/src/memory/scopes/dialogMemoryScope.js.map +1 -1
  82. package/dist/src/memory/scopes/turnMemoryScope.d.ts +14 -13
  83. package/dist/src/memory/scopes/turnMemoryScope.js +14 -13
  84. package/dist/src/memory/scopes/turnMemoryScope.js.map +1 -1
  85. package/dist/src/memory/turnPath.d.ts +61 -13
  86. package/dist/src/memory/turnPath.js +49 -13
  87. package/dist/src/memory/turnPath.js.map +1 -1
  88. package/dist/src/prompts/attachmentPrompt.d.ts +1 -1
  89. package/dist/src/prompts/attachmentPrompt.js +1 -1
  90. package/dist/src/prompts/choicePrompt.d.ts +17 -3
  91. package/dist/src/prompts/choicePrompt.js +1 -1
  92. package/dist/src/prompts/choicePrompt.js.map +1 -1
  93. package/dist/src/prompts/confirmPrompt.d.ts +6 -6
  94. package/dist/src/prompts/confirmPrompt.js +3 -3
  95. package/dist/src/prompts/datetimePrompt.d.ts +6 -6
  96. package/dist/src/prompts/datetimePrompt.js +3 -3
  97. package/dist/src/prompts/numberPrompt.d.ts +6 -6
  98. package/dist/src/prompts/numberPrompt.js +6 -6
  99. package/dist/src/prompts/prompt.d.ts +7 -7
  100. package/dist/src/prompts/prompt.js +2 -2
  101. package/dist/src/prompts/promptCultureModels.d.ts +38 -3
  102. package/dist/src/prompts/promptCultureModels.js +38 -3
  103. package/dist/src/prompts/promptCultureModels.js.map +1 -1
  104. package/dist/src/recognizer.d.ts +8 -1
  105. package/dist/src/recognizer.js +5 -1
  106. package/dist/src/recognizer.js.map +1 -1
  107. package/dist/src/recognizerResult.d.ts +15 -0
  108. package/dist/src/recognizerResult.js.map +1 -1
  109. package/dist/src/serviceCollection.d.ts +22 -22
  110. package/dist/src/serviceCollection.js +11 -11
  111. package/dist/src/waterfallDialog.d.ts +5 -5
  112. package/dist/src/waterfallDialog.js +5 -5
  113. package/dist/src/waterfallStepContext.d.ts +21 -0
  114. package/dist/src/waterfallStepContext.js.map +1 -1
  115. package/package.json +2 -2
  116. package/src/agentComponent.ts +18 -4
  117. package/src/agentStateSet.ts +2 -2
  118. package/src/choices/choice.ts +11 -0
  119. package/src/choices/findChoices.ts +15 -0
  120. package/src/choices/findValues.ts +33 -0
  121. package/src/choices/modelResult.ts +25 -0
  122. package/src/choices/tokenizer.ts +19 -0
  123. package/src/configurable.ts +1 -0
  124. package/src/converter.ts +10 -1
  125. package/src/dialog.ts +14 -13
  126. package/src/dialogContext.ts +42 -43
  127. package/src/dialogEvent.ts +3 -0
  128. package/src/dialogEvents.ts +25 -0
  129. package/src/dialogHelper.ts +14 -1
  130. package/src/dialogManager.ts +0 -1
  131. package/src/dialogSet.ts +5 -9
  132. package/src/dialogTurnStateConstants.ts +15 -1
  133. package/src/intentScore.ts +9 -2
  134. package/src/memory/dialogPath.ts +47 -23
  135. package/src/memory/dialogStateManager.ts +2 -2
  136. package/src/memory/pathResolvers/aliasPathResolver.ts +4 -0
  137. package/src/memory/pathResolvers/atAtPathResolver.ts +6 -2
  138. package/src/memory/pathResolvers/atPathResolver.ts +13 -7
  139. package/src/memory/pathResolvers/dollarPathResolver.ts +7 -2
  140. package/src/memory/pathResolvers/hashPathResolver.ts +7 -2
  141. package/src/memory/pathResolvers/pathResolver.ts +10 -5
  142. package/src/memory/pathResolvers/percentPathResolver.ts +7 -2
  143. package/src/memory/scopePath.ts +35 -0
  144. package/src/memory/scopes/classMemoryScope.ts +18 -14
  145. package/src/memory/scopes/dialogClassMemoryScope.ts +12 -6
  146. package/src/memory/scopes/dialogContextMemoryScope.ts +11 -7
  147. package/src/memory/scopes/dialogMemoryScope.ts +23 -16
  148. package/src/memory/scopes/turnMemoryScope.ts +14 -13
  149. package/src/memory/turnPath.ts +61 -25
  150. package/src/prompts/attachmentPrompt.ts +1 -1
  151. package/src/prompts/choicePrompt.ts +18 -3
  152. package/src/prompts/confirmPrompt.ts +6 -6
  153. package/src/prompts/datetimePrompt.ts +6 -6
  154. package/src/prompts/numberPrompt.ts +6 -6
  155. package/src/prompts/prompt.ts +7 -7
  156. package/src/prompts/promptCultureModels.ts +38 -3
  157. package/src/recognizer.ts +8 -1
  158. package/src/recognizerResult.ts +24 -5
  159. package/src/serviceCollection.ts +22 -22
  160. package/src/waterfallDialog.ts +5 -5
  161. package/src/waterfallStepContext.ts +32 -6
@@ -1 +1 @@
1
- {"version":3,"file":"turnPath.js","sourceRoot":"","sources":["../../../src/memory/turnPath.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;GAEG;AACH,MAAa,QAAQ;;AAArB,4BAoCC;AAnCC,oDAAoD;AACpC,mBAAU,GAAG,iBAAiB,CAAA;AAE9C,sCAAsC;AACtB,iBAAQ,GAAG,eAAe,CAAA;AAE1C,+CAA+C;AAC/B,mBAAU,GAAG,iBAAiB,CAAA;AAE9C,2BAA2B;AACX,kBAAS,GAAG,wBAAwB,CAAA;AAEpD,0BAA0B;AACV,iBAAQ,GAAG,uBAAuB,CAAA;AAElD,kBAAkB;AACF,aAAI,GAAG,sBAAsB,CAAA;AAE7C,uDAAuD;AACvC,yBAAgB,GAAG,uBAAuB,CAAA;AAE1D,4CAA4C;AAC5B,2BAAkB,GAAG,yBAAyB,CAAA;AAE9D,wCAAwC;AACxB,oBAAW,GAAG,kBAAkB,CAAA;AAEhD,4DAA4D;AAC5C,oBAAW,GAAG,kBAAkB,CAAA;AAEhD,2EAA2E;AAC3D,oBAAW,GAAG,kBAAkB,CAAA;AAEhD,sHAAsH;AACtG,0BAAiB,GAAG,wBAAwB,CAAA"}
1
+ {"version":3,"file":"turnPath.js","sourceRoot":"","sources":["../../../src/memory/turnPath.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;GAEG;AACH,MAAa,QAAQ;;AAArB,4BAwEC;AAvEC;;;GAGG;AACa,mBAAU,GAAW,iBAAiB,CAAA;AAEtD;;;GAGG;AACa,iBAAQ,GAAW,eAAe,CAAA;AAElD;;;GAGG;AACa,mBAAU,GAAW,iBAAiB,CAAA;AAEtD;;;GAGG;AACa,kBAAS,GAAW,wBAAwB,CAAA;AAE5D;;;GAGG;AACa,iBAAQ,GAAW,uBAAuB,CAAA;AAE1D;;;GAGG;AACa,aAAI,GAAW,sBAAsB,CAAA;AAErD;;;GAGG;AACa,yBAAgB,GAAW,uBAAuB,CAAA;AAElE;;;GAGG;AACa,2BAAkB,GAAW,yBAAyB,CAAA;AAEtE;;;GAGG;AACa,oBAAW,GAAW,kBAAkB,CAAA;AAExD;;;GAGG;AACa,oBAAW,GAAW,kBAAkB,CAAA;AAExD;;;GAGG;AACa,oBAAW,GAAW,kBAAkB,CAAA;AAExD;;;GAGG;AACa,0BAAiB,GAAW,wBAAwB,CAAA"}
@@ -9,7 +9,7 @@ import { Attachment } from '@microsoft/agents-activity';
9
9
  * Prompts a user to upload attachments like images.
10
10
  *
11
11
  * @remarks
12
- * By default the prompt will return to the calling dialog an `Attachment[]`.
12
+ * By default the prompt will return to the calling dialog an {@link Attachment | Attachment[]}.
13
13
  */
14
14
  export declare class AttachmentPrompt extends Prompt<Attachment[]> {
15
15
  constructor(dialogId: string, validator?: PromptValidator<Attachment[]>);
@@ -7,7 +7,7 @@ const agents_activity_1 = require("@microsoft/agents-activity");
7
7
  * Prompts a user to upload attachments like images.
8
8
  *
9
9
  * @remarks
10
- * By default the prompt will return to the calling dialog an `Attachment[]`.
10
+ * By default the prompt will return to the calling dialog an {@link Attachment | Attachment[]}.
11
11
  */
12
12
  class AttachmentPrompt extends prompt_1.Prompt {
13
13
  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
@@ -5,19 +5,33 @@
5
5
  import { TurnContext } from '@microsoft/agents-hosting';
6
6
  import { ChoiceFactoryOptions, FindChoicesOptions, FoundChoice } from '../choices';
7
7
  import { ListStyle, Prompt, PromptOptions, PromptRecognizerResult, PromptValidator } from './prompt';
8
+ /**
9
+ * Represents a dictionary of default choice options for different locales.
10
+ *
11
+ * @remarks
12
+ * This interface is used to define the default options for rendering choices in prompts,
13
+ * such as separators, inline options, and whether to include numbers.
14
+ */
8
15
  export interface ChoiceDefaultsChoicePrompt {
16
+ /**
17
+ * A mapping of locale strings to their corresponding choice factory options.
18
+ *
19
+ * @remarks
20
+ * Each locale key maps to a `ChoiceFactoryOptions` object that defines the
21
+ * default behavior for rendering choices in that locale.
22
+ */
9
23
  [locale: string]: ChoiceFactoryOptions;
10
24
  }
11
25
  /**
12
26
  * Prompts a user to select from a list of choices.
13
27
  *
14
28
  * @remarks
15
- * By default the prompt will return to the calling dialog a `FoundChoice` object containing the
29
+ * By default the prompt will return to the calling dialog a {@link FoundChoice} object containing the
16
30
  * choice that was selected.
17
31
  */
18
32
  export declare class ChoicePrompt extends Prompt<FoundChoice> {
19
33
  /**
20
- * A dictionary of Default Choices based on [[PromptCultureModels.getSupportedCultures()]].
34
+ * A dictionary of Default Choices based on {@link PromptCultureModels.getSupportedCultures | PromptCultureModels.getSupportedCultures method}.
21
35
  * Can be replaced by user using the constructor that contains choiceDefaults.
22
36
  */
23
37
  private choiceDefaults;
@@ -38,7 +52,7 @@ export declare class ChoicePrompt extends Prompt<FoundChoice> {
38
52
  */
39
53
  choiceOptions: ChoiceFactoryOptions | undefined;
40
54
  /**
41
- * Additional options passed to the underlying `recognizeChoices()` function.
55
+ * Additional options passed to the underlying {@link recognizeChoices | recognizeChoices function }.
42
56
  */
43
57
  recognizerOptions: FindChoicesOptions | undefined;
44
58
  /**
@@ -8,7 +8,7 @@ const promptCultureModels_1 = require("./promptCultureModels");
8
8
  * Prompts a user to select from a list of choices.
9
9
  *
10
10
  * @remarks
11
- * By default the prompt will return to the calling dialog a `FoundChoice` object containing the
11
+ * By default the prompt will return to the calling dialog a {@link FoundChoice} object containing the
12
12
  * choice that was selected.
13
13
  */
14
14
  class ChoicePrompt extends prompt_1.Prompt {
@@ -1 +1 @@
1
- {"version":3,"file":"choicePrompt.js","sourceRoot":"","sources":["../../../src/prompts/choicePrompt.ts"],"names":[],"mappings":";;;AAKA,wCAAmH;AACnH,qCAAoG;AACpG,+DAA2D;AAQ3D;;;;;;GAMG;AACH,MAAa,YAAa,SAAQ,eAAmB;IA+BnD;;;;;;;;SAQK;IACL,YACE,QAAgB,EAChB,SAAwC,EACxC,aAAsB,EACtB,cAA2C;QAE3C,KAAK,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAA;QAC1B,IAAI,CAAC,KAAK,GAAG,kBAAS,CAAC,IAAI,CAAA;QAC3B,IAAI,CAAC,aAAa,GAAG,aAAa,CAAA;QAElC,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,SAAS,GAA+B,EAAE,CAAA;YAChD,yCAAmB,CAAC,oBAAoB,EAAE,CAAC,OAAO,CAAC,CAAC,OAAO,EAAQ,EAAE;gBACnE,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG;oBAC1B,eAAe,EAAE,OAAO,CAAC,SAAS;oBAClC,QAAQ,EAAE,OAAO,CAAC,QAAQ;oBAC1B,YAAY,EAAE,OAAO,CAAC,YAAY;oBAClC,cAAc,EAAE,IAAI;iBACrB,CAAA;YACH,CAAC,CAAC,CAAA;YACF,IAAI,CAAC,cAAc,GAAG,SAAS,CAAA;QACjC,CAAC;aAA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,IAAI,CAAC,CAAC,OAAO,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;YAC/C,OAAO,GAAG,yCAAmB,CAAC,OAAO,CAAC,MAAM,CAAA;QAC9C,CAAC;QAED,OAAO,OAAO,CAAA;IAChB,CAAC;CACF;AA1JD,oCA0JC"}
@@ -16,7 +16,7 @@ export interface ChoiceDefaultsConfirmPrompt {
16
16
  */
17
17
  export declare class ConfirmPrompt extends Prompt<boolean> {
18
18
  /**
19
- * A dictionary of Default Choices based on [[PromptCultureModels.getSupportedCultures()]].
19
+ * A dictionary of Default Choices based on {@link PromptCultureModels.getSupportedCultures | PromptCultureModels.getSupportedCultures} method.
20
20
  * Can be replaced by user using the constructor that contains choiceDefaults.
21
21
  * This is initially set in the constructor.
22
22
  */
@@ -29,11 +29,11 @@ export declare class ConfirmPrompt extends Prompt<boolean> {
29
29
  * Style of the "yes" and "no" choices rendered to the user when prompting.
30
30
  *
31
31
  * @remarks
32
- * Defaults to `ListStyle.auto`.
32
+ * Defaults to {@link ListStyle.auto}.
33
33
  */
34
34
  style: ListStyle;
35
35
  /**
36
- * Additional options passed to the `ChoiceFactory` and used to tweak the style of choices
36
+ * Additional options passed to the {@link ChoiceFactory } and used to tweak the style of choices
37
37
  * rendered to the user.
38
38
  */
39
39
  choiceOptions: ChoiceFactoryOptions | undefined;
@@ -44,10 +44,10 @@ export declare class ConfirmPrompt extends Prompt<boolean> {
44
44
  /**
45
45
  * Creates a new ConfirmPrompt instance.
46
46
  *
47
- * @param dialogId Unique ID of the dialog within its parent `DialogSet` or `ComponentDialog`.
47
+ * @param dialogId Unique ID of the dialog within its parent {@link DialogSet} or {@link ComponentDialog}.
48
48
  * @param validator (Optional) validator that will be called each time the user responds to the prompt.
49
- * @param defaultLocale (Optional) locale to use if `TurnContext.activity.locale` is not specified. Defaults to a value of `en-us`.
50
- * @param choiceDefaults (Optional) Overrides the dictionary of Default Choices on [[PromptCultureModels.getSupportedCultures()]].
49
+ * @param defaultLocale (Optional) locale to use if the {@link Activity.locale | TurnContext.activity.locale} is not specified. Defaults to a value of `en-us`.
50
+ * @param choiceDefaults (Optional) Overrides the dictionary of Default Choices on {@link PromptCultureModels.getSupportedCultures | PromptCultureModels.getSupportedCultures} method.
51
51
  */
52
52
  constructor(dialogId: string, validator?: PromptValidator<boolean>, defaultLocale?: string, choiceDefaults?: ChoiceDefaultsConfirmPrompt);
53
53
  /**
@@ -53,10 +53,10 @@ class ConfirmPrompt extends prompt_1.Prompt {
53
53
  /**
54
54
  * Creates a new ConfirmPrompt instance.
55
55
  *
56
- * @param dialogId Unique ID of the dialog within its parent `DialogSet` or `ComponentDialog`.
56
+ * @param dialogId Unique ID of the dialog within its parent {@link DialogSet} or {@link ComponentDialog}.
57
57
  * @param validator (Optional) validator that will be called each time the user responds to the prompt.
58
- * @param defaultLocale (Optional) locale to use if `TurnContext.activity.locale` is not specified. Defaults to a value of `en-us`.
59
- * @param choiceDefaults (Optional) Overrides the dictionary of Default Choices on [[PromptCultureModels.getSupportedCultures()]].
58
+ * @param defaultLocale (Optional) locale to use if the {@link Activity.locale | TurnContext.activity.locale} is not specified. Defaults to a value of `en-us`.
59
+ * @param choiceDefaults (Optional) Overrides the dictionary of Default Choices on {@link PromptCultureModels.getSupportedCultures | PromptCultureModels.getSupportedCultures} method.
60
60
  */
61
61
  constructor(dialogId, validator, defaultLocale, choiceDefaults) {
62
62
  super(dialogId, validator);
@@ -1,7 +1,7 @@
1
1
  import { TurnContext } from '@microsoft/agents-hosting';
2
2
  import { Prompt, PromptOptions, PromptRecognizerResult, PromptValidator } from './prompt';
3
3
  /**
4
- * Result returned by the `DateTimePrompt`.
4
+ * Result returned by the {@link DateTimePrompt}.
5
5
  */
6
6
  export interface DateTimeResolution {
7
7
  /**
@@ -14,8 +14,8 @@ export interface DateTimeResolution {
14
14
  */
15
15
  type: string;
16
16
  /**
17
- * Value of the specified [type](#type) that's a reasonable approximation given the ambiguity
18
- * of the [timex](#timex).
17
+ * Value of the specified `type` that's a reasonable approximation given the ambiguity
18
+ * of the `timex`.
19
19
  */
20
20
  value: string;
21
21
  }
@@ -23,7 +23,7 @@ export interface DateTimeResolution {
23
23
  * Prompts a user to enter a datetime expression.
24
24
  *
25
25
  * @remarks
26
- * By default the prompt will return to the calling dialog a `DateTimeResolution[]`.
26
+ * By default the prompt will return to the calling dialog a {@link DateTimeResolution | DateTimeResolution[] }.
27
27
  */
28
28
  export declare class DateTimePrompt extends Prompt<DateTimeResolution[]> {
29
29
  /**
@@ -33,9 +33,9 @@ export declare class DateTimePrompt extends Prompt<DateTimeResolution[]> {
33
33
  /**
34
34
  * Creates a new DateTimePrompt instance.
35
35
  *
36
- * @param dialogId Unique ID of the dialog within its parent `DialogSet` or `ComponentDialog`.
36
+ * @param dialogId Unique ID of the dialog within its parent {@link DialogSet} or {@link ComponentDialog}.
37
37
  * @param validator (Optional) validator that will be called each time the user responds to the prompt.
38
- * @param defaultLocale (Optional) locale to use if `TurnContext.activity.locale` is not specified. Defaults to a value of `en-us`.
38
+ * @param defaultLocale (Optional) locale to use if the {@link Activity.locale | TurnContext.activity.locale} is not specified. Defaults to a value of `en-us`.
39
39
  */
40
40
  constructor(dialogId: string, validator?: PromptValidator<DateTimeResolution[]>, defaultLocale?: string);
41
41
  /**
@@ -45,15 +45,15 @@ const agents_activity_1 = require("@microsoft/agents-activity");
45
45
  * Prompts a user to enter a datetime expression.
46
46
  *
47
47
  * @remarks
48
- * By default the prompt will return to the calling dialog a `DateTimeResolution[]`.
48
+ * By default the prompt will return to the calling dialog a {@link DateTimeResolution | DateTimeResolution[] }.
49
49
  */
50
50
  class DateTimePrompt extends prompt_1.Prompt {
51
51
  /**
52
52
  * Creates a new DateTimePrompt instance.
53
53
  *
54
- * @param dialogId Unique ID of the dialog within its parent `DialogSet` or `ComponentDialog`.
54
+ * @param dialogId Unique ID of the dialog within its parent {@link DialogSet} or {@link ComponentDialog}.
55
55
  * @param validator (Optional) validator that will be called each time the user responds to the prompt.
56
- * @param defaultLocale (Optional) locale to use if `TurnContext.activity.locale` is not specified. Defaults to a value of `en-us`.
56
+ * @param defaultLocale (Optional) locale to use if the {@link Activity.locale | TurnContext.activity.locale} is not specified. Defaults to a value of `en-us`.
57
57
  */
58
58
  constructor(dialogId, validator, defaultLocale) {
59
59
  super(dialogId, validator);
@@ -18,18 +18,18 @@ export declare class NumberPrompt extends Prompt<number> {
18
18
  /**
19
19
  * Creates a new NumberPrompt instance.
20
20
  *
21
- * @param dialogId Unique ID of the dialog within its parent `DialogSet` or `ComponentDialog`.
21
+ * @param dialogId Unique ID of the dialog within its parent {@link DialogSet} or {@link ComponentDialog}.
22
22
  * @param validator (Optional) validator that will be called each time the user responds to the prompt.
23
- * @param defaultLocale (Optional) locale to use if `TurnContext.activity.locale` is not specified. Defaults to a value of `en-us`.
23
+ * @param defaultLocale (Optional) locale to use if the {@link Activity.locale | TurnContext.activity.locale} is not specified. Defaults to a value of `en-us`.
24
24
  */
25
25
  constructor(dialogId: string, validator?: PromptValidator<number>, defaultLocale?: string);
26
26
  /**
27
27
  * Prompts the user for input.
28
28
  *
29
- * @param context [TurnContext] context for the current
29
+ * @param context {@link TurnContext} context for the current
30
30
  * turn of conversation with the user.
31
31
  * @param state Contains state for the current instance of the prompt on the dialog stack.
32
- * @param options A [PromptOptions] object constructed
32
+ * @param options A {@link PromptOptions} object constructed
33
33
  * from the options initially provided in the call to Prompt.
34
34
  * @param isRetry `true` if this is the first time this prompt dialog instance
35
35
  * on the stack is prompting the user for input; otherwise, false.
@@ -39,10 +39,10 @@ export declare class NumberPrompt extends Prompt<number> {
39
39
  /**
40
40
  * Attempts to recognize the user's input.
41
41
  *
42
- * @param context [TurnContext], context for the current
42
+ * @param context {@link TurnContext}, context for the current
43
43
  * turn of conversation with the user.
44
44
  * @param _state Contains state for the current instance of the prompt on the dialog stack.
45
- * @param _options A [PromptOptions] object constructed
45
+ * @param _options A {@link PromptOptions} object constructed
46
46
  * from the options initially provided in the call to Prompt.
47
47
  * @returns A `Promise` representing the asynchronous operation.
48
48
  */
@@ -58,9 +58,9 @@ class NumberPrompt extends prompt_1.Prompt {
58
58
  /**
59
59
  * Creates a new NumberPrompt instance.
60
60
  *
61
- * @param dialogId Unique ID of the dialog within its parent `DialogSet` or `ComponentDialog`.
61
+ * @param dialogId Unique ID of the dialog within its parent {@link DialogSet} or {@link ComponentDialog}.
62
62
  * @param validator (Optional) validator that will be called each time the user responds to the prompt.
63
- * @param defaultLocale (Optional) locale to use if `TurnContext.activity.locale` is not specified. Defaults to a value of `en-us`.
63
+ * @param defaultLocale (Optional) locale to use if the {@link Activity.locale | TurnContext.activity.locale} is not specified. Defaults to a value of `en-us`.
64
64
  */
65
65
  constructor(dialogId, validator, defaultLocale) {
66
66
  super(dialogId, validator);
@@ -69,10 +69,10 @@ class NumberPrompt extends prompt_1.Prompt {
69
69
  /**
70
70
  * Prompts the user for input.
71
71
  *
72
- * @param context [TurnContext] context for the current
72
+ * @param context {@link TurnContext} context for the current
73
73
  * turn of conversation with the user.
74
74
  * @param state Contains state for the current instance of the prompt on the dialog stack.
75
- * @param options A [PromptOptions] object constructed
75
+ * @param options A {@link PromptOptions} object constructed
76
76
  * from the options initially provided in the call to Prompt.
77
77
  * @param isRetry `true` if this is the first time this prompt dialog instance
78
78
  * on the stack is prompting the user for input; otherwise, false.
@@ -89,10 +89,10 @@ class NumberPrompt extends prompt_1.Prompt {
89
89
  /**
90
90
  * Attempts to recognize the user's input.
91
91
  *
92
- * @param context [TurnContext], context for the current
92
+ * @param context {@link TurnContext}, context for the current
93
93
  * turn of conversation with the user.
94
94
  * @param _state Contains state for the current instance of the prompt on the dialog stack.
95
- * @param _options A [PromptOptions] object constructed
95
+ * @param _options A {@link PromptOptions} object constructed
96
96
  * from the options initially provided in the call to Prompt.
97
97
  * @returns A `Promise` representing the asynchronous operation.
98
98
  */
@@ -12,7 +12,7 @@ import { DialogReason } from '../dialogReason';
12
12
  import { DialogEvent } from '../dialogEvent';
13
13
  import { Activity } from '@microsoft/agents-activity';
14
14
  /**
15
- * Controls the way that choices for a `ChoicePrompt` or yes/no options for a `ConfirmPrompt` are
15
+ * Controls the way that choices for a {@link ChoicePrompt} or yes/no options for a {@link ConfirmPrompt} are
16
16
  * presented to a user.
17
17
  */
18
18
  export declare enum ListStyle {
@@ -78,12 +78,12 @@ export interface PromptOptions {
78
78
  */
79
79
  export interface PromptRecognizerResult<T> {
80
80
  /**
81
- * If `true` the users utterance was successfully recognized and [value](#value) contains the
81
+ * If `true` the user's utterance was successfully recognized and `value` contains the
82
82
  * recognized result.
83
83
  */
84
84
  succeeded: boolean;
85
85
  /**
86
- * Value that was recognized if [succeeded](#succeeded) is `true`.
86
+ * Value that was recognized if `succeeded` is `true`.
87
87
  */
88
88
  value?: T;
89
89
  }
@@ -101,7 +101,7 @@ export interface PromptRecognizerResult<T> {
101
101
  * > [!NOTE]
102
102
  * > If the validator returns `false` the prompts default re-prompt logic will be run unless the
103
103
  * > validator sends a custom re-prompt to the user using `prompt.context.sendActivity()`. In that
104
- * > case the prompts default re-rpompt logic will not be run.
104
+ * > case the prompts default re-prompt logic will not be run.
105
105
  * @param T Type of recognizer result being validated.
106
106
  * @param prompt Contextual information containing the recognizer result and original options passed to the prompt.
107
107
  */
@@ -123,8 +123,8 @@ export interface PromptValidatorContext<T> {
123
123
  * Result returned from the prompts recognizer function.
124
124
  *
125
125
  * @remarks
126
- * The `prompt.recognized.succeeded` field can be checked to determine of the recognizer found
127
- * anything and then the value can be retrieved from `prompt.recognized.value`.
126
+ * The {@link @microsoft/agents-hosting-dialogs.PromptRecognizerResult.succeeded | recognized.succeeded} field can be checked to determine of the recognizer found
127
+ * anything and then the value can be retrieved from {@link @microsoft/agents-hosting-dialogs.PromptRecognizerResult.value | recognized.value}.
128
128
  */
129
129
  readonly recognized: PromptRecognizerResult<T>;
130
130
  /**
@@ -158,7 +158,7 @@ export declare abstract class Prompt<T> extends Dialog {
158
158
  /**
159
159
  * Creates a new Prompt instance.
160
160
  *
161
- * @param dialogId Unique ID of the prompt within its parent `DialogSet` or `ComponentDialog`.
161
+ * @param dialogId Unique ID of the prompt within its parent {@link DialogSet} or {@link ComponentDialog}.
162
162
  * @param validator (Optional) custom validator used to provide additional validation and re-prompting logic for the prompt.
163
163
  */
164
164
  protected constructor(dialogId: string, validator?: PromptValidator<T>);
@@ -10,7 +10,7 @@ const choices_1 = require("../choices");
10
10
  const dialog_1 = require("../dialog");
11
11
  const agents_activity_1 = require("@microsoft/agents-activity");
12
12
  /**
13
- * Controls the way that choices for a `ChoicePrompt` or yes/no options for a `ConfirmPrompt` are
13
+ * Controls the way that choices for a {@link ChoicePrompt} or yes/no options for a {@link ConfirmPrompt} are
14
14
  * presented to a user.
15
15
  */
16
16
  var ListStyle;
@@ -49,7 +49,7 @@ class Prompt extends dialog_1.Dialog {
49
49
  /**
50
50
  * Creates a new Prompt instance.
51
51
  *
52
- * @param dialogId Unique ID of the prompt within its parent `DialogSet` or `ComponentDialog`.
52
+ * @param dialogId Unique ID of the prompt within its parent {@link DialogSet} or {@link ComponentDialog}.
53
53
  * @param validator (Optional) custom validator used to provide additional validation and re-prompting logic for the prompt.
54
54
  */
55
55
  constructor(dialogId, validator) {
@@ -46,27 +46,62 @@ export interface PromptCultureModel {
46
46
  * Class container for currently-supported Culture Models in Confirm and Choice Prompt.
47
47
  */
48
48
  export declare class PromptCultureModels {
49
+ /**
50
+ * Represents the Chinese culture model with locale and language-specific settings.
51
+ */
49
52
  static Chinese: PromptCultureModel;
53
+ /**
54
+ * Represents the Dutch culture model with locale and language-specific settings.
55
+ */
50
56
  static Dutch: PromptCultureModel;
57
+ /**
58
+ * Represents the English culture model with locale and language-specific settings.
59
+ */
51
60
  static English: PromptCultureModel;
61
+ /**
62
+ * Represents the French culture model with locale and language-specific settings.
63
+ */
52
64
  static French: PromptCultureModel;
65
+ /**
66
+ * Represents the German culture model with locale and language-specific settings.
67
+ */
53
68
  static German: PromptCultureModel;
69
+ /**
70
+ * Represents the Italian culture model with locale and language-specific settings.
71
+ */
54
72
  static Italian: PromptCultureModel;
73
+ /**
74
+ * Represents the Japanese culture model with locale and language-specific settings.
75
+ */
55
76
  static Japanese: PromptCultureModel;
77
+ /**
78
+ * Represents the Portuguese culture model with locale and language-specific settings.
79
+ */
56
80
  static Portuguese: PromptCultureModel;
81
+ /**
82
+ * Represents the Spanish culture model with locale and language-specific settings.
83
+ */
57
84
  static Spanish: PromptCultureModel;
58
85
  /**
86
+ * Retrieves a list of supported culture codes.
87
+ *
88
+ * @returns An array of supported locale strings.
59
89
  * @private
60
90
  */
61
91
  private static getSupportedCultureCodes;
62
92
  /**
63
- * Use Recognizers-Text to normalize various potential Locale strings to a standard.
93
+ * Normalizes a given locale string to the nearest supported language.
64
94
  *
95
+ * @param cultureCode The locale string to normalize (e.g., "en-US").
96
+ * @returns The normalized locale string.
65
97
  * @remarks This is mostly a copy/paste from https://github.com/microsoft/Recognizers-Text/blob/master/JavaScript/packages/recognizers-text/src/culture.ts#L39
66
98
  * This doesn't directly use Recognizers-Text's MapToNearestLanguage because if they add language support before we do, it will break our prompts.
67
- * @param cultureCode Represents locale. Examples: "en-US, en-us, EN".
68
- * @returns Normalized locale.
69
99
  */
70
100
  static mapToNearestLanguage(cultureCode: string): string;
101
+ /**
102
+ * Retrieves a list of supported culture models.
103
+ *
104
+ * @returns An array of `PromptCultureModel` objects representing supported cultures.
105
+ */
71
106
  static getSupportedCultures: () => PromptCultureModel[];
72
107
  }
@@ -7,18 +7,21 @@ const recognizers_text_suite_1 = require("@microsoft/recognizers-text-suite");
7
7
  */
8
8
  class PromptCultureModels {
9
9
  /**
10
+ * Retrieves a list of supported culture codes.
11
+ *
12
+ * @returns An array of supported locale strings.
10
13
  * @private
11
14
  */
12
15
  static getSupportedCultureCodes() {
13
16
  return this.getSupportedCultures().map((c) => c.locale);
14
17
  }
15
18
  /**
16
- * Use Recognizers-Text to normalize various potential Locale strings to a standard.
19
+ * Normalizes a given locale string to the nearest supported language.
17
20
  *
21
+ * @param cultureCode The locale string to normalize (e.g., "en-US").
22
+ * @returns The normalized locale string.
18
23
  * @remarks This is mostly a copy/paste from https://github.com/microsoft/Recognizers-Text/blob/master/JavaScript/packages/recognizers-text/src/culture.ts#L39
19
24
  * This doesn't directly use Recognizers-Text's MapToNearestLanguage because if they add language support before we do, it will break our prompts.
20
- * @param cultureCode Represents locale. Examples: "en-US, en-us, EN".
21
- * @returns Normalized locale.
22
25
  */
23
26
  static mapToNearestLanguage(cultureCode) {
24
27
  if (cultureCode) {
@@ -37,6 +40,9 @@ class PromptCultureModels {
37
40
  }
38
41
  }
39
42
  exports.PromptCultureModels = PromptCultureModels;
43
+ /**
44
+ * Represents the Chinese culture model with locale and language-specific settings.
45
+ */
40
46
  PromptCultureModels.Chinese = {
41
47
  locale: recognizers_text_suite_1.Culture.Chinese,
42
48
  separator: ', ',
@@ -45,6 +51,9 @@ PromptCultureModels.Chinese = {
45
51
  yesInLanguage: '是的',
46
52
  noInLanguage: '不',
47
53
  };
54
+ /**
55
+ * Represents the Dutch culture model with locale and language-specific settings.
56
+ */
48
57
  PromptCultureModels.Dutch = {
49
58
  locale: recognizers_text_suite_1.Culture.Dutch,
50
59
  separator: ', ',
@@ -53,6 +62,9 @@ PromptCultureModels.Dutch = {
53
62
  yesInLanguage: 'Ja',
54
63
  noInLanguage: 'Nee',
55
64
  };
65
+ /**
66
+ * Represents the English culture model with locale and language-specific settings.
67
+ */
56
68
  PromptCultureModels.English = {
57
69
  locale: recognizers_text_suite_1.Culture.English,
58
70
  separator: ', ',
@@ -61,6 +73,9 @@ PromptCultureModels.English = {
61
73
  yesInLanguage: 'Yes',
62
74
  noInLanguage: 'No',
63
75
  };
76
+ /**
77
+ * Represents the French culture model with locale and language-specific settings.
78
+ */
64
79
  PromptCultureModels.French = {
65
80
  locale: recognizers_text_suite_1.Culture.French,
66
81
  separator: ', ',
@@ -69,6 +84,9 @@ PromptCultureModels.French = {
69
84
  yesInLanguage: 'Oui',
70
85
  noInLanguage: 'Non',
71
86
  };
87
+ /**
88
+ * Represents the German culture model with locale and language-specific settings.
89
+ */
72
90
  PromptCultureModels.German = {
73
91
  locale: recognizers_text_suite_1.Culture.German,
74
92
  separator: ', ',
@@ -77,6 +95,9 @@ PromptCultureModels.German = {
77
95
  yesInLanguage: 'Ja',
78
96
  noInLanguage: 'Nein',
79
97
  };
98
+ /**
99
+ * Represents the Italian culture model with locale and language-specific settings.
100
+ */
80
101
  PromptCultureModels.Italian = {
81
102
  locale: recognizers_text_suite_1.Culture.Italian,
82
103
  separator: ', ',
@@ -85,6 +106,9 @@ PromptCultureModels.Italian = {
85
106
  yesInLanguage: 'Si',
86
107
  noInLanguage: 'No',
87
108
  };
109
+ /**
110
+ * Represents the Japanese culture model with locale and language-specific settings.
111
+ */
88
112
  PromptCultureModels.Japanese = {
89
113
  locale: recognizers_text_suite_1.Culture.Japanese,
90
114
  separator: '、 ',
@@ -93,6 +117,9 @@ PromptCultureModels.Japanese = {
93
117
  yesInLanguage: 'はい',
94
118
  noInLanguage: 'いいえ',
95
119
  };
120
+ /**
121
+ * Represents the Portuguese culture model with locale and language-specific settings.
122
+ */
96
123
  PromptCultureModels.Portuguese = {
97
124
  locale: recognizers_text_suite_1.Culture.Portuguese,
98
125
  separator: ', ',
@@ -101,6 +128,9 @@ PromptCultureModels.Portuguese = {
101
128
  yesInLanguage: 'Sim',
102
129
  noInLanguage: 'Não',
103
130
  };
131
+ /**
132
+ * Represents the Spanish culture model with locale and language-specific settings.
133
+ */
104
134
  PromptCultureModels.Spanish = {
105
135
  locale: recognizers_text_suite_1.Culture.Spanish,
106
136
  separator: ', ',
@@ -109,6 +139,11 @@ PromptCultureModels.Spanish = {
109
139
  yesInLanguage: 'Sí',
110
140
  noInLanguage: 'No',
111
141
  };
142
+ /**
143
+ * Retrieves a list of supported culture models.
144
+ *
145
+ * @returns An array of `PromptCultureModel` objects representing supported cultures.
146
+ */
112
147
  PromptCultureModels.getSupportedCultures = () => [
113
148
  PromptCultureModels.Chinese,
114
149
  PromptCultureModels.Dutch,
@@ -1 +1 @@
1
- {"version":3,"file":"promptCultureModels.js","sourceRoot":"","sources":["../../../src/prompts/promptCultureModels.ts"],"names":[],"mappings":";;;AAAA,8EAA2D;AA+C3D;;GAEG;AACH,MAAa,mBAAmB;IAkF9B;;SAEK;IACG,MAAM,CAAC,wBAAwB;QACrC,OAAO,IAAI,CAAC,oBAAoB,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAU,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;IACjE,CAAC;IAED;;;;;;;SAOK;IACL,MAAM,CAAC,oBAAoB,CAAE,WAAmB;QAC9C,IAAI,WAAW,EAAE,CAAC;YAChB,WAAW,GAAG,WAAW,CAAC,WAAW,EAAE,CAAA;YACvC,MAAM,qBAAqB,GAAG,IAAI,CAAC,wBAAwB,EAAE,CAAA;YAE7D,IAAI,qBAAqB,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC;gBACnD,MAAM,aAAa,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;gBAEtD,qBAAqB,CAAC,OAAO,CAAC,UAAU,oBAAoB;oBAC1D,IAAI,oBAAoB,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;wBACnD,WAAW,GAAG,oBAAoB,CAAA;oBACpC,CAAC;gBACH,CAAC,CAAC,CAAA;YACJ,CAAC;QACH,CAAC;QAED,OAAO,WAAW,CAAA;IACpB,CAAC;;AAlHH,kDA+HC;AA9HQ,2BAAO,GAAuB;IACnC,MAAM,EAAE,gCAAO,CAAC,OAAO;IACvB,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,MAAM;IAChB,YAAY,EAAE,OAAO;IACrB,aAAa,EAAE,IAAI;IACnB,YAAY,EAAE,GAAG;CAClB,CAAA;AAEM,yBAAK,GAAuB;IACjC,MAAM,EAAE,gCAAO,CAAC,KAA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base class.
13
+ * Base class for implementing custom recognizers to identify intents and entities from user input.
14
+ *
15
+ * Recognizers process user input, such as text or speech, and return structured data representing
16
+ * the recognized intents, entities, and other relevant information. This class provides a foundation
17
+ * for creating custom recognizers by defining common methods and properties.
14
18
  */
15
19
  export declare class Recognizer extends Configurable implements RecognizerConfiguration {
20
+ /**
21
+ * Optional. The unique identifier for the recognizer.
22
+ */
16
23
  id?: string;
17
24
  /**
18
25
  * To recognize intents and entities in a users utterance.
@@ -8,7 +8,11 @@ const configurable_1 = require("./configurable");
8
8
  const omit_1 = __importDefault(require("lodash/omit"));
9
9
  const recognizerResult_1 = require("./recognizerResult");
10
10
  /**
11
- * Recognizer base class.
11
+ * Base class for implementing custom recognizers to identify intents and entities from user input.
12
+ *
13
+ * Recognizers process user input, such as text or speech, and return structured data representing
14
+ * the recognized intents, entities, and other relevant information. This class provides a foundation
15
+ * for creating custom recognizers by defining common methods and properties.
12
16
  */
13
17
  class Recognizer extends configurable_1.Configurable {
14
18
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"recognizer.js","sourceRoot":"","sources":["../../src/recognizer.ts"],"names":[],"mappings":";;;;;;AAKA,iDAA6C;AAE7C,uDAA8B;AAC9B,yDAA0E;AAM1E;;GAEG;AACH,MAAa,UAAW,SAAQ,2BAAY;IAE1C;;;;;;;SAOK;IACL,SAAS,CACP,cAA6B,EAC7B,SAA4B,EAC5B,oBAA6C,EAC7C,iBAA0C;QAE1C,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAA;IACzD,CAAC;IAED;;;;;SAKK;IACK,wBAAwB,CAAE,iBAAmD;QACrF,IAAI,IAAI,GAAW,EAAE,CAAA;QACrB,IAAI,SAAS,GAAwB,EAAE,CAAA;QAEnC,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC,UAA2B,EAAE,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,EAAE;YACzG,IAAI,GAAG,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