@microsoft/agents-hosting-dialogs 1.0.0 → 1.0.3-g444d99f704
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.
- package/dist/src/agentStateSet.d.ts +30 -27
- package/dist/src/agentStateSet.js +30 -27
- package/dist/src/agentStateSet.js.map +1 -1
- package/dist/src/choices/findValues.d.ts +21 -12
- package/dist/src/choices/findValues.js +8 -5
- package/dist/src/choices/findValues.js.map +1 -1
- package/dist/src/componentDialog.d.ts +117 -95
- package/dist/src/componentDialog.js +106 -84
- package/dist/src/componentDialog.js.map +1 -1
- package/dist/src/dialog.d.ts +15 -10
- package/dist/src/dialog.js +15 -10
- package/dist/src/dialog.js.map +1 -1
- package/dist/src/dialogContainer.d.ts +5 -2
- package/dist/src/dialogContainer.js +5 -2
- package/dist/src/dialogContainer.js.map +1 -1
- package/dist/src/dialogContext.d.ts +30 -9
- package/dist/src/dialogContext.js +31 -11
- package/dist/src/dialogContext.js.map +1 -1
- package/dist/src/dialogInstance.d.ts +11 -11
- package/dist/src/dialogReason.d.ts +13 -13
- package/dist/src/dialogReason.js +13 -13
- package/dist/src/dialogReason.js.map +1 -1
- package/dist/src/dialogSet.d.ts +11 -6
- package/dist/src/dialogSet.js +9 -4
- package/dist/src/dialogSet.js.map +1 -1
- package/dist/src/dialogTurnResult.d.ts +1 -0
- package/dist/src/dialogTurnStateConstants.d.ts +1 -0
- package/dist/src/dialogTurnStateConstants.js +1 -0
- package/dist/src/dialogTurnStateConstants.js.map +1 -1
- package/dist/src/dialogTurnStatus.d.ts +1 -0
- package/dist/src/dialogTurnStatus.js +1 -0
- package/dist/src/dialogTurnStatus.js.map +1 -1
- package/dist/src/memory/dialogStateManager.d.ts +9 -4
- package/dist/src/memory/dialogStateManager.js +9 -4
- package/dist/src/memory/dialogStateManager.js.map +1 -1
- package/dist/src/prompts/activityPrompt.d.ts +4 -0
- package/dist/src/prompts/activityPrompt.js +4 -0
- package/dist/src/prompts/activityPrompt.js.map +1 -1
- package/dist/src/prompts/attachmentPrompt.d.ts +1 -0
- package/dist/src/prompts/attachmentPrompt.js +1 -0
- package/dist/src/prompts/attachmentPrompt.js.map +1 -1
- package/dist/src/prompts/choicePrompt.d.ts +4 -0
- package/dist/src/prompts/choicePrompt.js +1 -0
- package/dist/src/prompts/choicePrompt.js.map +1 -1
- package/dist/src/prompts/confirmPrompt.d.ts +4 -1
- package/dist/src/prompts/confirmPrompt.js +1 -0
- package/dist/src/prompts/confirmPrompt.js.map +1 -1
- package/dist/src/prompts/datetimePrompt.d.ts +1 -0
- package/dist/src/prompts/datetimePrompt.js +1 -0
- package/dist/src/prompts/datetimePrompt.js.map +1 -1
- package/dist/src/prompts/numberPrompt.d.ts +1 -0
- package/dist/src/prompts/numberPrompt.js +1 -0
- package/dist/src/prompts/numberPrompt.js.map +1 -1
- package/dist/src/prompts/prompt.d.ts +22 -6
- package/dist/src/prompts/prompt.js +8 -0
- package/dist/src/prompts/prompt.js.map +1 -1
- package/dist/src/prompts/promptCultureModels.d.ts +16 -1
- package/dist/src/prompts/promptCultureModels.js +4 -1
- package/dist/src/prompts/promptCultureModels.js.map +1 -1
- package/dist/src/prompts/textPrompt.d.ts +3 -0
- package/dist/src/prompts/textPrompt.js +3 -0
- package/dist/src/prompts/textPrompt.js.map +1 -1
- package/dist/src/recognizer.d.ts +3 -0
- package/dist/src/recognizer.js +1 -0
- package/dist/src/recognizer.js.map +1 -1
- package/dist/src/recognizerResult.d.ts +5 -4
- package/dist/src/recognizerResult.js +5 -4
- package/dist/src/recognizerResult.js.map +1 -1
- package/dist/src/stringUtils.d.ts +4 -3
- package/dist/src/stringUtils.js +4 -3
- package/dist/src/stringUtils.js.map +1 -1
- package/dist/src/waterfallDialog.d.ts +11 -4
- package/dist/src/waterfallDialog.js +11 -4
- package/dist/src/waterfallDialog.js.map +1 -1
- package/package.json +2 -2
- package/src/agentStateSet.ts +30 -27
- package/src/choices/findValues.ts +21 -12
- package/src/componentDialog.ts +127 -97
- package/src/dialog.ts +15 -10
- package/src/dialogContainer.ts +5 -2
- package/src/dialogContext.ts +37 -11
- package/src/dialogInstance.ts +11 -11
- package/src/dialogReason.ts +13 -13
- package/src/dialogSet.ts +11 -6
- package/src/dialogTurnResult.ts +1 -0
- package/src/dialogTurnStateConstants.ts +1 -0
- package/src/dialogTurnStatus.ts +1 -0
- package/src/memory/dialogStateManager.ts +9 -4
- package/src/prompts/activityPrompt.ts +4 -0
- package/src/prompts/attachmentPrompt.ts +1 -0
- package/src/prompts/choicePrompt.ts +4 -0
- package/src/prompts/confirmPrompt.ts +4 -1
- package/src/prompts/datetimePrompt.ts +1 -0
- package/src/prompts/numberPrompt.ts +1 -0
- package/src/prompts/prompt.ts +22 -6
- package/src/prompts/promptCultureModels.ts +16 -1
- package/src/prompts/textPrompt.ts +3 -0
- package/src/recognizer.ts +3 -0
- package/src/recognizerResult.ts +5 -4
- package/src/stringUtils.ts +4 -3
- package/src/waterfallDialog.ts +11 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../../src/prompts/prompt.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,8DAAuE;AACvE,wCAAwE;AACxE,sCAAkC;AAMlC,gEAAgF;AAEhF;;;GAGG;AACH,IAAY,SA8BX;AA9BD,WAAY,SAAS;IACnB;;SAEK;IACL,yCAAI,CAAA;IAEJ;;SAEK;IACL,yCAAI,CAAA;IAEJ;;SAEK;IACL,6CAAM,CAAA;IAEN;;SAEK;IACL,yCAAI,CAAA;IAEJ;;SAEK;IACL,+DAAe,CAAA;IAEf;;SAEK;IACL,iDAAQ,CAAA;AACV,CAAC,EA9BW,SAAS,yBAAT,SAAS,QA8BpB;
|
|
1
|
+
{"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../../src/prompts/prompt.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,8DAAuE;AACvE,wCAAwE;AACxE,sCAAkC;AAMlC,gEAA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CultureModel {
|
|
7
7
|
/**
|
|
8
8
|
* The locale identifier for this culture model.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
9
11
|
* This follows the standard IETF language tag format (e.g., "en-US", "fr-FR", "ja-JP").
|
|
10
12
|
* Used to identify the target language and region for localization.
|
|
11
13
|
*
|
|
@@ -19,6 +21,8 @@ export interface PromptCultureModel {
|
|
|
19
21
|
locale: string;
|
|
20
22
|
/**
|
|
21
23
|
* The separator string used to delimit items in a list when presenting choices.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
22
26
|
* This is typically used between items in the middle of a list, not before the final item.
|
|
23
27
|
*
|
|
24
28
|
* @example
|
|
@@ -29,6 +33,8 @@ export interface PromptCultureModel {
|
|
|
29
33
|
separator: string;
|
|
30
34
|
/**
|
|
31
35
|
* The conjunction string used before the final item in a two-item list.
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
32
38
|
* This is used when presenting exactly two choices to the user.
|
|
33
39
|
*
|
|
34
40
|
* @example
|
|
@@ -41,6 +47,8 @@ export interface PromptCultureModel {
|
|
|
41
47
|
inlineOr: string;
|
|
42
48
|
/**
|
|
43
49
|
* The conjunction string used before the final item in a list of three or more items.
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
44
52
|
* This combines with the separator to create properly formatted choice lists.
|
|
45
53
|
*
|
|
46
54
|
* @example
|
|
@@ -53,6 +61,8 @@ export interface PromptCultureModel {
|
|
|
53
61
|
inlineOrMore: string;
|
|
54
62
|
/**
|
|
55
63
|
* The affirmative response word in the target language.
|
|
64
|
+
*
|
|
65
|
+
* @remarks
|
|
56
66
|
* Used in confirmation prompts and boolean choice scenarios.
|
|
57
67
|
*
|
|
58
68
|
* @example
|
|
@@ -65,6 +75,8 @@ export interface PromptCultureModel {
|
|
|
65
75
|
yesInLanguage: string;
|
|
66
76
|
/**
|
|
67
77
|
* The negative response word in the target language.
|
|
78
|
+
*
|
|
79
|
+
* @remarks
|
|
68
80
|
* Used in confirmation prompts and boolean choice scenarios.
|
|
69
81
|
*
|
|
70
82
|
* @example
|
|
@@ -128,8 +140,11 @@ export declare class PromptCultureModels {
|
|
|
128
140
|
*
|
|
129
141
|
* @param cultureCode The locale string to normalize (e.g., "en-US").
|
|
130
142
|
* @returns The normalized locale string.
|
|
131
|
-
*
|
|
143
|
+
*
|
|
144
|
+
* @remarks
|
|
145
|
+
* This is mostly a copy/paste from https://github.com/microsoft/Recognizers-Text/blob/master/JavaScript/packages/recognizers-text/src/culture.ts#L39
|
|
132
146
|
* This doesn't directly use Recognizers-Text's MapToNearestLanguage because if they add language support before we do, it will break our prompts.
|
|
147
|
+
*
|
|
133
148
|
*/
|
|
134
149
|
static mapToNearestLanguage(cultureCode: string): string;
|
|
135
150
|
/**
|
|
@@ -20,8 +20,11 @@ class PromptCultureModels {
|
|
|
20
20
|
*
|
|
21
21
|
* @param cultureCode The locale string to normalize (e.g., "en-US").
|
|
22
22
|
* @returns The normalized locale string.
|
|
23
|
-
*
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* This is mostly a copy/paste from https://github.com/microsoft/Recognizers-Text/blob/master/JavaScript/packages/recognizers-text/src/culture.ts#L39
|
|
24
26
|
* This doesn't directly use Recognizers-Text's MapToNearestLanguage because if they add language support before we do, it will break our prompts.
|
|
27
|
+
*
|
|
25
28
|
*/
|
|
26
29
|
static mapToNearestLanguage(cultureCode) {
|
|
27
30
|
if (cultureCode) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promptCultureModels.js","sourceRoot":"","sources":["../../../src/prompts/promptCultureModels.ts"],"names":[],"mappings":";;;AAAA,8EAA2D;
|
|
1
|
+
{"version":3,"file":"promptCultureModels.js","sourceRoot":"","sources":["../../../src/prompts/promptCultureModels.ts"],"names":[],"mappings":";;;AAAA,8EAA2D;AAkG3D;;GAEG;AACH,MAAa,mBAAmB;IA6G9B;;;;;SAKK;IACG,MAAM,CAAC,wBAAwB;QACrC,OAAO,IAAI,CAAC,o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,KAAK;IACf,YAAY,EAAE,MAAM;IACpB,aAAa,EAAE,IAAI;IACnB,YAAY,EAAE,IAAI;CACnB,CAAA;AA0CD;;;;KAIK;AACE,wCAAoB,GAAG,GAAyB,EAAE,CAAC;IACxD,mBAAmB,CAAC,OAAO;IAC3B,mBAAmB,CAAC,KAAK;IACzB,mBAAmB,CAAC,OAAO;IAC3B,mBAAmB,CAAC,MAAM;IAC1B,mBAAmB,CAAC,MAAM;IAC1B,mBAAmB,CAAC,OAAO;IAC3B,mBAAmB,CAAC,QAAQ;IAC5B,mBAAmB,CAAC,UAAU;IAC9B,mBAAmB,CAAC,OAAO;CAC5B,CAAA"}
|
|
@@ -11,6 +11,7 @@ import { DialogEvent } from '../dialogEvent';
|
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
13
|
* By default the prompt will return to the calling dialog a `string` representing the users reply.
|
|
14
|
+
*
|
|
14
15
|
*/
|
|
15
16
|
export declare class TextPrompt extends Prompt<string> {
|
|
16
17
|
constructor(dialogId?: string, validator?: PromptValidator<string>);
|
|
@@ -45,10 +46,12 @@ export declare class TextPrompt extends Prompt<string> {
|
|
|
45
46
|
* turn of conversation.
|
|
46
47
|
* @param _event DialogEvent, the event being raised.
|
|
47
48
|
* @returns Whether the event is handled by the current dialog and further processing should stop.
|
|
49
|
+
*
|
|
48
50
|
* @remarks
|
|
49
51
|
* This is a good place to perform interception of an event as returning `true` will prevent
|
|
50
52
|
* any further bubbling of the event to the dialogs parents and will also prevent any child
|
|
51
53
|
* dialogs from performing their default processing.
|
|
54
|
+
*
|
|
52
55
|
*/
|
|
53
56
|
protected onPreBubbleEvent(_dc: DialogContext, _event: DialogEvent): Promise<boolean>;
|
|
54
57
|
}
|
|
@@ -8,6 +8,7 @@ const agents_activity_1 = require("@microsoft/agents-activity");
|
|
|
8
8
|
*
|
|
9
9
|
* @remarks
|
|
10
10
|
* By default the prompt will return to the calling dialog a `string` representing the users reply.
|
|
11
|
+
*
|
|
11
12
|
*/
|
|
12
13
|
class TextPrompt extends prompt_1.Prompt {
|
|
13
14
|
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
|
@@ -55,10 +56,12 @@ class TextPrompt extends prompt_1.Prompt {
|
|
|
55
56
|
* turn of conversation.
|
|
56
57
|
* @param _event DialogEvent, the event being raised.
|
|
57
58
|
* @returns Whether the event is handled by the current dialog and further processing should stop.
|
|
59
|
+
*
|
|
58
60
|
* @remarks
|
|
59
61
|
* This is a good place to perform interception of an event as returning `true` will prevent
|
|
60
62
|
* any further bubbling of the event to the dialogs parents and will also prevent any child
|
|
61
63
|
* dialogs from performing their default processing.
|
|
64
|
+
*
|
|
62
65
|
*/
|
|
63
66
|
async onPreBubbleEvent(_dc, _event) {
|
|
64
67
|
return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textPrompt.js","sourceRoot":"","sources":["../../../src/prompts/textPrompt.ts"],"names":[],"mappings":";;;AAKA,qCAAyF;AAGzF,gEAAuD;AAEvD
|
|
1
|
+
{"version":3,"file":"textPrompt.js","sourceRoot":"","sources":["../../../src/prompts/textPrompt.ts"],"names":[],"mappings":";;;AAKA,qCAAyF;AAGzF,gEAAuD;AAEvD;;;;;;GAMG;AACH,MAAa,UAAW,SAAQ,eAAc;IAC5C,qEAAqE;IACrE,YAAa,QAAiB,EAAE,SAAmC;QACjE,KAAK,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAA;IAC5B,CAAC;IAED;;;;;;;;;;;SAWK;IACK,KAAK,CAAC,QAAQ,CACtB,OAAoB,EACpB,KAAU,EACV,OAAsB,EACtB,OAAgB;QAEhB,IAAI,OAAO,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;YACnC,MAAM,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,WAAW,EAAE,SAAS,EAAE,4BAAU,CAAC,cAAc,CAAC,CAAA;QACvF,CAAC;aAAM,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;YAC1B,MAAM,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,MAAM,EAAE,SAAS,EAAE,4BAAU,CAAC,cAAc,CAAC,CAAA;QAClF,CAAC;IACH,CAAC;IAED;;;;;;;;;SASK;IACK,KAAK,CAAC,WAAW,CACzB,OAAoB,EACpB,MAAW,EACX,QAAuB;QAEvB,MAAM,KAAK,GAAW,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAA;QAE3C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAA;IAC1G,CAAC;IAED;;;;;;;;;;;;;SAaK;IACK,KAAK,CAAC,gBAAgB,CAAE,GAAkB,EAAE,MAAmB;QACvE,OAAO,KAAK,CAAA;IACd,CAAC;CACF;AApED,gCAoEC"}
|
package/dist/src/recognizer.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { RecognizerResult } from './recognizerResult';
|
|
|
13
13
|
* This interface defines the configuration properties that can be used to customize
|
|
14
14
|
* the behavior and identification of a recognizer. Recognizers use this configuration
|
|
15
15
|
* to set up their basic properties and operational parameters.
|
|
16
|
+
*
|
|
16
17
|
*/
|
|
17
18
|
export interface RecognizerConfiguration {
|
|
18
19
|
/**
|
|
@@ -22,6 +23,7 @@ export interface RecognizerConfiguration {
|
|
|
22
23
|
* The id property allows you to distinguish between multiple recognizer instances
|
|
23
24
|
* and can be useful for logging, debugging, and telemetry purposes. If not provided,
|
|
24
25
|
* the recognizer will operate without a specific identifier.
|
|
26
|
+
*
|
|
25
27
|
*/
|
|
26
28
|
id?: string;
|
|
27
29
|
}
|
|
@@ -32,6 +34,7 @@ export interface RecognizerConfiguration {
|
|
|
32
34
|
* Recognizers process user input, such as text or speech, and return structured data representing
|
|
33
35
|
* the recognized intents, entities, and other relevant information. This class provides a foundation
|
|
34
36
|
* for creating custom recognizers by defining common methods and properties.
|
|
37
|
+
*
|
|
35
38
|
*/
|
|
36
39
|
export declare class Recognizer extends Configurable implements RecognizerConfiguration {
|
|
37
40
|
/**
|
package/dist/src/recognizer.js
CHANGED
|
@@ -14,6 +14,7 @@ const recognizerResult_1 = require("./recognizerResult");
|
|
|
14
14
|
* Recognizers process user input, such as text or speech, and return structured data representing
|
|
15
15
|
* the recognized intents, entities, and other relevant information. This class provides a foundation
|
|
16
16
|
* for creating custom recognizers by defining common methods and properties.
|
|
17
|
+
*
|
|
17
18
|
*/
|
|
18
19
|
class Recognizer extends configurable_1.Configurable {
|
|
19
20
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recognizer.js","sourceRoot":"","sources":["../../src/recognizer.ts"],"names":[],"mappings":";;;;;;AAKA,iDAA6C;AAE7C,uDAA8B;AAC9B,yDAA0E;
|
|
1
|
+
{"version":3,"file":"recognizer.js","sourceRoot":"","sources":["../../src/recognizer.ts"],"names":[],"mappings":";;;;;;AAKA,iDAA6C;AAE7C,uDAA8B;AAC9B,yDAA0E;AAwB1E;;;;;;;;GAQG;AACH,MAAa,UAAW,SAAQ,2BAAY;IAK1C;;;;;;;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,MAAM,CAAC,IAAI,CAAA;YAClB,SAAS,GAAG,MAAM,CAAC,SAAS,CAAA;YAC5B,MAAM,EAAE,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AAC,EAAE,CAAA;IACjG,CAAC;CACF;AAhHD,gCAgHC"}
|
|
@@ -29,7 +29,11 @@ export interface RecognizerResult {
|
|
|
29
29
|
[propName: string]: any;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Finds the intent with the highest confidence score from a recognizer result.
|
|
33
|
+
*
|
|
34
|
+
* @param result - The recognizer result containing intents and their scores
|
|
35
|
+
* @returns An object containing the top-scoring intent name and its confidence score
|
|
36
|
+
* @throws {Error} Throws an error if the result is empty or doesn't contain intents
|
|
33
37
|
*
|
|
34
38
|
* @remarks
|
|
35
39
|
* This function iterates through all intents in the recognizer result and returns
|
|
@@ -51,9 +55,6 @@ export interface RecognizerResult {
|
|
|
51
55
|
* // Returns: { intent: "BookFlight", score: 0.95 }
|
|
52
56
|
* ```
|
|
53
57
|
*
|
|
54
|
-
* @param result - The recognizer result containing intents and their scores
|
|
55
|
-
* @returns An object containing the top-scoring intent name and its confidence score
|
|
56
|
-
* @throws {Error} Throws an error if the result is empty or doesn't contain intents
|
|
57
58
|
*/
|
|
58
59
|
export declare const getTopScoringIntent: (result: RecognizerResult) => {
|
|
59
60
|
intent: string;
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getTopScoringIntent = void 0;
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Finds the intent with the highest confidence score from a recognizer result.
|
|
6
|
+
*
|
|
7
|
+
* @param result - The recognizer result containing intents and their scores
|
|
8
|
+
* @returns An object containing the top-scoring intent name and its confidence score
|
|
9
|
+
* @throws {Error} Throws an error if the result is empty or doesn't contain intents
|
|
6
10
|
*
|
|
7
11
|
* @remarks
|
|
8
12
|
* This function iterates through all intents in the recognizer result and returns
|
|
@@ -24,9 +28,6 @@ exports.getTopScoringIntent = void 0;
|
|
|
24
28
|
* // Returns: { intent: "BookFlight", score: 0.95 }
|
|
25
29
|
* ```
|
|
26
30
|
*
|
|
27
|
-
* @param result - The recognizer result containing intents and their scores
|
|
28
|
-
* @returns An object containing the top-scoring intent name and its confidence score
|
|
29
|
-
* @throws {Error} Throws an error if the result is empty or doesn't contain intents
|
|
30
31
|
*/
|
|
31
32
|
const getTopScoringIntent = (result) => {
|
|
32
33
|
var _a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recognizerResult.js","sourceRoot":"","sources":["../../src/recognizerResult.ts"],"names":[],"mappings":";;;AAoCA
|
|
1
|
+
{"version":3,"file":"recognizerResult.js","sourceRoot":"","sources":["../../src/recognizerResult.ts"],"names":[],"mappings":";;;AAoCA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACI,MAAM,mBAAmB,GAAG,CAAC,MAAwB,EAAqC,EAAE;;IACjG,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QAC/B,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACpC,CAAC;IAED,IAAI,SAAS,GAAG,EAAE,CAAA;IAClB,IAAI,QAAQ,GAAG,CAAC,CAAC,CAAA;IACjB,KAAK,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;QAClE,MAAM,KAAK,GAAG,MAAA,MAAM,CAAC,KAAK,mCAAI,CAAC,CAAC,CAAA;QAChC,IAAI,CAAC,SAAS,IAAI,KAAK,GAAG,QAAQ,EAAE,CAAC;YACnC,SAAS,GAAG,UAAU,CAAA;YACtB,QAAQ,GAAG,KAAK,CAAA;QAClB,CAAC;IACH,CAAC;IAED,OAAO;QACL,MAAM,EAAE,SAAS;QACjB,KAAK,EAAE,QAAQ;KAChB,CAAA;AACH,CAAC,CAAA;AAnBY,QAAA,mBAAmB,uBAmB/B"}
|
|
@@ -17,12 +17,13 @@ export declare class StringUtils {
|
|
|
17
17
|
/**
|
|
18
18
|
* UniqueHash - create a unique hash from a string.
|
|
19
19
|
*
|
|
20
|
+
* @param text Text to hash.
|
|
21
|
+
* @returns A string which is an unique hash.
|
|
22
|
+
*
|
|
20
23
|
* @remarks
|
|
21
24
|
* The source for this function was derived from the following article:
|
|
22
|
-
*
|
|
23
25
|
* https://werxltd.com/wp/2010/05/13/javascript-implementation-of-javas-string-hashcode-method/
|
|
24
|
-
*
|
|
25
|
-
* @returns A string which is an unique hash.
|
|
26
|
+
*
|
|
26
27
|
*/
|
|
27
28
|
static hash(text: string): string;
|
|
28
29
|
/**
|
package/dist/src/stringUtils.js
CHANGED
|
@@ -26,12 +26,13 @@ class StringUtils {
|
|
|
26
26
|
/**
|
|
27
27
|
* UniqueHash - create a unique hash from a string.
|
|
28
28
|
*
|
|
29
|
+
* @param text Text to hash.
|
|
30
|
+
* @returns A string which is an unique hash.
|
|
31
|
+
*
|
|
29
32
|
* @remarks
|
|
30
33
|
* The source for this function was derived from the following article:
|
|
31
|
-
*
|
|
32
34
|
* https://werxltd.com/wp/2010/05/13/javascript-implementation-of-javas-string-hashcode-method/
|
|
33
|
-
*
|
|
34
|
-
* @returns A string which is an unique hash.
|
|
35
|
+
*
|
|
35
36
|
*/
|
|
36
37
|
static hash(text) {
|
|
37
38
|
const length = text.length;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stringUtils.js","sourceRoot":"","sources":["../../src/stringUtils.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;GAEG;AACH,MAAa,WAAW;IACtB;;;;;;SAMK;IACL,MAAM,CAAC,QAAQ,CAAE,IAAY,EAAE,MAAc;QAC3C,IAAI,GAAG,IAAI,IAAI,EAAE,CAAA;QACjB,IAAI,IAAI,CAAC,MAAM,IAAI,MAAM,EAAE,CAAC;YAC1B,OAAO,IAAI,CAAA;QACb,CAAC;QAED,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,CAAA;IACvC,CAAC;IAED
|
|
1
|
+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tDD,kCAsDC"}
|
|
@@ -19,10 +19,12 @@ export declare class WaterfallDialog<O extends object = {}> extends Dialog<O> {
|
|
|
19
19
|
/**
|
|
20
20
|
* Creates a new waterfall dialog containing the given array of steps.
|
|
21
21
|
*
|
|
22
|
-
* @remarks
|
|
23
|
-
* See the {@link WaterfallDialog.addStep | addStep function} for details on creating a valid step function.
|
|
24
22
|
* @param dialogId Unique ID of the dialog within the component or set its being added to.
|
|
25
23
|
* @param steps (Optional) array of asynchronous waterfall step functions.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* See the {@link WaterfallDialog.addStep | addStep function} for details on creating a valid step function.
|
|
27
|
+
|
|
26
28
|
*/
|
|
27
29
|
constructor(dialogId: string, steps?: WaterfallStep<O>[]);
|
|
28
30
|
/**
|
|
@@ -44,9 +46,11 @@ export declare class WaterfallDialog<O extends object = {}> extends Dialog<O> {
|
|
|
44
46
|
* @param dialogContext The {@link DialogContext} for the current turn of conversation.
|
|
45
47
|
* @param options Optional, initial information to pass to the Dialog.
|
|
46
48
|
* @returns A Promise representing the asynchronous operation.
|
|
49
|
+
*
|
|
47
50
|
* @remarks
|
|
48
51
|
* If the task is successful, the result indicates whether the Dialog is still
|
|
49
52
|
* active after the turn has been processed by the dialog.
|
|
53
|
+
*
|
|
50
54
|
*/
|
|
51
55
|
beginDialog(dialogContext: DialogContext, options?: O): Promise<DialogTurnResult>;
|
|
52
56
|
/**
|
|
@@ -55,10 +59,12 @@ export declare class WaterfallDialog<O extends object = {}> extends Dialog<O> {
|
|
|
55
59
|
*
|
|
56
60
|
* @param dialogContext The {@link DialogContext} for the current turn of conversation.
|
|
57
61
|
* @returns A Promise representing the asynchronous operation.
|
|
62
|
+
*
|
|
58
63
|
* @remarks
|
|
59
64
|
* If the task is successful, the result indicates whether the dialog is still
|
|
60
65
|
* active after the turn has been processed by the dialog. The result may also contain a
|
|
61
66
|
* return value.
|
|
67
|
+
*
|
|
62
68
|
*/
|
|
63
69
|
continueDialog(dialogContext: DialogContext): Promise<DialogTurnResult>;
|
|
64
70
|
/**
|
|
@@ -74,11 +80,12 @@ export declare class WaterfallDialog<O extends object = {}> extends Dialog<O> {
|
|
|
74
80
|
/**
|
|
75
81
|
* Called when an individual waterfall step is being executed.
|
|
76
82
|
*
|
|
83
|
+
* @param step Context object for the waterfall step to execute.
|
|
84
|
+
* @returns A promise with the DialogTurnResult.
|
|
85
|
+
*
|
|
77
86
|
* @remarks
|
|
78
87
|
* SHOULD be overridden by derived class that want to add custom logging semantics.
|
|
79
88
|
*
|
|
80
|
-
* @param step Context object for the waterfall step to execute.
|
|
81
|
-
* @returns A promise with the DialogTurnResult.
|
|
82
89
|
*/
|
|
83
90
|
protected onStep(step: WaterfallStepContext<O>): Promise<DialogTurnResult>;
|
|
84
91
|
/**
|
|
@@ -18,10 +18,12 @@ class WaterfallDialog extends dialog_1.Dialog {
|
|
|
18
18
|
/**
|
|
19
19
|
* Creates a new waterfall dialog containing the given array of steps.
|
|
20
20
|
*
|
|
21
|
-
* @remarks
|
|
22
|
-
* See the {@link WaterfallDialog.addStep | addStep function} for details on creating a valid step function.
|
|
23
21
|
* @param dialogId Unique ID of the dialog within the component or set its being added to.
|
|
24
22
|
* @param steps (Optional) array of asynchronous waterfall step functions.
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* See the {@link WaterfallDialog.addStep | addStep function} for details on creating a valid step function.
|
|
26
|
+
|
|
25
27
|
*/
|
|
26
28
|
constructor(dialogId, steps) {
|
|
27
29
|
super(dialogId);
|
|
@@ -56,9 +58,11 @@ class WaterfallDialog extends dialog_1.Dialog {
|
|
|
56
58
|
* @param dialogContext The {@link DialogContext} for the current turn of conversation.
|
|
57
59
|
* @param options Optional, initial information to pass to the Dialog.
|
|
58
60
|
* @returns A Promise representing the asynchronous operation.
|
|
61
|
+
*
|
|
59
62
|
* @remarks
|
|
60
63
|
* If the task is successful, the result indicates whether the Dialog is still
|
|
61
64
|
* active after the turn has been processed by the dialog.
|
|
65
|
+
*
|
|
62
66
|
*/
|
|
63
67
|
async beginDialog(dialogContext, options) {
|
|
64
68
|
const state = dialogContext.activeDialog.state;
|
|
@@ -75,10 +79,12 @@ class WaterfallDialog extends dialog_1.Dialog {
|
|
|
75
79
|
*
|
|
76
80
|
* @param dialogContext The {@link DialogContext} for the current turn of conversation.
|
|
77
81
|
* @returns A Promise representing the asynchronous operation.
|
|
82
|
+
*
|
|
78
83
|
* @remarks
|
|
79
84
|
* If the task is successful, the result indicates whether the dialog is still
|
|
80
85
|
* active after the turn has been processed by the dialog. The result may also contain a
|
|
81
86
|
* return value.
|
|
87
|
+
*
|
|
82
88
|
*/
|
|
83
89
|
async continueDialog(dialogContext) {
|
|
84
90
|
// Don't do anything for non-message activities
|
|
@@ -105,11 +111,12 @@ class WaterfallDialog extends dialog_1.Dialog {
|
|
|
105
111
|
/**
|
|
106
112
|
* Called when an individual waterfall step is being executed.
|
|
107
113
|
*
|
|
114
|
+
* @param step Context object for the waterfall step to execute.
|
|
115
|
+
* @returns A promise with the DialogTurnResult.
|
|
116
|
+
*
|
|
108
117
|
* @remarks
|
|
109
118
|
* SHOULD be overridden by derived class that want to add custom logging semantics.
|
|
110
119
|
*
|
|
111
|
-
* @param step Context object for the waterfall step to execute.
|
|
112
|
-
* @returns A promise with the DialogTurnResult.
|
|
113
120
|
*/
|
|
114
121
|
async onStep(step) {
|
|
115
122
|
return await this.steps[step.index](step);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waterfallDialog.js","sourceRoot":"","sources":["../../src/waterfallDialog.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,+BAAmC;AACnC,gEAA0D;AAC1D,qCAAiC;AAEjC,iEAA6D;AAE7D,iDAA6C;AAU7C;;;GAGG;AACH,MAAa,eAAuC,SAAQ,eAAS;IAGnE
|
|
1
|
+
{"version":3,"file":"waterfallDialog.js","sourceRoot":"","sources":["../../src/waterfallDialog.ts"],"names":[],"mappings":";;;AAAA;;;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,CAAC;wBACf,MAAM,IAAI,KAAK,CACC,2EAA2E,IAAI,CAAC,EAAE,IAAI,KAAK,KAAK,CAC/G,CAAA;oBACH,CAAC;oBACD,UAAU,GAAG,IAAI,CAAA;oBACjB,OAAO,MAAM,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,2BAAY,CAAC,UAAU,EAAE,UAAU,CAAC,CAAA;gBACzE,CAAC;aACF,CAAC,CAAA;YAEF,eAAe;YACf,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;QAChC,CAAC;aAAM,CAAC;YACN,4CAA4C;YAC5C,OAAO,MAAM,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;QACnC,CAAC;IACH,CAAC;IAED;;;;;SAKK;IACG,iBAAiB,CAAE,KAAa;QACtC,sEAAsE;QACtE,sCAAsC;QACtC,IAAI,QAAQ,GAAG,EAAE,CAAA;QACjB,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;YACtB,IAAI,CAAC;gBACH,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CAAA;YACnC,CAAC;oBAAS,CAAC;gBACT,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,EAAE,EAAE,CAAC;oBAC9C,QAAQ,GAAG,MAAM,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAA;gBAC5D,CAAC;YACH,CAAC;QACH,CAAC;QACD,OAAO,QAAQ,CAAA;IACjB,CAAC;CACF;AA5LD,0CA4LC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@microsoft/agents-hosting-dialogs",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3-g444d99f704",
|
|
5
5
|
"homepage": "https://github.com/microsoft/Agents-for-js",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"main": "dist/index.js",
|
|
17
17
|
"types": "dist/src/index.d.ts",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@microsoft/agents-hosting": "1.0.
|
|
19
|
+
"@microsoft/agents-hosting": "1.0.3-g444d99f704",
|
|
20
20
|
"@types/lodash": "^4.17.16",
|
|
21
21
|
"dependency-graph": "^1.0.0",
|
|
22
22
|
"@microsoft/recognizers-text-suite": "^1.3.1",
|
package/src/agentStateSet.ts
CHANGED
|
@@ -6,29 +6,31 @@ import { AgentState, TurnContext } from '@microsoft/agents-hosting'
|
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* A collection of `AgentState` plugins that should be loaded or saved in parallel as a single unit.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
9
11
|
* See `AutoSaveStateMiddleware` for an implementation of this class.
|
|
10
12
|
*/
|
|
11
13
|
export class AgentStateSet {
|
|
12
14
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
* Array of the sets `AgentState` plugins.
|
|
16
|
+
*/
|
|
15
17
|
readonly agentStates: AgentState[] = []
|
|
16
18
|
|
|
17
19
|
/**
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
* Creates a new AgentStateSet instance.
|
|
21
|
+
*
|
|
22
|
+
* @param agentStates One or more AgentState plugins to register.
|
|
23
|
+
*/
|
|
22
24
|
constructor (...agentStates: AgentState[]) {
|
|
23
25
|
AgentStateSet.prototype.add.apply(this, agentStates)
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
* Registers one or more `AgentState` plugins with the set.
|
|
30
|
+
*
|
|
31
|
+
* @param agentStates One or more AgentState plugins to register.
|
|
32
|
+
* @returns The updated AgentStateSet.
|
|
33
|
+
*/
|
|
32
34
|
add (...agentStates: AgentState[]): this {
|
|
33
35
|
agentStates.forEach((agentstate: AgentState) => {
|
|
34
36
|
if (typeof agentstate.load === 'function' && typeof agentstate.saveChanges === 'function') {
|
|
@@ -42,14 +44,15 @@ export class AgentStateSet {
|
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
/**
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
* Calls the {@link AgentState.load | AgentState.load method} on all of the AgentState plugins in the set.
|
|
48
|
+
*
|
|
49
|
+
* @param context Context for current turn of conversation with the user.
|
|
50
|
+
* @param force (Optional) If `true` the cache will be bypassed and the state will always be read in directly from storage. Defaults to `false`.
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* This will trigger all of the plugins to read in their state in parallel.
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
53
56
|
async loadAll (context: TurnContext, force = false): Promise<void> {
|
|
54
57
|
const promises: Promise<any>[] = this.agentStates.map((agentstate: AgentState) => agentstate.load(context, force))
|
|
55
58
|
|
|
@@ -57,14 +60,14 @@ export class AgentStateSet {
|
|
|
57
60
|
}
|
|
58
61
|
|
|
59
62
|
/**
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
* Calls {@link AgentState.saveChanges | AgentState.saveChanges method} on all of the AgentState plugins in the set.
|
|
64
|
+
*
|
|
65
|
+
* @param context Context for current turn of conversation with the user.
|
|
66
|
+
* @param force (Optional) if `true` the state will always be written out regardless of its change state. Defaults to `false`.
|
|
67
|
+
*
|
|
68
|
+
* @remarks
|
|
69
|
+
* This will trigger all of the plugins to write out their state in parallel.
|
|
70
|
+
*/
|
|
68
71
|
async saveAllChanges (context: TurnContext, force = false): Promise<void> {
|
|
69
72
|
const promises: Promise<void>[] = this.agentStates.map((agentstate: AgentState) =>
|
|
70
73
|
agentstate.saveChanges(context, force)
|