@aws-sdk/client-bedrock-agent-runtime 3.696.0 → 3.699.0

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-cjs/index.js CHANGED
@@ -21,10 +21,16 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  // src/index.ts
22
22
  var src_exports = {};
23
23
  __export(src_exports, {
24
+ APISchema: () => APISchema,
25
+ APISchemaFilterSensitiveLog: () => APISchemaFilterSensitiveLog,
24
26
  AccessDeniedException: () => AccessDeniedException,
27
+ ActionGroupExecutor: () => ActionGroupExecutor,
25
28
  ActionGroupInvocationInputFilterSensitiveLog: () => ActionGroupInvocationInputFilterSensitiveLog,
26
29
  ActionGroupInvocationOutputFilterSensitiveLog: () => ActionGroupInvocationOutputFilterSensitiveLog,
30
+ ActionGroupSignature: () => ActionGroupSignature,
27
31
  ActionInvocationType: () => ActionInvocationType,
32
+ AgentActionGroupFilterSensitiveLog: () => AgentActionGroupFilterSensitiveLog,
33
+ AnalyzePromptEventFilterSensitiveLog: () => AnalyzePromptEventFilterSensitiveLog,
28
34
  ApiInvocationInputFilterSensitiveLog: () => ApiInvocationInputFilterSensitiveLog,
29
35
  ApiResultFilterSensitiveLog: () => ApiResultFilterSensitiveLog,
30
36
  AttributionFilterSensitiveLog: () => AttributionFilterSensitiveLog,
@@ -38,6 +44,7 @@ __export(src_exports, {
38
44
  ConfirmationState: () => ConfirmationState,
39
45
  ConflictException: () => ConflictException,
40
46
  CreationMode: () => CreationMode,
47
+ CustomControlMethod: () => CustomControlMethod,
41
48
  DeleteAgentMemoryCommand: () => DeleteAgentMemoryCommand,
42
49
  DependencyFailedException: () => DependencyFailedException,
43
50
  ExecutionType: () => ExecutionType,
@@ -72,6 +79,9 @@ __export(src_exports, {
72
79
  FlowTraceNodeOutputContent: () => FlowTraceNodeOutputContent,
73
80
  FlowTraceNodeOutputEventFilterSensitiveLog: () => FlowTraceNodeOutputEventFilterSensitiveLog,
74
81
  FlowTraceNodeOutputFieldFilterSensitiveLog: () => FlowTraceNodeOutputFieldFilterSensitiveLog,
82
+ FunctionDefinitionFilterSensitiveLog: () => FunctionDefinitionFilterSensitiveLog,
83
+ FunctionSchema: () => FunctionSchema,
84
+ FunctionSchemaFilterSensitiveLog: () => FunctionSchemaFilterSensitiveLog,
75
85
  GeneratedResponsePartFilterSensitiveLog: () => GeneratedResponsePartFilterSensitiveLog,
76
86
  GenerationConfigurationFilterSensitiveLog: () => GenerationConfigurationFilterSensitiveLog,
77
87
  GetAgentMemoryCommand: () => GetAgentMemoryCommand,
@@ -98,7 +108,16 @@ __export(src_exports, {
98
108
  GuardrailTraceFilterSensitiveLog: () => GuardrailTraceFilterSensitiveLog,
99
109
  GuardrailWordPolicyAction: () => GuardrailWordPolicyAction,
100
110
  GuardrailWordPolicyAssessmentFilterSensitiveLog: () => GuardrailWordPolicyAssessmentFilterSensitiveLog,
111
+ InlineAgentFilePartFilterSensitiveLog: () => InlineAgentFilePartFilterSensitiveLog,
112
+ InlineAgentPayloadPartFilterSensitiveLog: () => InlineAgentPayloadPartFilterSensitiveLog,
113
+ InlineAgentResponseStream: () => InlineAgentResponseStream,
114
+ InlineAgentResponseStreamFilterSensitiveLog: () => InlineAgentResponseStreamFilterSensitiveLog,
115
+ InlineAgentReturnControlPayloadFilterSensitiveLog: () => InlineAgentReturnControlPayloadFilterSensitiveLog,
116
+ InlineAgentTracePartFilterSensitiveLog: () => InlineAgentTracePartFilterSensitiveLog,
117
+ InlineSessionStateFilterSensitiveLog: () => InlineSessionStateFilterSensitiveLog,
101
118
  InputFileFilterSensitiveLog: () => InputFileFilterSensitiveLog,
119
+ InputPrompt: () => InputPrompt,
120
+ InputPromptFilterSensitiveLog: () => InputPromptFilterSensitiveLog,
102
121
  InternalServerException: () => InternalServerException,
103
122
  InvocationInputFilterSensitiveLog: () => InvocationInputFilterSensitiveLog,
104
123
  InvocationInputMember: () => InvocationInputMember,
@@ -112,7 +131,11 @@ __export(src_exports, {
112
131
  InvokeFlowCommand: () => InvokeFlowCommand,
113
132
  InvokeFlowRequestFilterSensitiveLog: () => InvokeFlowRequestFilterSensitiveLog,
114
133
  InvokeFlowResponseFilterSensitiveLog: () => InvokeFlowResponseFilterSensitiveLog,
134
+ InvokeInlineAgentCommand: () => InvokeInlineAgentCommand,
135
+ InvokeInlineAgentRequestFilterSensitiveLog: () => InvokeInlineAgentRequestFilterSensitiveLog,
136
+ InvokeInlineAgentResponseFilterSensitiveLog: () => InvokeInlineAgentResponseFilterSensitiveLog,
115
137
  KnowledgeBaseConfigurationFilterSensitiveLog: () => KnowledgeBaseConfigurationFilterSensitiveLog,
138
+ KnowledgeBaseFilterSensitiveLog: () => KnowledgeBaseFilterSensitiveLog,
116
139
  KnowledgeBaseLookupInputFilterSensitiveLog: () => KnowledgeBaseLookupInputFilterSensitiveLog,
117
140
  KnowledgeBaseLookupOutputFilterSensitiveLog: () => KnowledgeBaseLookupOutputFilterSensitiveLog,
118
141
  KnowledgeBaseQueryFilterSensitiveLog: () => KnowledgeBaseQueryFilterSensitiveLog,
@@ -126,11 +149,20 @@ __export(src_exports, {
126
149
  ModelInvocationInputFilterSensitiveLog: () => ModelInvocationInputFilterSensitiveLog,
127
150
  NodeType: () => NodeType,
128
151
  ObservationFilterSensitiveLog: () => ObservationFilterSensitiveLog,
152
+ OptimizePromptCommand: () => OptimizePromptCommand,
153
+ OptimizePromptRequestFilterSensitiveLog: () => OptimizePromptRequestFilterSensitiveLog,
154
+ OptimizePromptResponseFilterSensitiveLog: () => OptimizePromptResponseFilterSensitiveLog,
155
+ OptimizedPrompt: () => OptimizedPrompt,
156
+ OptimizedPromptEventFilterSensitiveLog: () => OptimizedPromptEventFilterSensitiveLog,
157
+ OptimizedPromptFilterSensitiveLog: () => OptimizedPromptFilterSensitiveLog,
158
+ OptimizedPromptStream: () => OptimizedPromptStream,
159
+ OptimizedPromptStreamFilterSensitiveLog: () => OptimizedPromptStreamFilterSensitiveLog,
129
160
  OrchestrationConfigurationFilterSensitiveLog: () => OrchestrationConfigurationFilterSensitiveLog,
130
161
  OrchestrationModelInvocationOutputFilterSensitiveLog: () => OrchestrationModelInvocationOutputFilterSensitiveLog,
131
162
  OrchestrationTrace: () => OrchestrationTrace,
132
163
  OrchestrationTraceFilterSensitiveLog: () => OrchestrationTraceFilterSensitiveLog,
133
164
  OutputFileFilterSensitiveLog: () => OutputFileFilterSensitiveLog,
165
+ ParameterType: () => ParameterType,
134
166
  PayloadPartFilterSensitiveLog: () => PayloadPartFilterSensitiveLog,
135
167
  PostProcessingModelInvocationOutputFilterSensitiveLog: () => PostProcessingModelInvocationOutputFilterSensitiveLog,
136
168
  PostProcessingParsedResponseFilterSensitiveLog: () => PostProcessingParsedResponseFilterSensitiveLog,
@@ -140,12 +172,16 @@ __export(src_exports, {
140
172
  PreProcessingParsedResponseFilterSensitiveLog: () => PreProcessingParsedResponseFilterSensitiveLog,
141
173
  PreProcessingTrace: () => PreProcessingTrace,
142
174
  PreProcessingTraceFilterSensitiveLog: () => PreProcessingTraceFilterSensitiveLog,
175
+ PromptConfigurationFilterSensitiveLog: () => PromptConfigurationFilterSensitiveLog,
176
+ PromptOverrideConfigurationFilterSensitiveLog: () => PromptOverrideConfigurationFilterSensitiveLog,
177
+ PromptState: () => PromptState,
143
178
  PromptTemplateFilterSensitiveLog: () => PromptTemplateFilterSensitiveLog,
144
179
  PromptType: () => PromptType,
145
180
  QueryTransformationType: () => QueryTransformationType,
146
181
  RationaleFilterSensitiveLog: () => RationaleFilterSensitiveLog,
147
182
  RawResponseFilterSensitiveLog: () => RawResponseFilterSensitiveLog,
148
183
  RepromptResponseFilterSensitiveLog: () => RepromptResponseFilterSensitiveLog,
184
+ RequireConfirmation: () => RequireConfirmation,
149
185
  ResourceNotFoundException: () => ResourceNotFoundException,
150
186
  ResponseState: () => ResponseState,
151
187
  ResponseStream: () => ResponseStream,
@@ -171,6 +207,7 @@ __export(src_exports, {
171
207
  ServiceQuotaExceededException: () => ServiceQuotaExceededException,
172
208
  SessionStateFilterSensitiveLog: () => SessionStateFilterSensitiveLog,
173
209
  Source: () => Source,
210
+ TextPromptFilterSensitiveLog: () => TextPromptFilterSensitiveLog,
174
211
  TextResponsePartFilterSensitiveLog: () => TextResponsePartFilterSensitiveLog,
175
212
  ThrottlingException: () => ThrottlingException,
176
213
  Trace: () => Trace,
@@ -370,15 +407,61 @@ var _AccessDeniedException = class _AccessDeniedException extends BedrockAgentRu
370
407
  };
371
408
  __name(_AccessDeniedException, "AccessDeniedException");
372
409
  var AccessDeniedException = _AccessDeniedException;
410
+ var CustomControlMethod = {
411
+ RETURN_CONTROL: "RETURN_CONTROL"
412
+ };
413
+ var ActionGroupExecutor;
414
+ ((ActionGroupExecutor3) => {
415
+ ActionGroupExecutor3.visit = /* @__PURE__ */ __name((value, visitor) => {
416
+ if (value.lambda !== void 0)
417
+ return visitor.lambda(value.lambda);
418
+ if (value.customControl !== void 0)
419
+ return visitor.customControl(value.customControl);
420
+ return visitor._(value.$unknown[0], value.$unknown[1]);
421
+ }, "visit");
422
+ })(ActionGroupExecutor || (ActionGroupExecutor = {}));
373
423
  var ExecutionType = {
374
424
  LAMBDA: "LAMBDA",
375
425
  RETURN_CONTROL: "RETURN_CONTROL"
376
426
  };
427
+ var ActionGroupSignature = {
428
+ AMAZON_CODEINTERPRETER: "AMAZON.CodeInterpreter",
429
+ AMAZON_USERINPUT: "AMAZON.UserInput"
430
+ };
377
431
  var ActionInvocationType = {
378
432
  RESULT: "RESULT",
379
433
  USER_CONFIRMATION: "USER_CONFIRMATION",
380
434
  USER_CONFIRMATION_AND_RESULT: "USER_CONFIRMATION_AND_RESULT"
381
435
  };
436
+ var APISchema;
437
+ ((APISchema3) => {
438
+ APISchema3.visit = /* @__PURE__ */ __name((value, visitor) => {
439
+ if (value.s3 !== void 0)
440
+ return visitor.s3(value.s3);
441
+ if (value.payload !== void 0)
442
+ return visitor.payload(value.payload);
443
+ return visitor._(value.$unknown[0], value.$unknown[1]);
444
+ }, "visit");
445
+ })(APISchema || (APISchema = {}));
446
+ var ParameterType = {
447
+ ARRAY: "array",
448
+ BOOLEAN: "boolean",
449
+ INTEGER: "integer",
450
+ NUMBER: "number",
451
+ STRING: "string"
452
+ };
453
+ var RequireConfirmation = {
454
+ DISABLED: "DISABLED",
455
+ ENABLED: "ENABLED"
456
+ };
457
+ var FunctionSchema;
458
+ ((FunctionSchema3) => {
459
+ FunctionSchema3.visit = /* @__PURE__ */ __name((value, visitor) => {
460
+ if (value.functions !== void 0)
461
+ return visitor.functions(value.functions);
462
+ return visitor._(value.$unknown[0], value.$unknown[1]);
463
+ }, "visit");
464
+ })(FunctionSchema || (FunctionSchema = {}));
382
465
  var _BadGatewayException = class _BadGatewayException extends BedrockAgentRuntimeServiceException {
383
466
  /**
384
467
  * @internal
@@ -734,7 +817,8 @@ var PromptType = {
734
817
  KNOWLEDGE_BASE_RESPONSE_GENERATION: "KNOWLEDGE_BASE_RESPONSE_GENERATION",
735
818
  ORCHESTRATION: "ORCHESTRATION",
736
819
  POST_PROCESSING: "POST_PROCESSING",
737
- PRE_PROCESSING: "PRE_PROCESSING"
820
+ PRE_PROCESSING: "PRE_PROCESSING",
821
+ ROUTING_CLASSIFIER: "ROUTING_CLASSIFIER"
738
822
  };
739
823
  var Source = {
740
824
  ACTION_GROUP: "ACTION_GROUP",
@@ -832,6 +916,42 @@ var ResponseStream;
832
916
  return visitor._(value.$unknown[0], value.$unknown[1]);
833
917
  }, "visit");
834
918
  })(ResponseStream || (ResponseStream = {}));
919
+ var PromptState = {
920
+ DISABLED: "DISABLED",
921
+ ENABLED: "ENABLED"
922
+ };
923
+ var InlineAgentResponseStream;
924
+ ((InlineAgentResponseStream3) => {
925
+ InlineAgentResponseStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
926
+ if (value.chunk !== void 0)
927
+ return visitor.chunk(value.chunk);
928
+ if (value.trace !== void 0)
929
+ return visitor.trace(value.trace);
930
+ if (value.returnControl !== void 0)
931
+ return visitor.returnControl(value.returnControl);
932
+ if (value.internalServerException !== void 0)
933
+ return visitor.internalServerException(value.internalServerException);
934
+ if (value.validationException !== void 0)
935
+ return visitor.validationException(value.validationException);
936
+ if (value.resourceNotFoundException !== void 0)
937
+ return visitor.resourceNotFoundException(value.resourceNotFoundException);
938
+ if (value.serviceQuotaExceededException !== void 0)
939
+ return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
940
+ if (value.throttlingException !== void 0)
941
+ return visitor.throttlingException(value.throttlingException);
942
+ if (value.accessDeniedException !== void 0)
943
+ return visitor.accessDeniedException(value.accessDeniedException);
944
+ if (value.conflictException !== void 0)
945
+ return visitor.conflictException(value.conflictException);
946
+ if (value.dependencyFailedException !== void 0)
947
+ return visitor.dependencyFailedException(value.dependencyFailedException);
948
+ if (value.badGatewayException !== void 0)
949
+ return visitor.badGatewayException(value.badGatewayException);
950
+ if (value.files !== void 0)
951
+ return visitor.files(value.files);
952
+ return visitor._(value.$unknown[0], value.$unknown[1]);
953
+ }, "visit");
954
+ })(InlineAgentResponseStream || (InlineAgentResponseStream = {}));
835
955
  var MemoryType = {
836
956
  SESSION_SUMMARY: "SESSION_SUMMARY"
837
957
  };
@@ -843,6 +963,44 @@ var Memory;
843
963
  return visitor._(value.$unknown[0], value.$unknown[1]);
844
964
  }, "visit");
845
965
  })(Memory || (Memory = {}));
966
+ var InputPrompt;
967
+ ((InputPrompt3) => {
968
+ InputPrompt3.visit = /* @__PURE__ */ __name((value, visitor) => {
969
+ if (value.textPrompt !== void 0)
970
+ return visitor.textPrompt(value.textPrompt);
971
+ return visitor._(value.$unknown[0], value.$unknown[1]);
972
+ }, "visit");
973
+ })(InputPrompt || (InputPrompt = {}));
974
+ var OptimizedPrompt;
975
+ ((OptimizedPrompt2) => {
976
+ OptimizedPrompt2.visit = /* @__PURE__ */ __name((value, visitor) => {
977
+ if (value.textPrompt !== void 0)
978
+ return visitor.textPrompt(value.textPrompt);
979
+ return visitor._(value.$unknown[0], value.$unknown[1]);
980
+ }, "visit");
981
+ })(OptimizedPrompt || (OptimizedPrompt = {}));
982
+ var OptimizedPromptStream;
983
+ ((OptimizedPromptStream3) => {
984
+ OptimizedPromptStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
985
+ if (value.optimizedPromptEvent !== void 0)
986
+ return visitor.optimizedPromptEvent(value.optimizedPromptEvent);
987
+ if (value.analyzePromptEvent !== void 0)
988
+ return visitor.analyzePromptEvent(value.analyzePromptEvent);
989
+ if (value.internalServerException !== void 0)
990
+ return visitor.internalServerException(value.internalServerException);
991
+ if (value.throttlingException !== void 0)
992
+ return visitor.throttlingException(value.throttlingException);
993
+ if (value.validationException !== void 0)
994
+ return visitor.validationException(value.validationException);
995
+ if (value.dependencyFailedException !== void 0)
996
+ return visitor.dependencyFailedException(value.dependencyFailedException);
997
+ if (value.accessDeniedException !== void 0)
998
+ return visitor.accessDeniedException(value.accessDeniedException);
999
+ if (value.badGatewayException !== void 0)
1000
+ return visitor.badGatewayException(value.badGatewayException);
1001
+ return visitor._(value.$unknown[0], value.$unknown[1]);
1002
+ }, "visit");
1003
+ })(OptimizedPromptStream || (OptimizedPromptStream = {}));
846
1004
  var ExternalSourceType = {
847
1005
  BYTE_CONTENT: "BYTE_CONTENT",
848
1006
  S3: "S3"
@@ -901,6 +1059,32 @@ var ActionGroupInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj)
901
1059
  ...obj,
902
1060
  ...obj.text && { text: import_smithy_client.SENSITIVE_STRING }
903
1061
  }), "ActionGroupInvocationOutputFilterSensitiveLog");
1062
+ var APISchemaFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1063
+ if (obj.s3 !== void 0)
1064
+ return { s3: obj.s3 };
1065
+ if (obj.payload !== void 0)
1066
+ return { payload: import_smithy_client.SENSITIVE_STRING };
1067
+ if (obj.$unknown !== void 0)
1068
+ return { [obj.$unknown[0]]: "UNKNOWN" };
1069
+ }, "APISchemaFilterSensitiveLog");
1070
+ var FunctionDefinitionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1071
+ ...obj,
1072
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING }
1073
+ }), "FunctionDefinitionFilterSensitiveLog");
1074
+ var FunctionSchemaFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1075
+ if (obj.functions !== void 0)
1076
+ return { functions: obj.functions.map((item) => FunctionDefinitionFilterSensitiveLog(item)) };
1077
+ if (obj.$unknown !== void 0)
1078
+ return { [obj.$unknown[0]]: "UNKNOWN" };
1079
+ }, "FunctionSchemaFilterSensitiveLog");
1080
+ var AgentActionGroupFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1081
+ ...obj,
1082
+ ...obj.actionGroupName && { actionGroupName: import_smithy_client.SENSITIVE_STRING },
1083
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING },
1084
+ ...obj.actionGroupExecutor && { actionGroupExecutor: obj.actionGroupExecutor },
1085
+ ...obj.apiSchema && { apiSchema: APISchemaFilterSensitiveLog(obj.apiSchema) },
1086
+ ...obj.functionSchema && { functionSchema: FunctionSchemaFilterSensitiveLog(obj.functionSchema) }
1087
+ }), "AgentActionGroupFilterSensitiveLog");
904
1088
  var FlowInputContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
905
1089
  if (obj.document !== void 0)
906
1090
  return { document: obj.document };
@@ -1300,6 +1484,128 @@ var InvokeAgentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1300
1484
  ...obj,
1301
1485
  ...obj.completion && { completion: "STREAMING_CONTENT" }
1302
1486
  }), "InvokeAgentResponseFilterSensitiveLog");
1487
+ var InlineSessionStateFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1488
+ ...obj,
1489
+ ...obj.returnControlInvocationResults && {
1490
+ returnControlInvocationResults: obj.returnControlInvocationResults.map(
1491
+ (item) => InvocationResultMemberFilterSensitiveLog(item)
1492
+ )
1493
+ },
1494
+ ...obj.files && { files: obj.files.map((item) => InputFileFilterSensitiveLog(item)) }
1495
+ }), "InlineSessionStateFilterSensitiveLog");
1496
+ var PromptConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1497
+ ...obj,
1498
+ ...obj.basePromptTemplate && { basePromptTemplate: import_smithy_client.SENSITIVE_STRING }
1499
+ }), "PromptConfigurationFilterSensitiveLog");
1500
+ var PromptOverrideConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1501
+ ...obj,
1502
+ ...obj.promptConfigurations && {
1503
+ promptConfigurations: obj.promptConfigurations.map((item) => PromptConfigurationFilterSensitiveLog(item))
1504
+ }
1505
+ }), "PromptOverrideConfigurationFilterSensitiveLog");
1506
+ var InlineAgentPayloadPartFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1507
+ ...obj,
1508
+ ...obj.bytes && { bytes: import_smithy_client.SENSITIVE_STRING },
1509
+ ...obj.attribution && { attribution: AttributionFilterSensitiveLog(obj.attribution) }
1510
+ }), "InlineAgentPayloadPartFilterSensitiveLog");
1511
+ var InlineAgentFilePartFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1512
+ ...obj,
1513
+ ...obj.files && { files: import_smithy_client.SENSITIVE_STRING }
1514
+ }), "InlineAgentFilePartFilterSensitiveLog");
1515
+ var InlineAgentReturnControlPayloadFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1516
+ ...obj,
1517
+ ...obj.invocationInputs && {
1518
+ invocationInputs: obj.invocationInputs.map((item) => InvocationInputMemberFilterSensitiveLog(item))
1519
+ }
1520
+ }), "InlineAgentReturnControlPayloadFilterSensitiveLog");
1521
+ var InlineAgentTracePartFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1522
+ ...obj,
1523
+ ...obj.trace && { trace: import_smithy_client.SENSITIVE_STRING }
1524
+ }), "InlineAgentTracePartFilterSensitiveLog");
1525
+ var InlineAgentResponseStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1526
+ if (obj.chunk !== void 0)
1527
+ return { chunk: import_smithy_client.SENSITIVE_STRING };
1528
+ if (obj.trace !== void 0)
1529
+ return { trace: import_smithy_client.SENSITIVE_STRING };
1530
+ if (obj.returnControl !== void 0)
1531
+ return { returnControl: import_smithy_client.SENSITIVE_STRING };
1532
+ if (obj.internalServerException !== void 0)
1533
+ return { internalServerException: obj.internalServerException };
1534
+ if (obj.validationException !== void 0)
1535
+ return { validationException: obj.validationException };
1536
+ if (obj.resourceNotFoundException !== void 0)
1537
+ return { resourceNotFoundException: obj.resourceNotFoundException };
1538
+ if (obj.serviceQuotaExceededException !== void 0)
1539
+ return { serviceQuotaExceededException: obj.serviceQuotaExceededException };
1540
+ if (obj.throttlingException !== void 0)
1541
+ return { throttlingException: obj.throttlingException };
1542
+ if (obj.accessDeniedException !== void 0)
1543
+ return { accessDeniedException: obj.accessDeniedException };
1544
+ if (obj.conflictException !== void 0)
1545
+ return { conflictException: obj.conflictException };
1546
+ if (obj.dependencyFailedException !== void 0)
1547
+ return { dependencyFailedException: obj.dependencyFailedException };
1548
+ if (obj.badGatewayException !== void 0)
1549
+ return { badGatewayException: obj.badGatewayException };
1550
+ if (obj.files !== void 0)
1551
+ return { files: InlineAgentFilePartFilterSensitiveLog(obj.files) };
1552
+ if (obj.$unknown !== void 0)
1553
+ return { [obj.$unknown[0]]: "UNKNOWN" };
1554
+ }, "InlineAgentResponseStreamFilterSensitiveLog");
1555
+ var InvokeInlineAgentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1556
+ ...obj,
1557
+ ...obj.completion && { completion: "STREAMING_CONTENT" }
1558
+ }), "InvokeInlineAgentResponseFilterSensitiveLog");
1559
+ var TextPromptFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1560
+ ...obj
1561
+ }), "TextPromptFilterSensitiveLog");
1562
+ var InputPromptFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1563
+ if (obj.textPrompt !== void 0)
1564
+ return { textPrompt: import_smithy_client.SENSITIVE_STRING };
1565
+ if (obj.$unknown !== void 0)
1566
+ return { [obj.$unknown[0]]: "UNKNOWN" };
1567
+ }, "InputPromptFilterSensitiveLog");
1568
+ var OptimizePromptRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1569
+ ...obj,
1570
+ ...obj.input && { input: InputPromptFilterSensitiveLog(obj.input) }
1571
+ }), "OptimizePromptRequestFilterSensitiveLog");
1572
+ var AnalyzePromptEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1573
+ ...obj
1574
+ }), "AnalyzePromptEventFilterSensitiveLog");
1575
+ var OptimizedPromptFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1576
+ if (obj.textPrompt !== void 0)
1577
+ return { textPrompt: import_smithy_client.SENSITIVE_STRING };
1578
+ if (obj.$unknown !== void 0)
1579
+ return { [obj.$unknown[0]]: "UNKNOWN" };
1580
+ }, "OptimizedPromptFilterSensitiveLog");
1581
+ var OptimizedPromptEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1582
+ ...obj,
1583
+ ...obj.optimizedPrompt && { optimizedPrompt: OptimizedPromptFilterSensitiveLog(obj.optimizedPrompt) }
1584
+ }), "OptimizedPromptEventFilterSensitiveLog");
1585
+ var OptimizedPromptStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1586
+ if (obj.optimizedPromptEvent !== void 0)
1587
+ return { optimizedPromptEvent: import_smithy_client.SENSITIVE_STRING };
1588
+ if (obj.analyzePromptEvent !== void 0)
1589
+ return { analyzePromptEvent: import_smithy_client.SENSITIVE_STRING };
1590
+ if (obj.internalServerException !== void 0)
1591
+ return { internalServerException: obj.internalServerException };
1592
+ if (obj.throttlingException !== void 0)
1593
+ return { throttlingException: obj.throttlingException };
1594
+ if (obj.validationException !== void 0)
1595
+ return { validationException: obj.validationException };
1596
+ if (obj.dependencyFailedException !== void 0)
1597
+ return { dependencyFailedException: obj.dependencyFailedException };
1598
+ if (obj.accessDeniedException !== void 0)
1599
+ return { accessDeniedException: obj.accessDeniedException };
1600
+ if (obj.badGatewayException !== void 0)
1601
+ return { badGatewayException: obj.badGatewayException };
1602
+ if (obj.$unknown !== void 0)
1603
+ return { [obj.$unknown[0]]: "UNKNOWN" };
1604
+ }, "OptimizedPromptStreamFilterSensitiveLog");
1605
+ var OptimizePromptResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1606
+ ...obj,
1607
+ ...obj.optimizedPrompt && { optimizedPrompt: "STREAMING_CONTENT" }
1608
+ }), "OptimizePromptResponseFilterSensitiveLog");
1303
1609
  var RetrieveAndGenerateInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1304
1610
  ...obj
1305
1611
  }), "RetrieveAndGenerateInputFilterSensitiveLog");
@@ -1396,6 +1702,13 @@ var KnowledgeBaseRetrievalConfigurationFilterSensitiveLog = /* @__PURE__ */ __na
1396
1702
  vectorSearchConfiguration: KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog(obj.vectorSearchConfiguration)
1397
1703
  }
1398
1704
  }), "KnowledgeBaseRetrievalConfigurationFilterSensitiveLog");
1705
+ var KnowledgeBaseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1706
+ ...obj,
1707
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING },
1708
+ ...obj.retrievalConfiguration && {
1709
+ retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration)
1710
+ }
1711
+ }), "KnowledgeBaseFilterSensitiveLog");
1399
1712
  var KnowledgeBaseConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1400
1713
  ...obj,
1401
1714
  ...obj.retrievalConfiguration && {
@@ -1434,6 +1747,17 @@ var RetrieveAndGenerateConfigurationFilterSensitiveLog = /* @__PURE__ */ __name(
1434
1747
  )
1435
1748
  }
1436
1749
  }), "RetrieveAndGenerateConfigurationFilterSensitiveLog");
1750
+ var InvokeInlineAgentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1751
+ ...obj,
1752
+ ...obj.inputText && { inputText: import_smithy_client.SENSITIVE_STRING },
1753
+ ...obj.inlineSessionState && { inlineSessionState: InlineSessionStateFilterSensitiveLog(obj.inlineSessionState) },
1754
+ ...obj.instruction && { instruction: import_smithy_client.SENSITIVE_STRING },
1755
+ ...obj.actionGroups && { actionGroups: obj.actionGroups.map((item) => AgentActionGroupFilterSensitiveLog(item)) },
1756
+ ...obj.knowledgeBases && {
1757
+ knowledgeBases: obj.knowledgeBases.map((item) => KnowledgeBaseFilterSensitiveLog(item))
1758
+ },
1759
+ ...obj.promptOverrideConfiguration && { promptOverrideConfiguration: import_smithy_client.SENSITIVE_STRING }
1760
+ }), "InvokeInlineAgentRequestFilterSensitiveLog");
1437
1761
  var RetrieveAndGenerateRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1438
1762
  ...obj,
1439
1763
  ...obj.input && { input: import_smithy_client.SENSITIVE_STRING },
@@ -1533,6 +1857,49 @@ var se_InvokeFlowCommand = /* @__PURE__ */ __name(async (input, context) => {
1533
1857
  b.m("POST").h(headers).b(body);
1534
1858
  return b.build();
1535
1859
  }, "se_InvokeFlowCommand");
1860
+ var se_InvokeInlineAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
1861
+ const b = (0, import_core.requestBuilder)(input, context);
1862
+ const headers = {
1863
+ "content-type": "application/json"
1864
+ };
1865
+ b.bp("/agents/{sessionId}");
1866
+ b.p("sessionId", () => input.sessionId, "{sessionId}", false);
1867
+ let body;
1868
+ body = JSON.stringify(
1869
+ (0, import_smithy_client.take)(input, {
1870
+ actionGroups: (_) => (0, import_smithy_client._json)(_),
1871
+ customerEncryptionKeyArn: [],
1872
+ enableTrace: [],
1873
+ endSession: [],
1874
+ foundationModel: [],
1875
+ guardrailConfiguration: (_) => (0, import_smithy_client._json)(_),
1876
+ idleSessionTTLInSeconds: [],
1877
+ inlineSessionState: (_) => se_InlineSessionState(_, context),
1878
+ inputText: [],
1879
+ instruction: [],
1880
+ knowledgeBases: (_) => se_KnowledgeBases(_, context),
1881
+ promptOverrideConfiguration: (_) => se_PromptOverrideConfiguration(_, context)
1882
+ })
1883
+ );
1884
+ b.m("POST").h(headers).b(body);
1885
+ return b.build();
1886
+ }, "se_InvokeInlineAgentCommand");
1887
+ var se_OptimizePromptCommand = /* @__PURE__ */ __name(async (input, context) => {
1888
+ const b = (0, import_core.requestBuilder)(input, context);
1889
+ const headers = {
1890
+ "content-type": "application/json"
1891
+ };
1892
+ b.bp("/optimize-prompt");
1893
+ let body;
1894
+ body = JSON.stringify(
1895
+ (0, import_smithy_client.take)(input, {
1896
+ input: (_) => (0, import_smithy_client._json)(_),
1897
+ targetModelId: []
1898
+ })
1899
+ );
1900
+ b.m("POST").h(headers).b(body);
1901
+ return b.build();
1902
+ }, "se_OptimizePromptCommand");
1536
1903
  var se_RetrieveCommand = /* @__PURE__ */ __name(async (input, context) => {
1537
1904
  const b = (0, import_core.requestBuilder)(input, context);
1538
1905
  const headers = {
@@ -1619,6 +1986,30 @@ var de_InvokeFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
1619
1986
  contents.responseStream = de_FlowResponseStream(data, context);
1620
1987
  return contents;
1621
1988
  }, "de_InvokeFlowCommand");
1989
+ var de_InvokeInlineAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
1990
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1991
+ return de_CommandError(output, context);
1992
+ }
1993
+ const contents = (0, import_smithy_client.map)({
1994
+ $metadata: deserializeMetadata(output),
1995
+ [_cT]: [, output.headers[_xabact]],
1996
+ [_sI]: [, output.headers[_xabasi]]
1997
+ });
1998
+ const data = output.body;
1999
+ contents.completion = de_InlineAgentResponseStream(data, context);
2000
+ return contents;
2001
+ }, "de_InvokeInlineAgentCommand");
2002
+ var de_OptimizePromptCommand = /* @__PURE__ */ __name(async (output, context) => {
2003
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2004
+ return de_CommandError(output, context);
2005
+ }
2006
+ const contents = (0, import_smithy_client.map)({
2007
+ $metadata: deserializeMetadata(output)
2008
+ });
2009
+ const data = output.body;
2010
+ contents.optimizedPrompt = de_OptimizedPromptStream(data, context);
2011
+ return contents;
2012
+ }, "de_OptimizePromptCommand");
1622
2013
  var de_RetrieveCommand = /* @__PURE__ */ __name(async (output, context) => {
1623
2014
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1624
2015
  return de_CommandError(output, context);
@@ -1888,6 +2279,133 @@ var de_FlowResponseStream = /* @__PURE__ */ __name((output, context) => {
1888
2279
  return { $unknown: output };
1889
2280
  });
1890
2281
  }, "de_FlowResponseStream");
2282
+ var de_InlineAgentResponseStream = /* @__PURE__ */ __name((output, context) => {
2283
+ return context.eventStreamMarshaller.deserialize(output, async (event) => {
2284
+ if (event["chunk"] != null) {
2285
+ return {
2286
+ chunk: await de_InlineAgentPayloadPart_event(event["chunk"], context)
2287
+ };
2288
+ }
2289
+ if (event["trace"] != null) {
2290
+ return {
2291
+ trace: await de_InlineAgentTracePart_event(event["trace"], context)
2292
+ };
2293
+ }
2294
+ if (event["returnControl"] != null) {
2295
+ return {
2296
+ returnControl: await de_InlineAgentReturnControlPayload_event(event["returnControl"], context)
2297
+ };
2298
+ }
2299
+ if (event["internalServerException"] != null) {
2300
+ return {
2301
+ internalServerException: await de_InternalServerException_event(event["internalServerException"], context)
2302
+ };
2303
+ }
2304
+ if (event["validationException"] != null) {
2305
+ return {
2306
+ validationException: await de_ValidationException_event(event["validationException"], context)
2307
+ };
2308
+ }
2309
+ if (event["resourceNotFoundException"] != null) {
2310
+ return {
2311
+ resourceNotFoundException: await de_ResourceNotFoundException_event(
2312
+ event["resourceNotFoundException"],
2313
+ context
2314
+ )
2315
+ };
2316
+ }
2317
+ if (event["serviceQuotaExceededException"] != null) {
2318
+ return {
2319
+ serviceQuotaExceededException: await de_ServiceQuotaExceededException_event(
2320
+ event["serviceQuotaExceededException"],
2321
+ context
2322
+ )
2323
+ };
2324
+ }
2325
+ if (event["throttlingException"] != null) {
2326
+ return {
2327
+ throttlingException: await de_ThrottlingException_event(event["throttlingException"], context)
2328
+ };
2329
+ }
2330
+ if (event["accessDeniedException"] != null) {
2331
+ return {
2332
+ accessDeniedException: await de_AccessDeniedException_event(event["accessDeniedException"], context)
2333
+ };
2334
+ }
2335
+ if (event["conflictException"] != null) {
2336
+ return {
2337
+ conflictException: await de_ConflictException_event(event["conflictException"], context)
2338
+ };
2339
+ }
2340
+ if (event["dependencyFailedException"] != null) {
2341
+ return {
2342
+ dependencyFailedException: await de_DependencyFailedException_event(
2343
+ event["dependencyFailedException"],
2344
+ context
2345
+ )
2346
+ };
2347
+ }
2348
+ if (event["badGatewayException"] != null) {
2349
+ return {
2350
+ badGatewayException: await de_BadGatewayException_event(event["badGatewayException"], context)
2351
+ };
2352
+ }
2353
+ if (event["files"] != null) {
2354
+ return {
2355
+ files: await de_InlineAgentFilePart_event(event["files"], context)
2356
+ };
2357
+ }
2358
+ return { $unknown: output };
2359
+ });
2360
+ }, "de_InlineAgentResponseStream");
2361
+ var de_OptimizedPromptStream = /* @__PURE__ */ __name((output, context) => {
2362
+ return context.eventStreamMarshaller.deserialize(output, async (event) => {
2363
+ if (event["optimizedPromptEvent"] != null) {
2364
+ return {
2365
+ optimizedPromptEvent: await de_OptimizedPromptEvent_event(event["optimizedPromptEvent"], context)
2366
+ };
2367
+ }
2368
+ if (event["analyzePromptEvent"] != null) {
2369
+ return {
2370
+ analyzePromptEvent: await de_AnalyzePromptEvent_event(event["analyzePromptEvent"], context)
2371
+ };
2372
+ }
2373
+ if (event["internalServerException"] != null) {
2374
+ return {
2375
+ internalServerException: await de_InternalServerException_event(event["internalServerException"], context)
2376
+ };
2377
+ }
2378
+ if (event["throttlingException"] != null) {
2379
+ return {
2380
+ throttlingException: await de_ThrottlingException_event(event["throttlingException"], context)
2381
+ };
2382
+ }
2383
+ if (event["validationException"] != null) {
2384
+ return {
2385
+ validationException: await de_ValidationException_event(event["validationException"], context)
2386
+ };
2387
+ }
2388
+ if (event["dependencyFailedException"] != null) {
2389
+ return {
2390
+ dependencyFailedException: await de_DependencyFailedException_event(
2391
+ event["dependencyFailedException"],
2392
+ context
2393
+ )
2394
+ };
2395
+ }
2396
+ if (event["accessDeniedException"] != null) {
2397
+ return {
2398
+ accessDeniedException: await de_AccessDeniedException_event(event["accessDeniedException"], context)
2399
+ };
2400
+ }
2401
+ if (event["badGatewayException"] != null) {
2402
+ return {
2403
+ badGatewayException: await de_BadGatewayException_event(event["badGatewayException"], context)
2404
+ };
2405
+ }
2406
+ return { $unknown: output };
2407
+ });
2408
+ }, "de_OptimizedPromptStream");
1891
2409
  var de_ResponseStream = /* @__PURE__ */ __name((output, context) => {
1892
2410
  return context.eventStreamMarshaller.deserialize(output, async (event) => {
1893
2411
  if (event["chunk"] != null) {
@@ -1974,6 +2492,12 @@ var de_AccessDeniedException_event = /* @__PURE__ */ __name(async (output, conte
1974
2492
  };
1975
2493
  return de_AccessDeniedExceptionRes(parsedOutput, context);
1976
2494
  }, "de_AccessDeniedException_event");
2495
+ var de_AnalyzePromptEvent_event = /* @__PURE__ */ __name(async (output, context) => {
2496
+ const contents = {};
2497
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
2498
+ Object.assign(contents, (0, import_smithy_client._json)(data));
2499
+ return contents;
2500
+ }, "de_AnalyzePromptEvent_event");
1977
2501
  var de_BadGatewayException_event = /* @__PURE__ */ __name(async (output, context) => {
1978
2502
  const parsedOutput = {
1979
2503
  ...output,
@@ -2019,6 +2543,30 @@ var de_FlowTraceEvent_event = /* @__PURE__ */ __name(async (output, context) =>
2019
2543
  Object.assign(contents, de_FlowTraceEvent(data, context));
2020
2544
  return contents;
2021
2545
  }, "de_FlowTraceEvent_event");
2546
+ var de_InlineAgentFilePart_event = /* @__PURE__ */ __name(async (output, context) => {
2547
+ const contents = {};
2548
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
2549
+ Object.assign(contents, de_InlineAgentFilePart(data, context));
2550
+ return contents;
2551
+ }, "de_InlineAgentFilePart_event");
2552
+ var de_InlineAgentPayloadPart_event = /* @__PURE__ */ __name(async (output, context) => {
2553
+ const contents = {};
2554
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
2555
+ Object.assign(contents, de_InlineAgentPayloadPart(data, context));
2556
+ return contents;
2557
+ }, "de_InlineAgentPayloadPart_event");
2558
+ var de_InlineAgentReturnControlPayload_event = /* @__PURE__ */ __name(async (output, context) => {
2559
+ const contents = {};
2560
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
2561
+ Object.assign(contents, (0, import_smithy_client._json)(data));
2562
+ return contents;
2563
+ }, "de_InlineAgentReturnControlPayload_event");
2564
+ var de_InlineAgentTracePart_event = /* @__PURE__ */ __name(async (output, context) => {
2565
+ const contents = {};
2566
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
2567
+ Object.assign(contents, de_InlineAgentTracePart(data, context));
2568
+ return contents;
2569
+ }, "de_InlineAgentTracePart_event");
2022
2570
  var de_InternalServerException_event = /* @__PURE__ */ __name(async (output, context) => {
2023
2571
  const parsedOutput = {
2024
2572
  ...output,
@@ -2026,6 +2574,12 @@ var de_InternalServerException_event = /* @__PURE__ */ __name(async (output, con
2026
2574
  };
2027
2575
  return de_InternalServerExceptionRes(parsedOutput, context);
2028
2576
  }, "de_InternalServerException_event");
2577
+ var de_OptimizedPromptEvent_event = /* @__PURE__ */ __name(async (output, context) => {
2578
+ const contents = {};
2579
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
2580
+ Object.assign(contents, (0, import_smithy_client._json)(data));
2581
+ return contents;
2582
+ }, "de_OptimizedPromptEvent_event");
2029
2583
  var de_PayloadPart_event = /* @__PURE__ */ __name(async (output, context) => {
2030
2584
  const contents = {};
2031
2585
  const data = await (0, import_core2.parseJsonBody)(output.body, context);
@@ -2171,6 +2725,24 @@ var se_InferenceConfig = /* @__PURE__ */ __name((input, context) => {
2171
2725
  textInferenceConfig: (_) => se_TextInferenceConfig(_, context)
2172
2726
  });
2173
2727
  }, "se_InferenceConfig");
2728
+ var se_InferenceConfiguration = /* @__PURE__ */ __name((input, context) => {
2729
+ return (0, import_smithy_client.take)(input, {
2730
+ maximumLength: [],
2731
+ stopSequences: import_smithy_client._json,
2732
+ temperature: import_smithy_client.serializeFloat,
2733
+ topK: [],
2734
+ topP: import_smithy_client.serializeFloat
2735
+ });
2736
+ }, "se_InferenceConfiguration");
2737
+ var se_InlineSessionState = /* @__PURE__ */ __name((input, context) => {
2738
+ return (0, import_smithy_client.take)(input, {
2739
+ files: (_) => se_InputFiles(_, context),
2740
+ invocationId: [],
2741
+ promptSessionAttributes: import_smithy_client._json,
2742
+ returnControlInvocationResults: import_smithy_client._json,
2743
+ sessionAttributes: import_smithy_client._json
2744
+ });
2745
+ }, "se_InlineSessionState");
2174
2746
  var se_InputFile = /* @__PURE__ */ __name((input, context) => {
2175
2747
  return (0, import_smithy_client.take)(input, {
2176
2748
  name: [],
@@ -2183,6 +2755,13 @@ var se_InputFiles = /* @__PURE__ */ __name((input, context) => {
2183
2755
  return se_InputFile(entry, context);
2184
2756
  });
2185
2757
  }, "se_InputFiles");
2758
+ var se_KnowledgeBase = /* @__PURE__ */ __name((input, context) => {
2759
+ return (0, import_smithy_client.take)(input, {
2760
+ description: [],
2761
+ knowledgeBaseId: [],
2762
+ retrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context)
2763
+ });
2764
+ }, "se_KnowledgeBase");
2186
2765
  var se_KnowledgeBaseConfiguration = /* @__PURE__ */ __name((input, context) => {
2187
2766
  return (0, import_smithy_client.take)(input, {
2188
2767
  knowledgeBaseId: [],
@@ -2208,6 +2787,11 @@ var se_KnowledgeBaseRetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((i
2208
2787
  retrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context)
2209
2788
  });
2210
2789
  }, "se_KnowledgeBaseRetrieveAndGenerateConfiguration");
2790
+ var se_KnowledgeBases = /* @__PURE__ */ __name((input, context) => {
2791
+ return input.filter((e) => e != null).map((entry) => {
2792
+ return se_KnowledgeBase(entry, context);
2793
+ });
2794
+ }, "se_KnowledgeBases");
2211
2795
  var se_KnowledgeBaseVectorSearchConfiguration = /* @__PURE__ */ __name((input, context) => {
2212
2796
  return (0, import_smithy_client.take)(input, {
2213
2797
  filter: (_) => se_RetrievalFilter(_, context),
@@ -2223,6 +2807,27 @@ var se_OrchestrationConfiguration = /* @__PURE__ */ __name((input, context) => {
2223
2807
  queryTransformationConfiguration: import_smithy_client._json
2224
2808
  });
2225
2809
  }, "se_OrchestrationConfiguration");
2810
+ var se_PromptConfiguration = /* @__PURE__ */ __name((input, context) => {
2811
+ return (0, import_smithy_client.take)(input, {
2812
+ basePromptTemplate: [],
2813
+ inferenceConfiguration: (_) => se_InferenceConfiguration(_, context),
2814
+ parserMode: [],
2815
+ promptCreationMode: [],
2816
+ promptState: [],
2817
+ promptType: []
2818
+ });
2819
+ }, "se_PromptConfiguration");
2820
+ var se_PromptConfigurations = /* @__PURE__ */ __name((input, context) => {
2821
+ return input.filter((e) => e != null).map((entry) => {
2822
+ return se_PromptConfiguration(entry, context);
2823
+ });
2824
+ }, "se_PromptConfigurations");
2825
+ var se_PromptOverrideConfiguration = /* @__PURE__ */ __name((input, context) => {
2826
+ return (0, import_smithy_client.take)(input, {
2827
+ overrideLambda: [],
2828
+ promptConfigurations: (_) => se_PromptConfigurations(_, context)
2829
+ });
2830
+ }, "se_PromptOverrideConfiguration");
2226
2831
  var se_RetrievalFilter = /* @__PURE__ */ __name((input, context) => {
2227
2832
  return RetrievalFilter.visit(input, {
2228
2833
  andAll: (value) => ({ andAll: se_RetrievalFilterList(value, context) }),
@@ -2404,6 +3009,23 @@ var de_InferenceConfiguration = /* @__PURE__ */ __name((output, context) => {
2404
3009
  topP: import_smithy_client.limitedParseFloat32
2405
3010
  });
2406
3011
  }, "de_InferenceConfiguration");
3012
+ var de_InlineAgentFilePart = /* @__PURE__ */ __name((output, context) => {
3013
+ return (0, import_smithy_client.take)(output, {
3014
+ files: (_) => de_OutputFiles(_, context)
3015
+ });
3016
+ }, "de_InlineAgentFilePart");
3017
+ var de_InlineAgentPayloadPart = /* @__PURE__ */ __name((output, context) => {
3018
+ return (0, import_smithy_client.take)(output, {
3019
+ attribution: (_) => de_Attribution(_, context),
3020
+ bytes: context.base64Decoder
3021
+ });
3022
+ }, "de_InlineAgentPayloadPart");
3023
+ var de_InlineAgentTracePart = /* @__PURE__ */ __name((output, context) => {
3024
+ return (0, import_smithy_client.take)(output, {
3025
+ sessionId: import_smithy_client.expectString,
3026
+ trace: (_) => de_Trace((0, import_core2.awsExpectUnion)(_), context)
3027
+ });
3028
+ }, "de_InlineAgentTracePart");
2407
3029
  var de_KnowledgeBaseLookupOutput = /* @__PURE__ */ __name((output, context) => {
2408
3030
  return (0, import_smithy_client.take)(output, {
2409
3031
  retrievedReferences: (_) => de_RetrievedReferences(_, context)
@@ -2689,6 +3311,48 @@ var _InvokeFlowCommand = class _InvokeFlowCommand extends import_smithy_client.C
2689
3311
  __name(_InvokeFlowCommand, "InvokeFlowCommand");
2690
3312
  var InvokeFlowCommand = _InvokeFlowCommand;
2691
3313
 
3314
+ // src/commands/InvokeInlineAgentCommand.ts
3315
+
3316
+
3317
+
3318
+ var _InvokeInlineAgentCommand = class _InvokeInlineAgentCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
3319
+ return [
3320
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3321
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3322
+ ];
3323
+ }).s("AmazonBedrockAgentRunTimeService", "InvokeInlineAgent", {
3324
+ /**
3325
+ * @internal
3326
+ */
3327
+ eventStream: {
3328
+ output: true
3329
+ }
3330
+ }).n("BedrockAgentRuntimeClient", "InvokeInlineAgentCommand").f(InvokeInlineAgentRequestFilterSensitiveLog, InvokeInlineAgentResponseFilterSensitiveLog).ser(se_InvokeInlineAgentCommand).de(de_InvokeInlineAgentCommand).build() {
3331
+ };
3332
+ __name(_InvokeInlineAgentCommand, "InvokeInlineAgentCommand");
3333
+ var InvokeInlineAgentCommand = _InvokeInlineAgentCommand;
3334
+
3335
+ // src/commands/OptimizePromptCommand.ts
3336
+
3337
+
3338
+
3339
+ var _OptimizePromptCommand = class _OptimizePromptCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
3340
+ return [
3341
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3342
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3343
+ ];
3344
+ }).s("AmazonBedrockAgentRunTimeService", "OptimizePrompt", {
3345
+ /**
3346
+ * @internal
3347
+ */
3348
+ eventStream: {
3349
+ output: true
3350
+ }
3351
+ }).n("BedrockAgentRuntimeClient", "OptimizePromptCommand").f(OptimizePromptRequestFilterSensitiveLog, OptimizePromptResponseFilterSensitiveLog).ser(se_OptimizePromptCommand).de(de_OptimizePromptCommand).build() {
3352
+ };
3353
+ __name(_OptimizePromptCommand, "OptimizePromptCommand");
3354
+ var OptimizePromptCommand = _OptimizePromptCommand;
3355
+
2692
3356
  // src/commands/RetrieveAndGenerateCommand.ts
2693
3357
 
2694
3358
 
@@ -2723,6 +3387,8 @@ var commands = {
2723
3387
  GetAgentMemoryCommand,
2724
3388
  InvokeAgentCommand,
2725
3389
  InvokeFlowCommand,
3390
+ InvokeInlineAgentCommand,
3391
+ OptimizePromptCommand,
2726
3392
  RetrieveCommand,
2727
3393
  RetrieveAndGenerateCommand
2728
3394
  };
@@ -2751,13 +3417,22 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
2751
3417
  GetAgentMemoryCommand,
2752
3418
  InvokeAgentCommand,
2753
3419
  InvokeFlowCommand,
3420
+ InvokeInlineAgentCommand,
3421
+ OptimizePromptCommand,
2754
3422
  RetrieveAndGenerateCommand,
2755
3423
  RetrieveCommand,
2756
3424
  paginateGetAgentMemory,
2757
3425
  paginateRetrieve,
2758
3426
  AccessDeniedException,
3427
+ CustomControlMethod,
3428
+ ActionGroupExecutor,
2759
3429
  ExecutionType,
3430
+ ActionGroupSignature,
2760
3431
  ActionInvocationType,
3432
+ APISchema,
3433
+ ParameterType,
3434
+ RequireConfirmation,
3435
+ FunctionSchema,
2761
3436
  BadGatewayException,
2762
3437
  ConflictException,
2763
3438
  DependencyFailedException,
@@ -2802,8 +3477,13 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
2802
3477
  PreProcessingTrace,
2803
3478
  Trace,
2804
3479
  ResponseStream,
3480
+ PromptState,
3481
+ InlineAgentResponseStream,
2805
3482
  MemoryType,
2806
3483
  Memory,
3484
+ InputPrompt,
3485
+ OptimizedPrompt,
3486
+ OptimizedPromptStream,
2807
3487
  ExternalSourceType,
2808
3488
  QueryTransformationType,
2809
3489
  RetrieveAndGenerateType,
@@ -2811,6 +3491,10 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
2811
3491
  RetrievalFilter,
2812
3492
  ActionGroupInvocationInputFilterSensitiveLog,
2813
3493
  ActionGroupInvocationOutputFilterSensitiveLog,
3494
+ APISchemaFilterSensitiveLog,
3495
+ FunctionDefinitionFilterSensitiveLog,
3496
+ FunctionSchemaFilterSensitiveLog,
3497
+ AgentActionGroupFilterSensitiveLog,
2814
3498
  FlowInputContentFilterSensitiveLog,
2815
3499
  FlowInputFilterSensitiveLog,
2816
3500
  InvokeFlowRequestFilterSensitiveLog,
@@ -2881,6 +3565,23 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
2881
3565
  TracePartFilterSensitiveLog,
2882
3566
  ResponseStreamFilterSensitiveLog,
2883
3567
  InvokeAgentResponseFilterSensitiveLog,
3568
+ InlineSessionStateFilterSensitiveLog,
3569
+ PromptConfigurationFilterSensitiveLog,
3570
+ PromptOverrideConfigurationFilterSensitiveLog,
3571
+ InlineAgentPayloadPartFilterSensitiveLog,
3572
+ InlineAgentFilePartFilterSensitiveLog,
3573
+ InlineAgentReturnControlPayloadFilterSensitiveLog,
3574
+ InlineAgentTracePartFilterSensitiveLog,
3575
+ InlineAgentResponseStreamFilterSensitiveLog,
3576
+ InvokeInlineAgentResponseFilterSensitiveLog,
3577
+ TextPromptFilterSensitiveLog,
3578
+ InputPromptFilterSensitiveLog,
3579
+ OptimizePromptRequestFilterSensitiveLog,
3580
+ AnalyzePromptEventFilterSensitiveLog,
3581
+ OptimizedPromptFilterSensitiveLog,
3582
+ OptimizedPromptEventFilterSensitiveLog,
3583
+ OptimizedPromptStreamFilterSensitiveLog,
3584
+ OptimizePromptResponseFilterSensitiveLog,
2884
3585
  RetrieveAndGenerateInputFilterSensitiveLog,
2885
3586
  PromptTemplateFilterSensitiveLog,
2886
3587
  ExternalSourcesGenerationConfigurationFilterSensitiveLog,
@@ -2897,10 +3598,12 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
2897
3598
  RetrievalFilterFilterSensitiveLog,
2898
3599
  KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog,
2899
3600
  KnowledgeBaseRetrievalConfigurationFilterSensitiveLog,
3601
+ KnowledgeBaseFilterSensitiveLog,
2900
3602
  KnowledgeBaseConfigurationFilterSensitiveLog,
2901
3603
  KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog,
2902
3604
  RetrieveRequestFilterSensitiveLog,
2903
3605
  RetrieveAndGenerateConfigurationFilterSensitiveLog,
3606
+ InvokeInlineAgentRequestFilterSensitiveLog,
2904
3607
  RetrieveAndGenerateRequestFilterSensitiveLog,
2905
3608
  SessionStateFilterSensitiveLog,
2906
3609
  InvokeAgentRequestFilterSensitiveLog