Skip to content

Commit 7eff262

Browse files
feat: export ai components for runtime consumption (#3586) (#3587)
1 parent 8ad9b3c commit 7eff262

File tree

14 files changed

+162
-4
lines changed

14 files changed

+162
-4
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "../../.eslintrc.json"
3+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
_ts3.4
2+
lib
3+
node_modules
4+
runtime.json
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# botbuilder-ai-luis
2+
3+
The [LuisBotComponent](https://github.com/microsoft/botbuilder-js/blob/main/libraries/botbuilder-ai/src/luisBotComponent.ts)
4+
repackaged for consumption as a component in the Adaptive Dialogs runtime.
5+
6+
See the [botbuilder-ai](https://github.com/microsoft/botbuilder-js/blob/main/libraries/botbuilder-ai/README.md)
7+
package for more details.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"name": "botbuilder-ai-luis",
3+
"preview": true,
4+
"author": "Microsoft Corp.",
5+
"version": "4.1.6",
6+
"license": "MIT",
7+
"description": "Luis component for Microsoft BotBuilder Adaptive Dialogs runtime",
8+
"keywords": [
9+
"botbuilder",
10+
"botframework",
11+
"bots",
12+
"chatbots"
13+
],
14+
"bugs": {
15+
"url": "https://github.com/Microsoft/botbuilder-js/issues"
16+
},
17+
"repository": {
18+
"type": "git",
19+
"url": "https://github.com/Microsoft/botbuilder-js.git"
20+
},
21+
"main": "lib/index.js",
22+
"types": "lib/index.d.ts",
23+
"typesVersions": {
24+
"<3.9": {
25+
"*": [
26+
"_ts3.4/*"
27+
]
28+
}
29+
},
30+
"dependencies": {
31+
"botbuilder-ai": "4.1.6"
32+
},
33+
"scripts": {
34+
"build": "tsc -b",
35+
"clean": "rimraf _ts3.4 lib tsconfig.tsbuildinfo",
36+
"lint": "eslint . --ext .js,.ts",
37+
"postbuild": "downlevel-dts lib _ts3.4/lib --checksum"
38+
},
39+
"files": [
40+
"_ts3.4",
41+
"lib",
42+
"src"
43+
]
44+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
import { LuisBotComponent } from 'botbuilder-ai';
5+
6+
export default LuisBotComponent;
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"esModuleInterop": true,
5+
"outDir": "lib",
6+
"rootDir": "src",
7+
"strict": true,
8+
"strictNullChecks": true,
9+
"target": "es6"
10+
},
11+
"include": [
12+
"src/**/*"
13+
]
14+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "../../.eslintrc.json"
3+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
_ts3.4
2+
lib
3+
node_modules
4+
runtime.json

libraries/botbuilder-ai-qna/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# botbuilder-ai-qna
2+
3+
The [QnAMakerBotComponent](https://github.com/microsoft/botbuilder-js/blob/main/libraries/botbuilder-ai/src/qnaMakerBotComponent.ts)
4+
repackaged for consumption as a component in the Adaptive Dialogs runtime.
5+
6+
See the [botbuilder-ai](https://github.com/microsoft/botbuilder-js/blob/main/libraries/botbuilder-ai/README.md)
7+
package for more details.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"name": "botbuilder-ai-qna",
3+
"preview": true,
4+
"author": "Microsoft Corp.",
5+
"version": "4.1.6",
6+
"license": "MIT",
7+
"description": "QnAMaker component for Microsoft BotBuilder Adaptive Dialogs runtime",
8+
"keywords": [
9+
"botbuilder",
10+
"botframework",
11+
"bots",
12+
"chatbots"
13+
],
14+
"bugs": {
15+
"url": "https://github.com/Microsoft/botbuilder-js/issues"
16+
},
17+
"repository": {
18+
"type": "git",
19+
"url": "https://github.com/Microsoft/botbuilder-js.git"
20+
},
21+
"main": "lib/index.js",
22+
"types": "lib/index.d.ts",
23+
"typesVersions": {
24+
"<3.9": {
25+
"*": [
26+
"_ts3.4/*"
27+
]
28+
}
29+
},
30+
"dependencies": {
31+
"botbuilder-ai": "4.1.6"
32+
},
33+
"scripts": {
34+
"build": "tsc -b",
35+
"clean": "rimraf _ts3.4 lib tsconfig.tsbuildinfo",
36+
"lint": "eslint . --ext .js,.ts",
37+
"postbuild": "downlevel-dts lib _ts3.4/lib --checksum"
38+
},
39+
"files": [
40+
"_ts3.4",
41+
"lib",
42+
"src"
43+
]
44+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
import { QnAMakerBotComponent } from 'botbuilder-ai';
5+
6+
export default QnAMakerBotComponent;
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"esModuleInterop": true,
5+
"outDir": "lib",
6+
"rootDir": "src",
7+
"strict": true,
8+
"strictNullChecks": true,
9+
"target": "es6"
10+
},
11+
"include": [
12+
"src/**/*"
13+
]
14+
}

libraries/botbuilder-dialogs-adaptive-runtime/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
},
3030
"dependencies": {
3131
"botbuilder": "4.1.6",
32-
"botbuilder-ai": "4.1.6",
32+
"botbuilder-ai-luis": "4.1.6",
33+
"botbuilder-ai-qna": "4.1.6",
3334
"botbuilder-applicationinsights": "4.1.6",
3435
"botbuilder-azure": "4.1.6",
3536
"botbuilder-azure-blobs": "4.1.6",

libraries/botbuilder-dialogs-adaptive-runtime/src/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ import fs from 'fs';
66
import path from 'path';
77
import { Configuration } from './configuration';
88

9-
import { DialogsBotComponent, MemoryScope, PathResolver } from 'botbuilder-dialogs';
9+
import LuisBotComponent from 'botbuilder-ai-luis';
10+
import QnAMakerBotComponent from 'botbuilder-ai-qna';
1011
import { AdaptiveBotComponent, LanguageGenerationBotComponent } from 'botbuilder-dialogs-adaptive';
1112
import { ApplicationInsightsTelemetryClient, TelemetryInitializerMiddleware } from 'botbuilder-applicationinsights';
1213
import { BlobsStorage, BlobsTranscriptStore } from 'botbuilder-azure-blobs';
14+
import { ComponentDeclarativeTypes, ResourceExplorer } from 'botbuilder-dialogs-declarative';
1315
import { ConfigurationResourceExporer } from './configurationResourceExplorer';
1416
import { CoreBot } from './coreBot';
1517
import { CoreBotAdapter } from './coreBotAdapter';
1618
import { CosmosDbPartitionedStorage } from 'botbuilder-azure';
17-
import { ComponentDeclarativeTypes, ResourceExplorer } from 'botbuilder-dialogs-declarative';
18-
import { LuisBotComponent, QnAMakerBotComponent } from 'botbuilder-ai';
19+
import { DialogsBotComponent, MemoryScope, PathResolver } from 'botbuilder-dialogs';
1920
import { ServiceCollection } from 'botbuilder-dialogs-adaptive-runtime-core';
2021

2122
import {

0 commit comments

Comments
 (0)