Skip to content

Commit ada2099

Browse files
author
awstools
committed
feat(client-lex-models-v2): Add support for the Assisted NLU feature to improve bot performance
1 parent bb7a56d commit ada2099

File tree

7 files changed

+57
-20
lines changed

7 files changed

+57
-20
lines changed

clients/client-lex-models-v2/src/commands/CreateBotLocaleCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ export interface CreateBotLocaleCommandOutput extends CreateBotLocaleResponse, _
6262
* customPrompt: "STRING_VALUE",
6363
* },
6464
* },
65+
* nluImprovement: { // NluImprovementSpecification
66+
* enabled: true || false, // required
67+
* },
6568
* },
6669
* buildtimeSettings: { // BuildtimeSettings
6770
* descriptiveBotBuilder: { // DescriptiveBotBuilderSpecification
@@ -120,6 +123,9 @@ export interface CreateBotLocaleCommandOutput extends CreateBotLocaleResponse, _
120123
* // customPrompt: "STRING_VALUE",
121124
* // },
122125
* // },
126+
* // nluImprovement: { // NluImprovementSpecification
127+
* // enabled: true || false, // required
128+
* // },
123129
* // },
124130
* // buildtimeSettings: { // BuildtimeSettings
125131
* // descriptiveBotBuilder: { // DescriptiveBotBuilderSpecification

clients/client-lex-models-v2/src/commands/DescribeBotAliasCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
88
import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
9-
import { DescribeBotAliasRequest } from "../models/models_0";
10-
import { DescribeBotAliasResponse } from "../models/models_1";
9+
import { DescribeBotAliasRequest, DescribeBotAliasResponse } from "../models/models_1";
1110
import { de_DescribeBotAliasCommand, se_DescribeBotAliasCommand } from "../protocols/Aws_restJson1";
1211

1312
/**

clients/client-lex-models-v2/src/commands/DescribeBotLocaleCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ export interface DescribeBotLocaleCommandOutput extends DescribeBotLocaleRespons
8585
* // customPrompt: "STRING_VALUE",
8686
* // },
8787
* // },
88+
* // nluImprovement: { // NluImprovementSpecification
89+
* // enabled: true || false, // required
90+
* // },
8891
* // },
8992
* // buildtimeSettings: { // BuildtimeSettings
9093
* // descriptiveBotBuilder: { // DescriptiveBotBuilderSpecification

clients/client-lex-models-v2/src/commands/UpdateBotLocaleCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ export interface UpdateBotLocaleCommandOutput extends UpdateBotLocaleResponse, _
5959
* customPrompt: "STRING_VALUE",
6060
* },
6161
* },
62+
* nluImprovement: { // NluImprovementSpecification
63+
* enabled: true || false, // required
64+
* },
6265
* },
6366
* buildtimeSettings: { // BuildtimeSettings
6467
* descriptiveBotBuilder: { // DescriptiveBotBuilderSpecification
@@ -124,6 +127,9 @@ export interface UpdateBotLocaleCommandOutput extends UpdateBotLocaleResponse, _
124127
* // customPrompt: "STRING_VALUE",
125128
* // },
126129
* // },
130+
* // nluImprovement: { // NluImprovementSpecification
131+
* // enabled: true || false, // required
132+
* // },
127133
* // },
128134
* // buildtimeSettings: { // BuildtimeSettings
129135
* // descriptiveBotBuilder: { // DescriptiveBotBuilderSpecification

clients/client-lex-models-v2/src/models/models_0.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5499,6 +5499,18 @@ export interface CreateBotAliasResponse {
54995499
tags?: Record<string, string> | undefined;
55005500
}
55015501

5502+
/**
5503+
* <p>Specifies whether the assisted nlu feature is turned on or off.</p>
5504+
* @public
5505+
*/
5506+
export interface NluImprovementSpecification {
5507+
/**
5508+
* <p>Specifies whether the assisted nlu feature is enabled.</p>
5509+
* @public
5510+
*/
5511+
enabled: boolean | undefined;
5512+
}
5513+
55025514
/**
55035515
* <p>Contains specifications for the assisted slot resolution feature.</p>
55045516
* @public
@@ -5527,6 +5539,12 @@ export interface RuntimeSettings {
55275539
* @public
55285540
*/
55295541
slotResolutionImprovement?: SlotResolutionImprovementSpecification | undefined;
5542+
5543+
/**
5544+
* <p>An object containing specifications for the assisted nlu feature.</p>
5545+
* @public
5546+
*/
5547+
nluImprovement?: NluImprovementSpecification | undefined;
55305548
}
55315549

55325550
/**
@@ -8160,24 +8178,6 @@ export interface DescribeBotResponse {
81608178
errorLogSettings?: ErrorLogSettings | undefined;
81618179
}
81628180

8163-
/**
8164-
* @public
8165-
*/
8166-
export interface DescribeBotAliasRequest {
8167-
/**
8168-
* <p>The identifier of the bot alias to describe.</p>
8169-
* @public
8170-
*/
8171-
botAliasId: string | undefined;
8172-
8173-
/**
8174-
* <p>The identifier of the bot associated with the bot alias to
8175-
* describe.</p>
8176-
* @public
8177-
*/
8178-
botId: string | undefined;
8179-
}
8180-
81818181
/**
81828182
* @internal
81838183
*/

clients/client-lex-models-v2/src/models/models_1.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,24 @@ import {
118118
WaitAndContinueSpecification,
119119
} from "./models_0";
120120

121+
/**
122+
* @public
123+
*/
124+
export interface DescribeBotAliasRequest {
125+
/**
126+
* <p>The identifier of the bot alias to describe.</p>
127+
* @public
128+
*/
129+
botAliasId: string | undefined;
130+
131+
/**
132+
* <p>The identifier of the bot associated with the bot alias to
133+
* describe.</p>
134+
* @public
135+
*/
136+
botId: string | undefined;
137+
}
138+
121139
/**
122140
* <p>A network of bots.</p>
123141
* @public

clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ import {
353353
MessageGroup,
354354
MultipleValuesSetting,
355355
NewCustomVocabularyItem,
356+
NluImprovementSpecification,
356357
ObfuscationSetting,
357358
OpensearchConfiguration,
358359
OutputContext,
@@ -6152,6 +6153,8 @@ const se_LexTranscriptFilter = (input: LexTranscriptFilter, context: __SerdeCont
61526153

61536154
// se_NewCustomVocabularyItem omitted.
61546155

6156+
// se_NluImprovementSpecification omitted.
6157+
61556158
// se_ObfuscationSetting omitted.
61566159

61576160
// se_ObjectPrefixes omitted.
@@ -7483,6 +7486,8 @@ const de_LexTranscriptFilter = (output: any, context: __SerdeContext): LexTransc
74837486

74847487
// de_MultipleValuesSetting omitted.
74857488

7489+
// de_NluImprovementSpecification omitted.
7490+
74867491
// de_ObfuscationSetting omitted.
74877492

74887493
// de_ObjectPrefixes omitted.

0 commit comments

Comments
 (0)