@aws-sdk/client-bedrock-agent-runtime 3.697.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,15 @@ 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,
28
33
  AnalyzePromptEventFilterSensitiveLog: () => AnalyzePromptEventFilterSensitiveLog,
29
34
  ApiInvocationInputFilterSensitiveLog: () => ApiInvocationInputFilterSensitiveLog,
30
35
  ApiResultFilterSensitiveLog: () => ApiResultFilterSensitiveLog,
@@ -39,6 +44,7 @@ __export(src_exports, {
39
44
  ConfirmationState: () => ConfirmationState,
40
45
  ConflictException: () => ConflictException,
41
46
  CreationMode: () => CreationMode,
47
+ CustomControlMethod: () => CustomControlMethod,
42
48
  DeleteAgentMemoryCommand: () => DeleteAgentMemoryCommand,
43
49
  DependencyFailedException: () => DependencyFailedException,
44
50
  ExecutionType: () => ExecutionType,
@@ -73,6 +79,9 @@ __export(src_exports, {
73
79
  FlowTraceNodeOutputContent: () => FlowTraceNodeOutputContent,
74
80
  FlowTraceNodeOutputEventFilterSensitiveLog: () => FlowTraceNodeOutputEventFilterSensitiveLog,
75
81
  FlowTraceNodeOutputFieldFilterSensitiveLog: () => FlowTraceNodeOutputFieldFilterSensitiveLog,
82
+ FunctionDefinitionFilterSensitiveLog: () => FunctionDefinitionFilterSensitiveLog,
83
+ FunctionSchema: () => FunctionSchema,
84
+ FunctionSchemaFilterSensitiveLog: () => FunctionSchemaFilterSensitiveLog,
76
85
  GeneratedResponsePartFilterSensitiveLog: () => GeneratedResponsePartFilterSensitiveLog,
77
86
  GenerationConfigurationFilterSensitiveLog: () => GenerationConfigurationFilterSensitiveLog,
78
87
  GetAgentMemoryCommand: () => GetAgentMemoryCommand,
@@ -99,6 +108,13 @@ __export(src_exports, {
99
108
  GuardrailTraceFilterSensitiveLog: () => GuardrailTraceFilterSensitiveLog,
100
109
  GuardrailWordPolicyAction: () => GuardrailWordPolicyAction,
101
110
  GuardrailWordPolicyAssessmentFilterSensitiveLog: () => GuardrailWordPolicyAssessmentFilterSensitiveLog,
111
+ InlineAgentFilePartFilterSensitiveLog: () => InlineAgentFilePartFilterSensitiveLog,
112
+ InlineAgentPayloadPartFilterSensitiveLog: () => InlineAgentPayloadPartFilterSensitiveLog,
113
+ InlineAgentResponseStream: () => InlineAgentResponseStream,
114
+ InlineAgentResponseStreamFilterSensitiveLog: () => InlineAgentResponseStreamFilterSensitiveLog,
115
+ InlineAgentReturnControlPayloadFilterSensitiveLog: () => InlineAgentReturnControlPayloadFilterSensitiveLog,
116
+ InlineAgentTracePartFilterSensitiveLog: () => InlineAgentTracePartFilterSensitiveLog,
117
+ InlineSessionStateFilterSensitiveLog: () => InlineSessionStateFilterSensitiveLog,
102
118
  InputFileFilterSensitiveLog: () => InputFileFilterSensitiveLog,
103
119
  InputPrompt: () => InputPrompt,
104
120
  InputPromptFilterSensitiveLog: () => InputPromptFilterSensitiveLog,
@@ -115,7 +131,11 @@ __export(src_exports, {
115
131
  InvokeFlowCommand: () => InvokeFlowCommand,
116
132
  InvokeFlowRequestFilterSensitiveLog: () => InvokeFlowRequestFilterSensitiveLog,
117
133
  InvokeFlowResponseFilterSensitiveLog: () => InvokeFlowResponseFilterSensitiveLog,
134
+ InvokeInlineAgentCommand: () => InvokeInlineAgentCommand,
135
+ InvokeInlineAgentRequestFilterSensitiveLog: () => InvokeInlineAgentRequestFilterSensitiveLog,
136
+ InvokeInlineAgentResponseFilterSensitiveLog: () => InvokeInlineAgentResponseFilterSensitiveLog,
118
137
  KnowledgeBaseConfigurationFilterSensitiveLog: () => KnowledgeBaseConfigurationFilterSensitiveLog,
138
+ KnowledgeBaseFilterSensitiveLog: () => KnowledgeBaseFilterSensitiveLog,
119
139
  KnowledgeBaseLookupInputFilterSensitiveLog: () => KnowledgeBaseLookupInputFilterSensitiveLog,
120
140
  KnowledgeBaseLookupOutputFilterSensitiveLog: () => KnowledgeBaseLookupOutputFilterSensitiveLog,
121
141
  KnowledgeBaseQueryFilterSensitiveLog: () => KnowledgeBaseQueryFilterSensitiveLog,
@@ -142,6 +162,7 @@ __export(src_exports, {
142
162
  OrchestrationTrace: () => OrchestrationTrace,
143
163
  OrchestrationTraceFilterSensitiveLog: () => OrchestrationTraceFilterSensitiveLog,
144
164
  OutputFileFilterSensitiveLog: () => OutputFileFilterSensitiveLog,
165
+ ParameterType: () => ParameterType,
145
166
  PayloadPartFilterSensitiveLog: () => PayloadPartFilterSensitiveLog,
146
167
  PostProcessingModelInvocationOutputFilterSensitiveLog: () => PostProcessingModelInvocationOutputFilterSensitiveLog,
147
168
  PostProcessingParsedResponseFilterSensitiveLog: () => PostProcessingParsedResponseFilterSensitiveLog,
@@ -151,12 +172,16 @@ __export(src_exports, {
151
172
  PreProcessingParsedResponseFilterSensitiveLog: () => PreProcessingParsedResponseFilterSensitiveLog,
152
173
  PreProcessingTrace: () => PreProcessingTrace,
153
174
  PreProcessingTraceFilterSensitiveLog: () => PreProcessingTraceFilterSensitiveLog,
175
+ PromptConfigurationFilterSensitiveLog: () => PromptConfigurationFilterSensitiveLog,
176
+ PromptOverrideConfigurationFilterSensitiveLog: () => PromptOverrideConfigurationFilterSensitiveLog,
177
+ PromptState: () => PromptState,
154
178
  PromptTemplateFilterSensitiveLog: () => PromptTemplateFilterSensitiveLog,
155
179
  PromptType: () => PromptType,
156
180
  QueryTransformationType: () => QueryTransformationType,
157
181
  RationaleFilterSensitiveLog: () => RationaleFilterSensitiveLog,
158
182
  RawResponseFilterSensitiveLog: () => RawResponseFilterSensitiveLog,
159
183
  RepromptResponseFilterSensitiveLog: () => RepromptResponseFilterSensitiveLog,
184
+ RequireConfirmation: () => RequireConfirmation,
160
185
  ResourceNotFoundException: () => ResourceNotFoundException,
161
186
  ResponseState: () => ResponseState,
162
187
  ResponseStream: () => ResponseStream,
@@ -382,15 +407,61 @@ var _AccessDeniedException = class _AccessDeniedException extends BedrockAgentRu
382
407
  };
383
408
  __name(_AccessDeniedException, "AccessDeniedException");
384
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 = {}));
385
423
  var ExecutionType = {
386
424
  LAMBDA: "LAMBDA",
387
425
  RETURN_CONTROL: "RETURN_CONTROL"
388
426
  };
427
+ var ActionGroupSignature = {
428
+ AMAZON_CODEINTERPRETER: "AMAZON.CodeInterpreter",
429
+ AMAZON_USERINPUT: "AMAZON.UserInput"
430
+ };
389
431
  var ActionInvocationType = {
390
432
  RESULT: "RESULT",
391
433
  USER_CONFIRMATION: "USER_CONFIRMATION",
392
434
  USER_CONFIRMATION_AND_RESULT: "USER_CONFIRMATION_AND_RESULT"
393
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 = {}));
394
465
  var _BadGatewayException = class _BadGatewayException extends BedrockAgentRuntimeServiceException {
395
466
  /**
396
467
  * @internal
@@ -746,7 +817,8 @@ var PromptType = {
746
817
  KNOWLEDGE_BASE_RESPONSE_GENERATION: "KNOWLEDGE_BASE_RESPONSE_GENERATION",
747
818
  ORCHESTRATION: "ORCHESTRATION",
748
819
  POST_PROCESSING: "POST_PROCESSING",
749
- PRE_PROCESSING: "PRE_PROCESSING"
820
+ PRE_PROCESSING: "PRE_PROCESSING",
821
+ ROUTING_CLASSIFIER: "ROUTING_CLASSIFIER"
750
822
  };
751
823
  var Source = {
752
824
  ACTION_GROUP: "ACTION_GROUP",
@@ -844,6 +916,42 @@ var ResponseStream;
844
916
  return visitor._(value.$unknown[0], value.$unknown[1]);
845
917
  }, "visit");
846
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 = {}));
847
955
  var MemoryType = {
848
956
  SESSION_SUMMARY: "SESSION_SUMMARY"
849
957
  };
@@ -951,6 +1059,32 @@ var ActionGroupInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj)
951
1059
  ...obj,
952
1060
  ...obj.text && { text: import_smithy_client.SENSITIVE_STRING }
953
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");
954
1088
  var FlowInputContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
955
1089
  if (obj.document !== void 0)
956
1090
  return { document: obj.document };
@@ -1350,6 +1484,78 @@ var InvokeAgentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1350
1484
  ...obj,
1351
1485
  ...obj.completion && { completion: "STREAMING_CONTENT" }
1352
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");
1353
1559
  var TextPromptFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1354
1560
  ...obj
1355
1561
  }), "TextPromptFilterSensitiveLog");
@@ -1496,6 +1702,13 @@ var KnowledgeBaseRetrievalConfigurationFilterSensitiveLog = /* @__PURE__ */ __na
1496
1702
  vectorSearchConfiguration: KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog(obj.vectorSearchConfiguration)
1497
1703
  }
1498
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");
1499
1712
  var KnowledgeBaseConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1500
1713
  ...obj,
1501
1714
  ...obj.retrievalConfiguration && {
@@ -1534,6 +1747,17 @@ var RetrieveAndGenerateConfigurationFilterSensitiveLog = /* @__PURE__ */ __name(
1534
1747
  )
1535
1748
  }
1536
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");
1537
1761
  var RetrieveAndGenerateRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1538
1762
  ...obj,
1539
1763
  ...obj.input && { input: import_smithy_client.SENSITIVE_STRING },
@@ -1633,6 +1857,33 @@ var se_InvokeFlowCommand = /* @__PURE__ */ __name(async (input, context) => {
1633
1857
  b.m("POST").h(headers).b(body);
1634
1858
  return b.build();
1635
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");
1636
1887
  var se_OptimizePromptCommand = /* @__PURE__ */ __name(async (input, context) => {
1637
1888
  const b = (0, import_core.requestBuilder)(input, context);
1638
1889
  const headers = {
@@ -1735,6 +1986,19 @@ var de_InvokeFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
1735
1986
  contents.responseStream = de_FlowResponseStream(data, context);
1736
1987
  return contents;
1737
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");
1738
2002
  var de_OptimizePromptCommand = /* @__PURE__ */ __name(async (output, context) => {
1739
2003
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1740
2004
  return de_CommandError(output, context);
@@ -2015,6 +2279,85 @@ var de_FlowResponseStream = /* @__PURE__ */ __name((output, context) => {
2015
2279
  return { $unknown: output };
2016
2280
  });
2017
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");
2018
2361
  var de_OptimizedPromptStream = /* @__PURE__ */ __name((output, context) => {
2019
2362
  return context.eventStreamMarshaller.deserialize(output, async (event) => {
2020
2363
  if (event["optimizedPromptEvent"] != null) {
@@ -2200,6 +2543,30 @@ var de_FlowTraceEvent_event = /* @__PURE__ */ __name(async (output, context) =>
2200
2543
  Object.assign(contents, de_FlowTraceEvent(data, context));
2201
2544
  return contents;
2202
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");
2203
2570
  var de_InternalServerException_event = /* @__PURE__ */ __name(async (output, context) => {
2204
2571
  const parsedOutput = {
2205
2572
  ...output,
@@ -2358,6 +2725,24 @@ var se_InferenceConfig = /* @__PURE__ */ __name((input, context) => {
2358
2725
  textInferenceConfig: (_) => se_TextInferenceConfig(_, context)
2359
2726
  });
2360
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");
2361
2746
  var se_InputFile = /* @__PURE__ */ __name((input, context) => {
2362
2747
  return (0, import_smithy_client.take)(input, {
2363
2748
  name: [],
@@ -2370,6 +2755,13 @@ var se_InputFiles = /* @__PURE__ */ __name((input, context) => {
2370
2755
  return se_InputFile(entry, context);
2371
2756
  });
2372
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");
2373
2765
  var se_KnowledgeBaseConfiguration = /* @__PURE__ */ __name((input, context) => {
2374
2766
  return (0, import_smithy_client.take)(input, {
2375
2767
  knowledgeBaseId: [],
@@ -2395,6 +2787,11 @@ var se_KnowledgeBaseRetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((i
2395
2787
  retrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context)
2396
2788
  });
2397
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");
2398
2795
  var se_KnowledgeBaseVectorSearchConfiguration = /* @__PURE__ */ __name((input, context) => {
2399
2796
  return (0, import_smithy_client.take)(input, {
2400
2797
  filter: (_) => se_RetrievalFilter(_, context),
@@ -2410,6 +2807,27 @@ var se_OrchestrationConfiguration = /* @__PURE__ */ __name((input, context) => {
2410
2807
  queryTransformationConfiguration: import_smithy_client._json
2411
2808
  });
2412
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");
2413
2831
  var se_RetrievalFilter = /* @__PURE__ */ __name((input, context) => {
2414
2832
  return RetrievalFilter.visit(input, {
2415
2833
  andAll: (value) => ({ andAll: se_RetrievalFilterList(value, context) }),
@@ -2591,6 +3009,23 @@ var de_InferenceConfiguration = /* @__PURE__ */ __name((output, context) => {
2591
3009
  topP: import_smithy_client.limitedParseFloat32
2592
3010
  });
2593
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");
2594
3029
  var de_KnowledgeBaseLookupOutput = /* @__PURE__ */ __name((output, context) => {
2595
3030
  return (0, import_smithy_client.take)(output, {
2596
3031
  retrievedReferences: (_) => de_RetrievedReferences(_, context)
@@ -2876,6 +3311,27 @@ var _InvokeFlowCommand = class _InvokeFlowCommand extends import_smithy_client.C
2876
3311
  __name(_InvokeFlowCommand, "InvokeFlowCommand");
2877
3312
  var InvokeFlowCommand = _InvokeFlowCommand;
2878
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
+
2879
3335
  // src/commands/OptimizePromptCommand.ts
2880
3336
 
2881
3337
 
@@ -2931,6 +3387,7 @@ var commands = {
2931
3387
  GetAgentMemoryCommand,
2932
3388
  InvokeAgentCommand,
2933
3389
  InvokeFlowCommand,
3390
+ InvokeInlineAgentCommand,
2934
3391
  OptimizePromptCommand,
2935
3392
  RetrieveCommand,
2936
3393
  RetrieveAndGenerateCommand
@@ -2960,14 +3417,22 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
2960
3417
  GetAgentMemoryCommand,
2961
3418
  InvokeAgentCommand,
2962
3419
  InvokeFlowCommand,
3420
+ InvokeInlineAgentCommand,
2963
3421
  OptimizePromptCommand,
2964
3422
  RetrieveAndGenerateCommand,
2965
3423
  RetrieveCommand,
2966
3424
  paginateGetAgentMemory,
2967
3425
  paginateRetrieve,
2968
3426
  AccessDeniedException,
3427
+ CustomControlMethod,
3428
+ ActionGroupExecutor,
2969
3429
  ExecutionType,
3430
+ ActionGroupSignature,
2970
3431
  ActionInvocationType,
3432
+ APISchema,
3433
+ ParameterType,
3434
+ RequireConfirmation,
3435
+ FunctionSchema,
2971
3436
  BadGatewayException,
2972
3437
  ConflictException,
2973
3438
  DependencyFailedException,
@@ -3012,6 +3477,8 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
3012
3477
  PreProcessingTrace,
3013
3478
  Trace,
3014
3479
  ResponseStream,
3480
+ PromptState,
3481
+ InlineAgentResponseStream,
3015
3482
  MemoryType,
3016
3483
  Memory,
3017
3484
  InputPrompt,
@@ -3024,6 +3491,10 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
3024
3491
  RetrievalFilter,
3025
3492
  ActionGroupInvocationInputFilterSensitiveLog,
3026
3493
  ActionGroupInvocationOutputFilterSensitiveLog,
3494
+ APISchemaFilterSensitiveLog,
3495
+ FunctionDefinitionFilterSensitiveLog,
3496
+ FunctionSchemaFilterSensitiveLog,
3497
+ AgentActionGroupFilterSensitiveLog,
3027
3498
  FlowInputContentFilterSensitiveLog,
3028
3499
  FlowInputFilterSensitiveLog,
3029
3500
  InvokeFlowRequestFilterSensitiveLog,
@@ -3094,6 +3565,15 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
3094
3565
  TracePartFilterSensitiveLog,
3095
3566
  ResponseStreamFilterSensitiveLog,
3096
3567
  InvokeAgentResponseFilterSensitiveLog,
3568
+ InlineSessionStateFilterSensitiveLog,
3569
+ PromptConfigurationFilterSensitiveLog,
3570
+ PromptOverrideConfigurationFilterSensitiveLog,
3571
+ InlineAgentPayloadPartFilterSensitiveLog,
3572
+ InlineAgentFilePartFilterSensitiveLog,
3573
+ InlineAgentReturnControlPayloadFilterSensitiveLog,
3574
+ InlineAgentTracePartFilterSensitiveLog,
3575
+ InlineAgentResponseStreamFilterSensitiveLog,
3576
+ InvokeInlineAgentResponseFilterSensitiveLog,
3097
3577
  TextPromptFilterSensitiveLog,
3098
3578
  InputPromptFilterSensitiveLog,
3099
3579
  OptimizePromptRequestFilterSensitiveLog,
@@ -3118,10 +3598,12 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
3118
3598
  RetrievalFilterFilterSensitiveLog,
3119
3599
  KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog,
3120
3600
  KnowledgeBaseRetrievalConfigurationFilterSensitiveLog,
3601
+ KnowledgeBaseFilterSensitiveLog,
3121
3602
  KnowledgeBaseConfigurationFilterSensitiveLog,
3122
3603
  KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog,
3123
3604
  RetrieveRequestFilterSensitiveLog,
3124
3605
  RetrieveAndGenerateConfigurationFilterSensitiveLog,
3606
+ InvokeInlineAgentRequestFilterSensitiveLog,
3125
3607
  RetrieveAndGenerateRequestFilterSensitiveLog,
3126
3608
  SessionStateFilterSensitiveLog,
3127
3609
  InvokeAgentRequestFilterSensitiveLog