@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":"dialogSet.js","sourceRoot":"","sources":["../../src/dialogSet.ts"],"names":[],"mappings":";;;AASA,qCAAiC;AACjC,mDAA4D;AAC5D,+CAA2C;AAS3C;;;;;;;;;;;GAWG;AACH,MAAa,SAAS;IAKpB;;;;;;;;;SASK;IACL,YAAa,WAAqD;QAdjD,YAAO,GAA6B,EAAE,CAAA;QAerD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;IAChC,CAAC;IAED;;;;;;SAMK;IACL,UAAU;QACR,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,IAAI,QAAQ,GAAG,EAAE,CAAA;YACjB,KAAK,MAAM,EAAE,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;gBAC9B,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC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O,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;IAC1G,CAAC;IAED;;;;SAIK;IACL,UAAU;QACR,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IACpC,CAAC;CACF;AAnID,8BAmIC"}
@@ -3,10 +3,22 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  /**
6
- * Defines dialog turn state constants.
6
+ * Provides constants used to manage the state of a dialog turn.
7
+ *
8
+ * These constants are used as keys to store and retrieve specific state information
9
+ * during the execution of a dialog turn.
7
10
  */
8
11
  export declare class DialogTurnStateConstants {
12
+ /**
13
+ * Symbol representing the configuration for the dialog turn.
14
+ */
9
15
  static configuration: symbol;
16
+ /**
17
+ * Symbol representing the dialog manager instance.
18
+ */
10
19
  static dialogManager: symbol;
20
+ /**
21
+ * Symbol representing the queue storage for the dialog turn.
22
+ */
11
23
  static queueStorage: symbol;
12
24
  }
@@ -6,12 +6,24 @@
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.DialogTurnStateConstants = void 0;
8
8
  /**
9
- * Defines dialog turn state constants.
9
+ * Provides constants used to manage the state of a dialog turn.
10
+ *
11
+ * These constants are used as keys to store and retrieve specific state information
12
+ * during the execution of a dialog turn.
10
13
  */
11
14
  class DialogTurnStateConstants {
12
15
  }
13
16
  exports.DialogTurnStateConstants = DialogTurnStateConstants;
17
+ /**
18
+ * Symbol representing the configuration for the dialog turn.
19
+ */
14
20
  DialogTurnStateConstants.configuration = Symbol('configuration');
21
+ /**
22
+ * Symbol representing the dialog manager instance.
23
+ */
15
24
  DialogTurnStateConstants.dialogManager = Symbol('dialogManager');
25
+ /**
26
+ * Symbol representing the queue storage for the dialog turn.
27
+ */
16
28
  DialogTurnStateConstants.queueStorage = Symbol('queueStorage');
17
29
  //# sourceMappingURL=dialogTurnStateConstants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dialogTurnStateConstants.js","sourceRoot":"","sources":["../../src/dialogTurnStateConstants.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;GAEG;AACH,MAAa,wBAAwB;;AAArC,4DAIC;AAHQ,sCAAa,GAAG,MAAM,CAAC,eAAe,CAAC,CAAA;AACvC,sCAAa,GAAG,MAAM,CAAC,eAAe,CAAC,CAAA;AACvC,qCAAY,GAAG,MAAM,CAAC,cAAc,CAAC,CAAA"}
1
+ {"version":3,"file":"dialogTurnStateConstants.js","sourceRoot":"","sources":["../../src/dialogTurnStateConstants.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;;;;GAKG;AACH,MAAa,wBAAwB;;AAArC,4DAeC;AAdC;;GAEG;AACI,sCAAa,GAAG,MAAM,CAAC,eAAe,CAAC,CAAA;AAE9C;;GAEG;AACI,sCAAa,GAAG,MAAM,CAAC,eAAe,CAAC,CAAA;AAE9C;;GAEG;AACI,qCAAY,GAAG,MAAM,CAAC,cAAc,CAAC,CAAA"}
@@ -6,6 +6,12 @@
6
6
  * Score plus any extra information about an intent.
7
7
  */
8
8
  export interface IntentScore {
9
+ /**
10
+ * Optional. The confidence score of the intent, ranging from 0.0 to 1.0.
11
+ */
9
12
  score?: number;
13
+ /**
14
+ * Additional properties related to the intent.
15
+ */
10
16
  [key: string]: unknown;
11
17
  }
@@ -6,12 +6,44 @@
6
6
  * Defines path for available dialogs.
7
7
  */
8
8
  export declare class DialogPath {
9
- static readonly eventCounter = "dialog.eventCounter";
10
- static readonly expectedProperties = "dialog.expectedProperties";
11
- static readonly defaultOperation = "dialog.defaultOperation";
12
- static readonly lastEvent = "dialog.lastEvent";
13
- static readonly requiredProperties = "dialog.requiredProperties";
14
- static readonly retries = "dialog.retries";
15
- static readonly lastIntent = "dialog.lastIntent";
16
- static readonly lastTriggerEvent = "dialog.lastTriggerEvent";
9
+ /**
10
+ * Counter of emitted events.
11
+ * @constant A string key representing the event counter path (`'dialog.eventCounter'`).
12
+ */
13
+ static readonly eventCounter: string;
14
+ /**
15
+ * Currently expected properties.
16
+ * @constant A string key representing the expected properties path (`'dialog.expectedProperties'`).
17
+ */
18
+ static readonly expectedProperties: string;
19
+ /**
20
+ * Default operation to use for entities where there is no identified operation entity.
21
+ * @constant A string key representing the default operation path (`'dialog.defaultOperation'`).
22
+ */
23
+ static readonly defaultOperation: string;
24
+ /**
25
+ * Last surfaced entity ambiguity event.
26
+ * @constant A string key representing the last event path (`'dialog.lastEvent'`).
27
+ */
28
+ static readonly lastEvent: string;
29
+ /**
30
+ * Currently required properties.
31
+ * @constant A string key representing the required properties path (`'dialog.requiredProperties'`).
32
+ */
33
+ static readonly requiredProperties: string;
34
+ /**
35
+ * Number of retries for the current Ask.
36
+ * @constant A string key representing the retries path (`'dialog.retries'`).
37
+ */
38
+ static readonly retries: string;
39
+ /**
40
+ * Last intent.
41
+ * @constant A string key representing the last intent path (`'dialog.lastIntent'`).
42
+ */
43
+ static readonly lastIntent: string;
44
+ /**
45
+ * Last trigger event: defined in FormEvent, ask, clarifyEntity etc.
46
+ * @constant A string key representing the last trigger event path (`'dialog.lastTriggerEvent'`).
47
+ */
48
+ static readonly lastTriggerEvent: string;
17
49
  }
@@ -11,20 +11,44 @@ exports.DialogPath = void 0;
11
11
  class DialogPath {
12
12
  }
13
13
  exports.DialogPath = DialogPath;
14
- /// Counter of emitted events.
14
+ /**
15
+ * Counter of emitted events.
16
+ * @constant A string key representing the event counter path (`'dialog.eventCounter'`).
17
+ */
15
18
  DialogPath.eventCounter = 'dialog.eventCounter';
16
- /// Currently expected properties.
19
+ /**
20
+ * Currently expected properties.
21
+ * @constant A string key representing the expected properties path (`'dialog.expectedProperties'`).
22
+ */
17
23
  DialogPath.expectedProperties = 'dialog.expectedProperties';
18
- /// Default operation to use for entities where there is no identified operation entity.
24
+ /**
25
+ * Default operation to use for entities where there is no identified operation entity.
26
+ * @constant A string key representing the default operation path (`'dialog.defaultOperation'`).
27
+ */
19
28
  DialogPath.defaultOperation = 'dialog.defaultOperation';
20
- /// Last surfaced entity ambiguity event.
29
+ /**
30
+ * Last surfaced entity ambiguity event.
31
+ * @constant A string key representing the last event path (`'dialog.lastEvent'`).
32
+ */
21
33
  DialogPath.lastEvent = 'dialog.lastEvent';
22
- /// Currently required properties.
34
+ /**
35
+ * Currently required properties.
36
+ * @constant A string key representing the required properties path (`'dialog.requiredProperties'`).
37
+ */
23
38
  DialogPath.requiredProperties = 'dialog.requiredProperties';
24
- /// Number of retries for the current Ask.
39
+ /**
40
+ * Number of retries for the current Ask.
41
+ * @constant A string key representing the retries path (`'dialog.retries'`).
42
+ */
25
43
  DialogPath.retries = 'dialog.retries';
26
- /// Last intent.
44
+ /**
45
+ * Last intent.
46
+ * @constant A string key representing the last intent path (`'dialog.lastIntent'`).
47
+ */
27
48
  DialogPath.lastIntent = 'dialog.lastIntent';
28
- /// Last trigger event: defined in FormEvent, ask, clarifyEntity etc..
49
+ /**
50
+ * Last trigger event: defined in FormEvent, ask, clarifyEntity etc.
51
+ * @constant A string key representing the last trigger event path (`'dialog.lastTriggerEvent'`).
52
+ */
29
53
  DialogPath.lastTriggerEvent = 'dialog.lastTriggerEvent';
30
54
  //# sourceMappingURL=dialogPath.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dialogPath.js","sourceRoot":"","sources":["../../../src/memory/dialogPath.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;GAEG;AACH,MAAa,UAAU;;AAAvB,gCAwBC;AAvBC,8BAA8B;AACd,uBAAY,GAAG,qBAAqB,CAAA;AAEpD,kCAAkC;AAClB,6BAAkB,GAAG,2BAA2B,CAAA;AAEhE,wFAAwF;AACxE,2BAAgB,GAAG,yBAAyB,CAAA;AAE5D,yCAAyC;AACzB,oBAAS,GAAG,kBAAkB,CAAA;AAE9C,kCAAkC;AAClB,6BAAkB,GAAG,2BAA2B,CAAA;AAEhE,0CAA0C;AAC1B,kBAAO,GAAG,gBAAgB,CAAA;AAE1C,gBAAgB;AACA,qBAAU,GAAG,mBAAmB,CAAA;AAEhD,sEAAsE;AACtD,2BAAgB,GAAG,yBAAyB,CAAA"}
1
+ {"version":3,"file":"dialogPath.js","sourceRoot":"","sources":["../../../src/memory/dialogPath.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;GAEG;AACH,MAAa,UAAU;;AAAvB,gCAgDC;AA/CC;;;GAGG;AACa,uBAAY,GAAW,qBAAqB,CAAA;AAE5D;;;GAGG;AACa,6BAAkB,GAAW,2BAA2B,CAAA;AAExE;;;GAGG;AACa,2BAAgB,GAAW,yBAAyB,CAAA;AAEpE;;;GAGG;AACa,oBAAS,GAAW,kBAAkB,CAAA;AAEtD;;;GAGG;AACa,6BAAkB,GAAW,2BAA2B,CAAA;AAExE;;;GAGG;AACa,kBAAO,GAAW,gBAAgB,CAAA;AAElD;;;GAGG;AACa,qBAAU,GAAW,mBAAmB,CAAA;AAExD;;;GAGG;AACa,2BAAgB,GAAW,yBAAyB,CAAA"}
@@ -112,14 +112,14 @@ export declare class DialogStateManager {
112
112
  * Track when specific paths are changed.
113
113
  *
114
114
  * @param paths Paths to track.
115
- * @returns Normalized paths to pass to [anyPathChanged()](#anypathchanged).
115
+ * @returns Normalized paths to pass to `anyPathChanged` method.
116
116
  */
117
117
  trackPaths(paths: string[]): string[];
118
118
  /**
119
119
  * Check to see if any path has changed since watermark.
120
120
  *
121
121
  * @param counter Time counter to compare to.
122
- * @param paths Paths from [trackPaths()](#trackpaths) to check.
122
+ * @param paths Paths from `trackPaths` method to check.
123
123
  * @returns True if any path has changed since counter.
124
124
  */
125
125
  anyPathChanged(counter: number, paths: string[]): boolean;
@@ -380,7 +380,7 @@ class DialogStateManager {
380
380
  * Track when specific paths are changed.
381
381
  *
382
382
  * @param paths Paths to track.
383
- * @returns Normalized paths to pass to [anyPathChanged()](#anypathchanged).
383
+ * @returns Normalized paths to pass to `anyPathChanged` method.
384
384
  */
385
385
  trackPaths(paths) {
386
386
  const allPaths = [];
@@ -401,7 +401,7 @@ class DialogStateManager {
401
401
  * Check to see if any path has changed since watermark.
402
402
  *
403
403
  * @param counter Time counter to compare to.
404
- * @param paths Paths from [trackPaths()](#trackpaths) to check.
404
+ * @param paths Paths from `trackPaths` method to check.
405
405
  * @returns True if any path has changed since counter.
406
406
  */
407
407
  anyPathChanged(counter, paths) {
@@ -3,6 +3,10 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  import { PathResolver } from './pathResolver';
6
+ /**
7
+ * A class that resolves paths by replacing an alias with a specified prefix and optional postfix.
8
+ * This is useful for transforming paths that use shorthand aliases into fully qualified paths.
9
+ */
6
10
  export declare class AliasPathResolver implements PathResolver {
7
11
  private readonly alias;
8
12
  private readonly prefix;
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AliasPathResolver = void 0;
4
+ /**
5
+ * A class that resolves paths by replacing an alias with a specified prefix and optional postfix.
6
+ * This is useful for transforming paths that use shorthand aliases into fully qualified paths.
7
+ */
4
8
  class AliasPathResolver {
5
9
  /**
6
10
  * Initializes a new instance of the AliasPathResolver class.
@@ -1 +1 @@
1
- {"version":3,"file":"aliasPathResolver.js","sourceRoot":"","sources":["../../../../src/memory/pathResolvers/aliasPathResolver.ts"],"names":[],"mappings":";;;AAMA,MAAa,iBAAiB;IAK5B;;;;;;SAMK;IACL,YAAa,KAAa,EAAE,MAAc,EAAE,OAAgB;QAC1D,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAA;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,IAAI,EAAE,CAAA;QAC3B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;IAC9C,CAAC;IAED;;;;;SAKK;IACL,aAAa,CAAE,IAAY;QACzB,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QACtC,IAAI,KAAK,KAAK,CAAC,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AAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gBACvB,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;YACxC,CAAC;QACH,CAAC;QAED,OAAO,IAAI,CAAA;IACb,CAAC;CACF;AArCD,8CAqCC"}
@@ -3,9 +3,13 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  import { AliasPathResolver } from './aliasPathResolver';
6
+ /**
7
+ * A specialized path resolver that replaces the '@@' alias with the prefix 'turn.recognized.entities.'.
8
+ * This is used to resolve paths related to recognized entities in a conversational turn.
9
+ */
6
10
  export declare class AtAtPathResolver extends AliasPathResolver {
7
11
  /**
8
- * Initializes a new instance of the AtAtPathResolver class.
9
- */
12
+ * Initializes a new instance of the AtAtPathResolver class.
13
+ */
10
14
  constructor();
11
15
  }
@@ -6,10 +6,14 @@ exports.AtAtPathResolver = void 0;
6
6
  * Licensed under the MIT License.
7
7
  */
8
8
  const aliasPathResolver_1 = require("./aliasPathResolver");
9
+ /**
10
+ * A specialized path resolver that replaces the '@@' alias with the prefix 'turn.recognized.entities.'.
11
+ * This is used to resolve paths related to recognized entities in a conversational turn.
12
+ */
9
13
  class AtAtPathResolver extends aliasPathResolver_1.AliasPathResolver {
10
14
  /**
11
- * Initializes a new instance of the AtAtPathResolver class.
12
- */
15
+ * Initializes a new instance of the AtAtPathResolver class.
16
+ */
13
17
  constructor() {
14
18
  super('@@', 'turn.recognized.entities.');
15
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"atAtPathResolver.js","sourceRoot":"","sources":["../../../../src/memory/pathResolvers/atAtPathResolver.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,2DAAuD;AAEvD,MAAa,gBAAiB,SAAQ,qCAAiB;IACrD;;SAEK;IACL;QACE,KAAK,CAAC,IAAI,EAAE,2BAA2B,CAAC,CAAA;IAC1C,CAAC;CACF;AAPD,4CAOC"}
1
+ {"version":3,"file":"atAtPathResolver.js","sourceRoot":"","sources":["../../../../src/memory/pathResolvers/atAtPathResolver.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,2DAAuD;AAEvD;;;GAGG;AACH,MAAa,gBAAiB,SAAQ,qCAAiB;IACrD;;OAEG;IACH;QACE,KAAK,CAAC,IAAI,EAAE,2BAA2B,CAAC,CAAA;IAC1C,CAAC;CACF;AAPD,4CAOC"}
@@ -3,18 +3,24 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  import { AliasPathResolver } from './aliasPathResolver';
6
+ /**
7
+ * A path resolver that replaces the '@' alias with a specific prefix and transforms paths
8
+ * to access recognized entities in a conversational turn. It ensures that the resolved
9
+ * path includes the 'first()' function for entity properties.
10
+ */
6
11
  export declare class AtPathResolver extends AliasPathResolver {
7
12
  private readonly _prefix;
8
13
  private readonly _delims;
9
14
  /**
10
- * Initializes a new instance of the AtPathResolver class.
11
- */
15
+ * Initializes a new instance of the AtPathResolver class.
16
+ */
12
17
  constructor();
13
18
  /**
14
- * Transforms the path.
15
- *
16
- * @param path Path to inspect.
17
- * @returns The transformed path.
18
- */
19
+ * Transforms the path by replacing the '@' alias and appending the 'first()' function
20
+ * to entity properties.
21
+ *
22
+ * @param path The path to inspect and transform.
23
+ * @returns The transformed path.
24
+ */
19
25
  transformPath(path: string): string;
20
26
  }
@@ -6,21 +6,27 @@ exports.AtPathResolver = void 0;
6
6
  * Licensed under the MIT License.
7
7
  */
8
8
  const aliasPathResolver_1 = require("./aliasPathResolver");
9
+ /**
10
+ * A path resolver that replaces the '@' alias with a specific prefix and transforms paths
11
+ * to access recognized entities in a conversational turn. It ensures that the resolved
12
+ * path includes the 'first()' function for entity properties.
13
+ */
9
14
  class AtPathResolver extends aliasPathResolver_1.AliasPathResolver {
10
15
  /**
11
- * Initializes a new instance of the AtPathResolver class.
12
- */
16
+ * Initializes a new instance of the AtPathResolver class.
17
+ */
13
18
  constructor() {
14
19
  super('@', '');
15
20
  this._prefix = 'turn.recognized.entities.';
16
21
  this._delims = ['.', '['];
17
22
  }
18
23
  /**
19
- * Transforms the path.
20
- *
21
- * @param path Path to inspect.
22
- * @returns The transformed path.
23
- */
24
+ * Transforms the path by replacing the '@' alias and appending the 'first()' function
25
+ * to entity properties.
26
+ *
27
+ * @param path The path to inspect and transform.
28
+ * @returns The transformed path.
29
+ */
24
30
  transformPath(path) {
25
31
  path = path.trim();
26
32
  if (path.startsWith('@') && path.length > 1 && !path.startsWith('@@')) {
@@ -1 +1 @@
1
- {"version":3,"file":"atPathResolver.js","sourceRoot":"","sources":["../../../../src/memory/pathResolvers/atPathResolver.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,2DAAuD;AAEvD,MAAa,cAAe,SAAQ,qCAAiB;IAInD;;SAEK;IACL;QACE,KAAK,CAAC,GAAG,EAAE,EAAE,CAAC,CAAA;QAPC,YAAO,GAAG,2BAA2B,CAAA;QACrC,YAAO,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;IAOrC,CAAC;IAED;;;;;SAKK;IACL,aAAa,CAAE,IAAY;QACzB,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,CAAA;QAClB,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;YACtE,IAAI,GAAG,GAAG,CAAC,CAAC,CAAA;YACZ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC7C,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAA;gBAClD,IAAI,YAAY,IAAI,CAAC,EAAE,CAAC;oBACtB,GAAG,GAAG,YAAY,CAAA;oBAClB,MAAK;gBACP,CAAC;YACH,CA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BAClD,IAAI,YAAY,IAAI,CAAC,EAAE,CAAC;oBACtB,GAAG,GAAG,YAAY,CAAA;oBAClB,MAAK;gBACP,CAAC;YACH,CAAC;YACD,IAAI,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC;gBACf,GAAG,GAAG,IAAI,CAAC,MAAM,CAAA;YACnB,CAAC;YACD,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC,CAAA;YACxC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;YAC/B,IAAI,GAAG,GAAG,IAAI,CAAC,OAAO,GAAG,QAAQ,WAAW,MAAM,EAAE,CAAA;QACtD,CAAC;QAED,OAAO,IAAI,CAAA;IACb,CAAC;CACF;AAvCD,wCAuCC"}
@@ -3,9 +3,14 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  import { AliasPathResolver } from './aliasPathResolver';
6
+ /**
7
+ * A path resolver that resolves paths starting with a dollar sign ('$')
8
+ * to the 'dialog.' namespace.
9
+ */
6
10
  export declare class DollarPathResolver extends AliasPathResolver {
7
11
  /**
8
- * Initializes a new instance of the DollarPathResolver class.
9
- */
12
+ * Initializes a new instance of the DollarPathResolver class.
13
+ * This resolver maps paths starting with '$' to the 'dialog.' namespace.
14
+ */
10
15
  constructor();
11
16
  }
@@ -6,10 +6,15 @@ exports.DollarPathResolver = void 0;
6
6
  * Licensed under the MIT License.
7
7
  */
8
8
  const aliasPathResolver_1 = require("./aliasPathResolver");
9
+ /**
10
+ * A path resolver that resolves paths starting with a dollar sign ('$')
11
+ * to the 'dialog.' namespace.
12
+ */
9
13
  class DollarPathResolver extends aliasPathResolver_1.AliasPathResolver {
10
14
  /**
11
- * Initializes a new instance of the DollarPathResolver class.
12
- */
15
+ * Initializes a new instance of the DollarPathResolver class.
16
+ * This resolver maps paths starting with '$' to the 'dialog.' namespace.
17
+ */
13
18
  constructor() {
14
19
  super('$', 'dialog.');
15
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"dollarPathResolver.js","sourceRoot":"","sources":["../../../../src/memory/pathResolvers/dollarPathResolver.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,2DAAuD;AAEvD,MAAa,kBAAmB,SAAQ,qCAAiB;IACvD;;SAEK;IACL;QACE,KAAK,CAAC,GAAG,EAAE,SAAS,CAAC,CAAA;IACvB,CAAC;CACF;AAPD,gDAOC"}
1
+ {"version":3,"file":"dollarPathResolver.js","sourceRoot":"","sources":["../../../../src/memory/pathResolvers/dollarPathResolver.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,2DAAuD;AAEvD;;;GAGG;AACH,MAAa,kBAAmB,SAAQ,qCAAiB;IACvD;;;OAGG;IACH;QACE,KAAK,CAAC,GAAG,EAAE,SAAS,CAAC,CAAA;IACvB,CAAC;CACF;AARD,gDAQC"}
@@ -3,9 +3,14 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  import { AliasPathResolver } from './aliasPathResolver';
6
+ /**
7
+ * A path resolver that resolves paths starting with a hash sign ('#')
8
+ * to the 'turn.recognized.intents.' namespace.
9
+ */
6
10
  export declare class HashPathResolver extends AliasPathResolver {
7
11
  /**
8
- * Initializes a new instance of the HashPathResolver class.
9
- */
12
+ * Initializes a new instance of the HashPathResolver class.
13
+ * This resolver maps paths starting with '#' to the 'turn.recognized.intents.' namespace.
14
+ */
10
15
  constructor();
11
16
  }
@@ -6,10 +6,15 @@ exports.HashPathResolver = void 0;
6
6
  * Licensed under the MIT License.
7
7
  */
8
8
  const aliasPathResolver_1 = require("./aliasPathResolver");
9
+ /**
10
+ * A path resolver that resolves paths starting with a hash sign ('#')
11
+ * to the 'turn.recognized.intents.' namespace.
12
+ */
9
13
  class HashPathResolver extends aliasPathResolver_1.AliasPathResolver {
10
14
  /**
11
- * Initializes a new instance of the HashPathResolver class.
12
- */
15
+ * Initializes a new instance of the HashPathResolver class.
16
+ * This resolver maps paths starting with '#' to the 'turn.recognized.intents.' namespace.
17
+ */
13
18
  constructor() {
14
19
  super('#', 'turn.recognized.intents.');
15
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"hashPathResolver.js","sourceRoot":"","sources":["../../../../src/memory/pathResolvers/hashPathResolver.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,2DAAuD;AAEvD,MAAa,gBAAiB,SAAQ,qCAAiB;IACrD;;SAEK;IACL;QACE,KAAK,CAAC,GAAG,EAAE,0BAA0B,CAAC,CAAA;IACxC,CAAC;CACF;AAPD,4CAOC"}
1
+ {"version":3,"file":"hashPathResolver.js","sourceRoot":"","sources":["../../../../src/memory/pathResolvers/hashPathResolver.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,2DAAuD;AAEvD;;;GAGG;AACH,MAAa,gBAAiB,SAAQ,qCAAiB;IACrD;;;OAGG;IACH;QACE,KAAK,CAAC,GAAG,EAAE,0BAA0B,CAAC,CAAA;IACxC,CAAC;CACF;AARD,4CAQC"}
@@ -2,12 +2,17 @@
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
+ /**
6
+ * Interface for resolving and transforming paths.
7
+ * Implementations of this interface define how specific path patterns
8
+ * should be transformed into other formats or namespaces.
9
+ */
5
10
  export interface PathResolver {
6
11
  /**
7
- * Transform the path
8
- *
9
- * @param path Path to inspect.
10
- * @returns Transformed path
11
- */
12
+ * Transforms the given path into a new format or namespace.
13
+ *
14
+ * @param path - The path to inspect and transform.
15
+ * @returns The transformed path.
16
+ */
12
17
  transformPath(path: string): string;
13
18
  }
@@ -3,9 +3,14 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  import { AliasPathResolver } from './aliasPathResolver';
6
+ /**
7
+ * A path resolver that resolves paths starting with a percent sign ('%')
8
+ * to the 'class.' namespace.
9
+ */
6
10
  export declare class PercentPathResolver extends AliasPathResolver {
7
11
  /**
8
- * Initializes a new instance of the PercentPathResolver class.
9
- */
12
+ * Initializes a new instance of the PercentPathResolver class.
13
+ * This resolver maps paths starting with '%' to the 'class.' namespace.
14
+ */
10
15
  constructor();
11
16
  }
@@ -6,10 +6,15 @@ exports.PercentPathResolver = void 0;
6
6
  * Licensed under the MIT License.
7
7
  */
8
8
  const aliasPathResolver_1 = require("./aliasPathResolver");
9
+ /**
10
+ * A path resolver that resolves paths starting with a percent sign ('%')
11
+ * to the 'class.' namespace.
12
+ */
9
13
  class PercentPathResolver extends aliasPathResolver_1.AliasPathResolver {
10
14
  /**
11
- * Initializes a new instance of the PercentPathResolver class.
12
- */
15
+ * Initializes a new instance of the PercentPathResolver class.
16
+ * This resolver maps paths starting with '%' to the 'class.' namespace.
17
+ */
13
18
  constructor() {
14
19
  super('%', 'class.');
15
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"percentPathResolver.js","sourceRoot":"","sources":["../../../../src/memory/pathResolvers/percentPathResolver.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,2DAAuD;AAEvD,MAAa,mBAAoB,SAAQ,qCAAiB;IACxD;;SAEK;IACL;QACE,KAAK,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;IACtB,CAAC;CACF;AAPD,kDAOC"}
1
+ {"version":3,"file":"percentPathResolver.js","sourceRoot":"","sources":["../../../../src/memory/pathResolvers/percentPathResolver.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,2DAAuD;AAEvD;;;GAGG;AACH,MAAa,mBAAoB,SAAQ,qCAAiB;IACxD;;;OAGG;IACH;QACE,KAAK,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;IACtB,CAAC;CACF;AARD,kDAQC"}
@@ -6,13 +6,40 @@
6
6
  * Defines paths for the available scopes.
7
7
  */
8
8
  export declare class ScopePath {
9
+ /**
10
+ * Path for user-specific data.
11
+ */
9
12
  static readonly user = "user";
13
+ /**
14
+ * Path for conversation-specific data.
15
+ */
10
16
  static readonly conversation = "conversation";
17
+ /**
18
+ * Path for dialog-specific data.
19
+ */
11
20
  static readonly dialog = "dialog";
21
+ /**
22
+ * Path for dialog class-specific data.
23
+ */
12
24
  static readonly dialogClass = "dialogClass";
25
+ /**
26
+ * Path for dialog context-specific data.
27
+ */
13
28
  static readonly dialogContext = "dialogContext";
29
+ /**
30
+ * Path for the current dialog instance data.
31
+ */
14
32
  static readonly this = "this";
33
+ /**
34
+ * Path for class-specific data.
35
+ */
15
36
  static readonly class = "class";
37
+ /**
38
+ * Path for settings-specific data.
39
+ */
16
40
  static readonly settings = "settings";
41
+ /**
42
+ * Path for turn-specific data.
43
+ */
17
44
  static readonly turn = "turn";
18
45
  }
@@ -11,13 +11,40 @@ exports.ScopePath = void 0;
11
11
  class ScopePath {
12
12
  }
13
13
  exports.ScopePath = ScopePath;
14
+ /**
15
+ * Path for user-specific data.
16
+ */
14
17
  ScopePath.user = 'user';
18
+ /**
19
+ * Path for conversation-specific data.
20
+ */
15
21
  ScopePath.conversation = 'conversation';
22
+ /**
23
+ * Path for dialog-specific data.
24
+ */
16
25
  ScopePath.dialog = 'dialog';
26
+ /**
27
+ * Path for dialog class-specific data.
28
+ */
17
29
  ScopePath.dialogClass = 'dialogClass';
30
+ /**
31
+ * Path for dialog context-specific data.
32
+ */
18
33
  ScopePath.dialogContext = 'dialogContext';
34
+ /**
35
+ * Path for the current dialog instance data.
36
+ */
19
37
  ScopePath.this = 'this';
38
+ /**
39
+ * Path for class-specific data.
40
+ */
20
41
  ScopePath.class = 'class';
42
+ /**
43
+ * Path for settings-specific data.
44
+ */
21
45
  ScopePath.settings = 'settings';
46
+ /**
47
+ * Path for turn-specific data.
48
+ */
22
49
  ScopePath.turn = 'turn';
23
50
  //# sourceMappingURL=scopePath.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"scopePath.js","sourceRoot":"","sources":["../../../src/memory/scopePath.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;GAEG;AACH,MAAa,SAAS;;AAAtB,8BAUC;AATiB,cAAI,GAAG,MAAM,CAAA;AACb,sBAAY,GAAG,cAAc,CAAA;AAC7B,gBAAM,GAAG,QAAQ,CAAA;AACjB,qBAAW,GAAG,aAAa,CAAA;AAC3B,uBAAa,GAAG,eAAe,CAAA;AAC/B,cAAI,GAAG,MAAM,CAAA;AACb,eAAK,GAAG,OAAO,CAAA;AACf,kBAAQ,GAAG,UAAU,CAAA;AACrB,cAAI,GAAG,MAAM,CAAA"}
1
+ {"version":3,"file":"scopePath.js","sourceRoot":"","sources":["../../../src/memory/scopePath.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;GAEG;AACH,MAAa,SAAS;;AAAtB,8BA6CC;AA5CC;;GAEG;AACa,cAAI,GAAG,MAAM,CAAA;AAE7B;;GAEG;AACa,sBAAY,GAAG,cAAc,CAAA;AAE7C;;GAEG;AACa,gBAAM,GAAG,QAAQ,CAAA;AAEjC;;GAEG;AACa,qBAAW,GAAG,aAAa,CAAA;AAE3C;;GAEG;AACa,uBAAa,GAAG,eAAe,CAAA;AAE/C;;GAEG;AACa,cAAI,GAAG,MAAM,CAAA;AAE7B;;GAEG;AACa,eAAK,GAAG,OAAO,CAAA;AAE/B;;GAEG;AACa,kBAAQ,GAAG,UAAU,CAAA;AAErC;;GAEG;AACa,cAAI,GAAG,MAAM,CAAA"}