Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions libraries/botbuilder-ai/lib/dateTimeSpec.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**
* @module botbuilder-ai
* /
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
/** LUIS recognizes time expressions like "next monday" and converts those to a type and set of timex expressions.
* More information on timex can be found here: http://www.timeml.org/publications/timeMLdocs/timeml_1.2.1.html#timex3
* More information on the library which does the recognition can be found here: https://github.com/Microsoft/Recognizers-Text
*/
export interface DateTimeSpec {
/** Type of expression.
* Example types include:
* time -- simple time expression like "3pm".
* date -- simple date like "july 3rd".
* datetime -- combination of date and time like "march 23 2pm".
* timerange -- a range of time like "2pm to 4pm".
* daterange -- a range of dates like "march 23rd to 24th".
* datetimerange -- a range of dates and times like "july 3rd 2pm to 5th 4pm".
* set -- a recurrence like "every monday".
*/
type: string;
/** Timex expressions. */
timex: [string];
}
10 changes: 10 additions & 0 deletions libraries/botbuilder-ai/lib/dateTimeSpec.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions libraries/botbuilder-ai/lib/dateTimeSpec.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions libraries/botbuilder-ai/lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ export * from './luisRecognizer';
export * from './qnaMaker';
export * from './languageTranslator';
export * from './localeConverter';
export * from './dateTimeSpec';
export * from './instanceData';
export * from './intentData';
export * from './numberWithUnits';
17 changes: 17 additions & 0 deletions libraries/botbuilder-ai/lib/instanceData.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* @module botbuilder-ai
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
/** Strongly typed information corresponding to LUIS $instance value. */
export interface InstanceData {
/** 0-based index in the analyzed text for where entity starts. */
startIndex: number;
/** 0-based index of the first character beyond the recognized entity. */
endIndex: number;
text: string;
/** Optional confidence in the recognition. */
score?: number;
}
10 changes: 10 additions & 0 deletions libraries/botbuilder-ai/lib/instanceData.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions libraries/botbuilder-ai/lib/instanceData.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions libraries/botbuilder-ai/lib/intentData.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* @module botbuilder-ai
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
export interface IntentData {
/** Confidence in intent classification. */
score: number;
}
3 changes: 3 additions & 0 deletions libraries/botbuilder-ai/lib/intentData.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions libraries/botbuilder-ai/lib/intentData.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions libraries/botbuilder-ai/lib/languageTranslator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion libraries/botbuilder-ai/lib/languageTranslator.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion libraries/botbuilder-ai/lib/luisRecognizer.js.map

Large diffs are not rendered by default.

172 changes: 0 additions & 172 deletions libraries/botbuilder-ai/lib/luisSchema.d.ts

This file was deleted.

14 changes: 14 additions & 0 deletions libraries/botbuilder-ai/lib/numberWithUnits.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* @module botbuilder-ai
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
/** A number together with units returned by a recognizer. */
export interface NumberWithUnits {
/** A recognized number if any. */
readonly number?: number;
/** Units for the number. */
readonly units: string;
}
10 changes: 10 additions & 0 deletions libraries/botbuilder-ai/lib/numberWithUnits.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions libraries/botbuilder-ai/lib/numberWithUnits.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading