@aws-sdk/client-bedrock-agent-runtime 3.928.0 → 3.930.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.
Files changed (58) hide show
  1. package/dist-cjs/index.js +3454 -5248
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/BedrockAgentRuntimeClient.js +2 -0
  4. package/dist-es/commands/CreateInvocationCommand.js +3 -9
  5. package/dist-es/commands/CreateSessionCommand.js +3 -9
  6. package/dist-es/commands/DeleteAgentMemoryCommand.js +3 -9
  7. package/dist-es/commands/DeleteSessionCommand.js +3 -9
  8. package/dist-es/commands/EndSessionCommand.js +3 -9
  9. package/dist-es/commands/GenerateQueryCommand.js +3 -10
  10. package/dist-es/commands/GetAgentMemoryCommand.js +3 -9
  11. package/dist-es/commands/GetExecutionFlowSnapshotCommand.js +3 -9
  12. package/dist-es/commands/GetFlowExecutionCommand.js +3 -9
  13. package/dist-es/commands/GetInvocationStepCommand.js +3 -10
  14. package/dist-es/commands/GetSessionCommand.js +3 -9
  15. package/dist-es/commands/InvokeAgentCommand.js +3 -11
  16. package/dist-es/commands/InvokeFlowCommand.js +3 -10
  17. package/dist-es/commands/InvokeInlineAgentCommand.js +3 -11
  18. package/dist-es/commands/ListFlowExecutionEventsCommand.js +3 -10
  19. package/dist-es/commands/ListFlowExecutionsCommand.js +3 -9
  20. package/dist-es/commands/ListInvocationStepsCommand.js +3 -9
  21. package/dist-es/commands/ListInvocationsCommand.js +3 -9
  22. package/dist-es/commands/ListSessionsCommand.js +3 -9
  23. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  24. package/dist-es/commands/OptimizePromptCommand.js +3 -10
  25. package/dist-es/commands/PutInvocationStepCommand.js +3 -10
  26. package/dist-es/commands/RerankCommand.js +3 -10
  27. package/dist-es/commands/RetrieveAndGenerateCommand.js +3 -10
  28. package/dist-es/commands/RetrieveAndGenerateStreamCommand.js +3 -10
  29. package/dist-es/commands/RetrieveCommand.js +3 -10
  30. package/dist-es/commands/StartFlowExecutionCommand.js +3 -10
  31. package/dist-es/commands/StopFlowExecutionCommand.js +3 -9
  32. package/dist-es/commands/TagResourceCommand.js +3 -9
  33. package/dist-es/commands/UntagResourceCommand.js +3 -9
  34. package/dist-es/commands/UpdateSessionCommand.js +3 -9
  35. package/dist-es/models/models_0.js +0 -1348
  36. package/dist-es/models/models_1.js +0 -352
  37. package/dist-es/runtimeConfig.shared.js +2 -0
  38. package/dist-es/schemas/schemas_0.js +3380 -0
  39. package/dist-types/BedrockAgentRuntimeClient.d.ts +10 -1
  40. package/dist-types/models/models_0.d.ts +136 -678
  41. package/dist-types/models/models_1.d.ts +20 -133
  42. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  43. package/dist-types/runtimeConfig.d.ts +1 -0
  44. package/dist-types/runtimeConfig.native.d.ts +1 -0
  45. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  46. package/dist-types/schemas/schemas_0.d.ts +445 -0
  47. package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +4 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +0 -468
  49. package/dist-types/ts3.4/models/models_1.d.ts +0 -100
  50. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  51. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  52. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  53. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  54. package/dist-types/ts3.4/schemas/schemas_0.d.ts +452 -0
  55. package/package.json +36 -36
  56. package/dist-es/protocols/Aws_restJson1.js +0 -3122
  57. package/dist-types/protocols/Aws_restJson1.d.ts +0 -281
  58. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -380
@@ -1,4 +1,3 @@
1
- import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
1
  import { BedrockAgentRuntimeServiceException as __BaseException } from "./BedrockAgentRuntimeServiceException";
3
2
  export class AccessDeniedException extends __BaseException {
4
3
  name = "AccessDeniedException";
@@ -15,16 +14,6 @@ export class AccessDeniedException extends __BaseException {
15
14
  export const CustomControlMethod = {
16
15
  RETURN_CONTROL: "RETURN_CONTROL",
17
16
  };
18
- export var ActionGroupExecutor;
19
- (function (ActionGroupExecutor) {
20
- ActionGroupExecutor.visit = (value, visitor) => {
21
- if (value.lambda !== undefined)
22
- return visitor.lambda(value.lambda);
23
- if (value.customControl !== undefined)
24
- return visitor.customControl(value.customControl);
25
- return visitor._(value.$unknown[0], value.$unknown[1]);
26
- };
27
- })(ActionGroupExecutor || (ActionGroupExecutor = {}));
28
17
  export const ExecutionType = {
29
18
  LAMBDA: "LAMBDA",
30
19
  RETURN_CONTROL: "RETURN_CONTROL",
@@ -41,16 +30,6 @@ export const ActionInvocationType = {
41
30
  USER_CONFIRMATION: "USER_CONFIRMATION",
42
31
  USER_CONFIRMATION_AND_RESULT: "USER_CONFIRMATION_AND_RESULT",
43
32
  };
44
- export var APISchema;
45
- (function (APISchema) {
46
- APISchema.visit = (value, visitor) => {
47
- if (value.s3 !== undefined)
48
- return visitor.s3(value.s3);
49
- if (value.payload !== undefined)
50
- return visitor.payload(value.payload);
51
- return visitor._(value.$unknown[0], value.$unknown[1]);
52
- };
53
- })(APISchema || (APISchema = {}));
54
33
  export const ParameterType = {
55
34
  ARRAY: "array",
56
35
  BOOLEAN: "boolean",
@@ -62,14 +41,6 @@ export const RequireConfirmation = {
62
41
  DISABLED: "DISABLED",
63
42
  ENABLED: "ENABLED",
64
43
  };
65
- export var FunctionSchema;
66
- (function (FunctionSchema) {
67
- FunctionSchema.visit = (value, visitor) => {
68
- if (value.functions !== undefined)
69
- return visitor.functions(value.functions);
70
- return visitor._(value.$unknown[0], value.$unknown[1]);
71
- };
72
- })(FunctionSchema || (FunctionSchema = {}));
73
44
  export const AgentCollaboration = {
74
45
  DISABLED: "DISABLED",
75
46
  SUPERVISOR: "SUPERVISOR",
@@ -85,50 +56,14 @@ export const ImageInputFormat = {
85
56
  PNG: "png",
86
57
  WEBP: "webp",
87
58
  };
88
- export var ImageInputSource;
89
- (function (ImageInputSource) {
90
- ImageInputSource.visit = (value, visitor) => {
91
- if (value.bytes !== undefined)
92
- return visitor.bytes(value.bytes);
93
- return visitor._(value.$unknown[0], value.$unknown[1]);
94
- };
95
- })(ImageInputSource || (ImageInputSource = {}));
96
59
  export const ResponseState = {
97
60
  FAILURE: "FAILURE",
98
61
  REPROMPT: "REPROMPT",
99
62
  };
100
- export var InvocationResultMember;
101
- (function (InvocationResultMember) {
102
- InvocationResultMember.visit = (value, visitor) => {
103
- if (value.apiResult !== undefined)
104
- return visitor.apiResult(value.apiResult);
105
- if (value.functionResult !== undefined)
106
- return visitor.functionResult(value.functionResult);
107
- return visitor._(value.$unknown[0], value.$unknown[1]);
108
- };
109
- })(InvocationResultMember || (InvocationResultMember = {}));
110
63
  export const PayloadType = {
111
64
  RETURN_CONTROL: "RETURN_CONTROL",
112
65
  TEXT: "TEXT",
113
66
  };
114
- export var InvocationInputMember;
115
- (function (InvocationInputMember) {
116
- InvocationInputMember.visit = (value, visitor) => {
117
- if (value.apiInvocationInput !== undefined)
118
- return visitor.apiInvocationInput(value.apiInvocationInput);
119
- if (value.functionInvocationInput !== undefined)
120
- return visitor.functionInvocationInput(value.functionInvocationInput);
121
- return visitor._(value.$unknown[0], value.$unknown[1]);
122
- };
123
- })(InvocationInputMember || (InvocationInputMember = {}));
124
- export var Caller;
125
- (function (Caller) {
126
- Caller.visit = (value, visitor) => {
127
- if (value.agentAliasArn !== undefined)
128
- return visitor.agentAliasArn(value.agentAliasArn);
129
- return visitor._(value.$unknown[0], value.$unknown[1]);
130
- };
131
- })(Caller || (Caller = {}));
132
67
  export const GuardrailAction = {
133
68
  INTERVENED: "INTERVENED",
134
69
  NONE: "NONE",
@@ -217,16 +152,6 @@ export const PromptType = {
217
152
  PRE_PROCESSING: "PRE_PROCESSING",
218
153
  ROUTING_CLASSIFIER: "ROUTING_CLASSIFIER",
219
154
  };
220
- export var ReasoningContentBlock;
221
- (function (ReasoningContentBlock) {
222
- ReasoningContentBlock.visit = (value, visitor) => {
223
- if (value.reasoningText !== undefined)
224
- return visitor.reasoningText(value.reasoningText);
225
- if (value.redactedContent !== undefined)
226
- return visitor.redactedContent(value.redactedContent);
227
- return visitor._(value.$unknown[0], value.$unknown[1]);
228
- };
229
- })(ReasoningContentBlock || (ReasoningContentBlock = {}));
230
155
  export const RetrievalResultContentColumnType = {
231
156
  BLOB: "BLOB",
232
157
  BOOLEAN: "BOOLEAN",
@@ -263,76 +188,6 @@ export const Type = {
263
188
  KNOWLEDGE_BASE: "KNOWLEDGE_BASE",
264
189
  REPROMPT: "REPROMPT",
265
190
  };
266
- export var OrchestrationTrace;
267
- (function (OrchestrationTrace) {
268
- OrchestrationTrace.visit = (value, visitor) => {
269
- if (value.rationale !== undefined)
270
- return visitor.rationale(value.rationale);
271
- if (value.invocationInput !== undefined)
272
- return visitor.invocationInput(value.invocationInput);
273
- if (value.observation !== undefined)
274
- return visitor.observation(value.observation);
275
- if (value.modelInvocationInput !== undefined)
276
- return visitor.modelInvocationInput(value.modelInvocationInput);
277
- if (value.modelInvocationOutput !== undefined)
278
- return visitor.modelInvocationOutput(value.modelInvocationOutput);
279
- return visitor._(value.$unknown[0], value.$unknown[1]);
280
- };
281
- })(OrchestrationTrace || (OrchestrationTrace = {}));
282
- export var PostProcessingTrace;
283
- (function (PostProcessingTrace) {
284
- PostProcessingTrace.visit = (value, visitor) => {
285
- if (value.modelInvocationInput !== undefined)
286
- return visitor.modelInvocationInput(value.modelInvocationInput);
287
- if (value.modelInvocationOutput !== undefined)
288
- return visitor.modelInvocationOutput(value.modelInvocationOutput);
289
- return visitor._(value.$unknown[0], value.$unknown[1]);
290
- };
291
- })(PostProcessingTrace || (PostProcessingTrace = {}));
292
- export var PreProcessingTrace;
293
- (function (PreProcessingTrace) {
294
- PreProcessingTrace.visit = (value, visitor) => {
295
- if (value.modelInvocationInput !== undefined)
296
- return visitor.modelInvocationInput(value.modelInvocationInput);
297
- if (value.modelInvocationOutput !== undefined)
298
- return visitor.modelInvocationOutput(value.modelInvocationOutput);
299
- return visitor._(value.$unknown[0], value.$unknown[1]);
300
- };
301
- })(PreProcessingTrace || (PreProcessingTrace = {}));
302
- export var RoutingClassifierTrace;
303
- (function (RoutingClassifierTrace) {
304
- RoutingClassifierTrace.visit = (value, visitor) => {
305
- if (value.invocationInput !== undefined)
306
- return visitor.invocationInput(value.invocationInput);
307
- if (value.observation !== undefined)
308
- return visitor.observation(value.observation);
309
- if (value.modelInvocationInput !== undefined)
310
- return visitor.modelInvocationInput(value.modelInvocationInput);
311
- if (value.modelInvocationOutput !== undefined)
312
- return visitor.modelInvocationOutput(value.modelInvocationOutput);
313
- return visitor._(value.$unknown[0], value.$unknown[1]);
314
- };
315
- })(RoutingClassifierTrace || (RoutingClassifierTrace = {}));
316
- export var Trace;
317
- (function (Trace) {
318
- Trace.visit = (value, visitor) => {
319
- if (value.guardrailTrace !== undefined)
320
- return visitor.guardrailTrace(value.guardrailTrace);
321
- if (value.preProcessingTrace !== undefined)
322
- return visitor.preProcessingTrace(value.preProcessingTrace);
323
- if (value.orchestrationTrace !== undefined)
324
- return visitor.orchestrationTrace(value.orchestrationTrace);
325
- if (value.postProcessingTrace !== undefined)
326
- return visitor.postProcessingTrace(value.postProcessingTrace);
327
- if (value.routingClassifierTrace !== undefined)
328
- return visitor.routingClassifierTrace(value.routingClassifierTrace);
329
- if (value.failureTrace !== undefined)
330
- return visitor.failureTrace(value.failureTrace);
331
- if (value.customOrchestrationTrace !== undefined)
332
- return visitor.customOrchestrationTrace(value.customOrchestrationTrace);
333
- return visitor._(value.$unknown[0], value.$unknown[1]);
334
- };
335
- })(Trace || (Trace = {}));
336
191
  export class InternalServerException extends __BaseException {
337
192
  name = "InternalServerException";
338
193
  $fault = "server";
@@ -402,22 +257,6 @@ export const FlowErrorCode = {
402
257
  NODE_EXECUTION_FAILED: "NODE_EXECUTION_FAILED",
403
258
  VALIDATION: "VALIDATION",
404
259
  };
405
- export var FlowExecutionContent;
406
- (function (FlowExecutionContent) {
407
- FlowExecutionContent.visit = (value, visitor) => {
408
- if (value.document !== undefined)
409
- return visitor.document(value.document);
410
- return visitor._(value.$unknown[0], value.$unknown[1]);
411
- };
412
- })(FlowExecutionContent || (FlowExecutionContent = {}));
413
- export var NodeTraceElements;
414
- (function (NodeTraceElements) {
415
- NodeTraceElements.visit = (value, visitor) => {
416
- if (value.agentTraces !== undefined)
417
- return visitor.agentTraces(value.agentTraces);
418
- return visitor._(value.$unknown[0], value.$unknown[1]);
419
- };
420
- })(NodeTraceElements || (NodeTraceElements = {}));
421
260
  export const NodeErrorCode = {
422
261
  BAD_GATEWAY: "BAD_GATEWAY",
423
262
  DEPENDENCY_FAILED: "DEPENDENCY_FAILED",
@@ -429,14 +268,6 @@ export const FlowNodeInputCategory = {
429
268
  LOOP_CONDITION: "LoopCondition",
430
269
  RETURN_VALUE_TO_LOOP_START: "ReturnValueToLoopStart",
431
270
  };
432
- export var NodeExecutionContent;
433
- (function (NodeExecutionContent) {
434
- NodeExecutionContent.visit = (value, visitor) => {
435
- if (value.document !== undefined)
436
- return visitor.document(value.document);
437
- return visitor._(value.$unknown[0], value.$unknown[1]);
438
- };
439
- })(NodeExecutionContent || (NodeExecutionContent = {}));
440
271
  export const FlowControlNodeType = {
441
272
  ITERATOR: "Iterator",
442
273
  LOOP: "Loop",
@@ -448,30 +279,6 @@ export const FlowNodeIODataType = {
448
279
  OBJECT: "Object",
449
280
  STRING: "String",
450
281
  };
451
- export var FlowExecutionEvent;
452
- (function (FlowExecutionEvent) {
453
- FlowExecutionEvent.visit = (value, visitor) => {
454
- if (value.flowInputEvent !== undefined)
455
- return visitor.flowInputEvent(value.flowInputEvent);
456
- if (value.flowOutputEvent !== undefined)
457
- return visitor.flowOutputEvent(value.flowOutputEvent);
458
- if (value.nodeInputEvent !== undefined)
459
- return visitor.nodeInputEvent(value.nodeInputEvent);
460
- if (value.nodeOutputEvent !== undefined)
461
- return visitor.nodeOutputEvent(value.nodeOutputEvent);
462
- if (value.conditionResultEvent !== undefined)
463
- return visitor.conditionResultEvent(value.conditionResultEvent);
464
- if (value.nodeFailureEvent !== undefined)
465
- return visitor.nodeFailureEvent(value.nodeFailureEvent);
466
- if (value.flowFailureEvent !== undefined)
467
- return visitor.flowFailureEvent(value.flowFailureEvent);
468
- if (value.nodeActionEvent !== undefined)
469
- return visitor.nodeActionEvent(value.nodeActionEvent);
470
- if (value.nodeDependencyEvent !== undefined)
471
- return visitor.nodeDependencyEvent(value.nodeDependencyEvent);
472
- return visitor._(value.$unknown[0], value.$unknown[1]);
473
- };
474
- })(FlowExecutionEvent || (FlowExecutionEvent = {}));
475
282
  export class BadGatewayException extends __BaseException {
476
283
  name = "BadGatewayException";
477
284
  $fault = "server";
@@ -524,14 +331,6 @@ export class ServiceQuotaExceededException extends __BaseException {
524
331
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
525
332
  }
526
333
  }
527
- export var FlowInputContent;
528
- (function (FlowInputContent) {
529
- FlowInputContent.visit = (value, visitor) => {
530
- if (value.document !== undefined)
531
- return visitor.document(value.document);
532
- return visitor._(value.$unknown[0], value.$unknown[1]);
533
- };
534
- })(FlowInputContent || (FlowInputContent = {}));
535
334
  export const PerformanceConfigLatency = {
536
335
  OPTIMIZED: "optimized",
537
336
  STANDARD: "standard",
@@ -540,14 +339,6 @@ export const FlowCompletionReason = {
540
339
  INPUT_REQUIRED: "INPUT_REQUIRED",
541
340
  SUCCESS: "SUCCESS",
542
341
  };
543
- export var FlowMultiTurnInputContent;
544
- (function (FlowMultiTurnInputContent) {
545
- FlowMultiTurnInputContent.visit = (value, visitor) => {
546
- if (value.document !== undefined)
547
- return visitor.document(value.document);
548
- return visitor._(value.$unknown[0], value.$unknown[1]);
549
- };
550
- })(FlowMultiTurnInputContent || (FlowMultiTurnInputContent = {}));
551
342
  export const NodeType = {
552
343
  CONDITION_NODE: "ConditionNode",
553
344
  FLOW_INPUT_NODE: "FlowInputNode",
@@ -557,86 +348,6 @@ export const NodeType = {
557
348
  LEX_NODE: "LexNode",
558
349
  PROMPT_NODE: "PromptNode",
559
350
  };
560
- export var FlowOutputContent;
561
- (function (FlowOutputContent) {
562
- FlowOutputContent.visit = (value, visitor) => {
563
- if (value.document !== undefined)
564
- return visitor.document(value.document);
565
- return visitor._(value.$unknown[0], value.$unknown[1]);
566
- };
567
- })(FlowOutputContent || (FlowOutputContent = {}));
568
- export var TraceElements;
569
- (function (TraceElements) {
570
- TraceElements.visit = (value, visitor) => {
571
- if (value.agentTraces !== undefined)
572
- return visitor.agentTraces(value.agentTraces);
573
- return visitor._(value.$unknown[0], value.$unknown[1]);
574
- };
575
- })(TraceElements || (TraceElements = {}));
576
- export var FlowTraceNodeInputContent;
577
- (function (FlowTraceNodeInputContent) {
578
- FlowTraceNodeInputContent.visit = (value, visitor) => {
579
- if (value.document !== undefined)
580
- return visitor.document(value.document);
581
- return visitor._(value.$unknown[0], value.$unknown[1]);
582
- };
583
- })(FlowTraceNodeInputContent || (FlowTraceNodeInputContent = {}));
584
- export var FlowTraceNodeOutputContent;
585
- (function (FlowTraceNodeOutputContent) {
586
- FlowTraceNodeOutputContent.visit = (value, visitor) => {
587
- if (value.document !== undefined)
588
- return visitor.document(value.document);
589
- return visitor._(value.$unknown[0], value.$unknown[1]);
590
- };
591
- })(FlowTraceNodeOutputContent || (FlowTraceNodeOutputContent = {}));
592
- export var FlowTrace;
593
- (function (FlowTrace) {
594
- FlowTrace.visit = (value, visitor) => {
595
- if (value.nodeInputTrace !== undefined)
596
- return visitor.nodeInputTrace(value.nodeInputTrace);
597
- if (value.nodeOutputTrace !== undefined)
598
- return visitor.nodeOutputTrace(value.nodeOutputTrace);
599
- if (value.conditionNodeResultTrace !== undefined)
600
- return visitor.conditionNodeResultTrace(value.conditionNodeResultTrace);
601
- if (value.nodeActionTrace !== undefined)
602
- return visitor.nodeActionTrace(value.nodeActionTrace);
603
- if (value.nodeDependencyTrace !== undefined)
604
- return visitor.nodeDependencyTrace(value.nodeDependencyTrace);
605
- return visitor._(value.$unknown[0], value.$unknown[1]);
606
- };
607
- })(FlowTrace || (FlowTrace = {}));
608
- export var FlowResponseStream;
609
- (function (FlowResponseStream) {
610
- FlowResponseStream.visit = (value, visitor) => {
611
- if (value.flowOutputEvent !== undefined)
612
- return visitor.flowOutputEvent(value.flowOutputEvent);
613
- if (value.flowCompletionEvent !== undefined)
614
- return visitor.flowCompletionEvent(value.flowCompletionEvent);
615
- if (value.flowTraceEvent !== undefined)
616
- return visitor.flowTraceEvent(value.flowTraceEvent);
617
- if (value.internalServerException !== undefined)
618
- return visitor.internalServerException(value.internalServerException);
619
- if (value.validationException !== undefined)
620
- return visitor.validationException(value.validationException);
621
- if (value.resourceNotFoundException !== undefined)
622
- return visitor.resourceNotFoundException(value.resourceNotFoundException);
623
- if (value.serviceQuotaExceededException !== undefined)
624
- return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
625
- if (value.throttlingException !== undefined)
626
- return visitor.throttlingException(value.throttlingException);
627
- if (value.accessDeniedException !== undefined)
628
- return visitor.accessDeniedException(value.accessDeniedException);
629
- if (value.conflictException !== undefined)
630
- return visitor.conflictException(value.conflictException);
631
- if (value.dependencyFailedException !== undefined)
632
- return visitor.dependencyFailedException(value.dependencyFailedException);
633
- if (value.badGatewayException !== undefined)
634
- return visitor.badGatewayException(value.badGatewayException);
635
- if (value.flowMultiTurnInputRequestEvent !== undefined)
636
- return visitor.flowMultiTurnInputRequestEvent(value.flowMultiTurnInputRequestEvent);
637
- return visitor._(value.$unknown[0], value.$unknown[1]);
638
- };
639
- })(FlowResponseStream || (FlowResponseStream = {}));
640
351
  export const InputQueryType = {
641
352
  TEXT: "TEXT",
642
353
  };
@@ -649,14 +360,6 @@ export const TextToSqlConfigurationType = {
649
360
  export const GeneratedQueryType = {
650
361
  REDSHIFT_SQL: "REDSHIFT_SQL",
651
362
  };
652
- export var ContentBlock;
653
- (function (ContentBlock) {
654
- ContentBlock.visit = (value, visitor) => {
655
- if (value.text !== undefined)
656
- return visitor.text(value.text);
657
- return visitor._(value.$unknown[0], value.$unknown[1]);
658
- };
659
- })(ContentBlock || (ContentBlock = {}));
660
363
  export const ConversationRole = {
661
364
  ASSISTANT: "assistant",
662
365
  USER: "user",
@@ -683,16 +386,6 @@ export const RerankingMetadataSelectionMode = {
683
386
  ALL: "ALL",
684
387
  SELECTIVE: "SELECTIVE",
685
388
  };
686
- export var RerankingMetadataSelectiveModeConfiguration;
687
- (function (RerankingMetadataSelectiveModeConfiguration) {
688
- RerankingMetadataSelectiveModeConfiguration.visit = (value, visitor) => {
689
- if (value.fieldsToInclude !== undefined)
690
- return visitor.fieldsToInclude(value.fieldsToInclude);
691
- if (value.fieldsToExclude !== undefined)
692
- return visitor.fieldsToExclude(value.fieldsToExclude);
693
- return visitor._(value.$unknown[0], value.$unknown[1]);
694
- };
695
- })(RerankingMetadataSelectiveModeConfiguration || (RerankingMetadataSelectiveModeConfiguration = {}));
696
389
  export const VectorSearchRerankingConfigurationType = {
697
390
  BEDROCK_RERANKING_MODEL: "BEDROCK_RERANKING_MODEL",
698
391
  };
@@ -708,40 +401,6 @@ export class ModelNotReadyException extends __BaseException {
708
401
  Object.setPrototypeOf(this, ModelNotReadyException.prototype);
709
402
  }
710
403
  }
711
- export var ResponseStream;
712
- (function (ResponseStream) {
713
- ResponseStream.visit = (value, visitor) => {
714
- if (value.chunk !== undefined)
715
- return visitor.chunk(value.chunk);
716
- if (value.trace !== undefined)
717
- return visitor.trace(value.trace);
718
- if (value.returnControl !== undefined)
719
- return visitor.returnControl(value.returnControl);
720
- if (value.internalServerException !== undefined)
721
- return visitor.internalServerException(value.internalServerException);
722
- if (value.validationException !== undefined)
723
- return visitor.validationException(value.validationException);
724
- if (value.resourceNotFoundException !== undefined)
725
- return visitor.resourceNotFoundException(value.resourceNotFoundException);
726
- if (value.serviceQuotaExceededException !== undefined)
727
- return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
728
- if (value.throttlingException !== undefined)
729
- return visitor.throttlingException(value.throttlingException);
730
- if (value.accessDeniedException !== undefined)
731
- return visitor.accessDeniedException(value.accessDeniedException);
732
- if (value.conflictException !== undefined)
733
- return visitor.conflictException(value.conflictException);
734
- if (value.dependencyFailedException !== undefined)
735
- return visitor.dependencyFailedException(value.dependencyFailedException);
736
- if (value.badGatewayException !== undefined)
737
- return visitor.badGatewayException(value.badGatewayException);
738
- if (value.modelNotReadyException !== undefined)
739
- return visitor.modelNotReadyException(value.modelNotReadyException);
740
- if (value.files !== undefined)
741
- return visitor.files(value.files);
742
- return visitor._(value.$unknown[0], value.$unknown[1]);
743
- };
744
- })(ResponseStream || (ResponseStream = {}));
745
404
  export const RelayConversationHistory = {
746
405
  DISABLED: "DISABLED",
747
406
  TO_COLLABORATOR: "TO_COLLABORATOR",
@@ -750,99 +409,13 @@ export const PromptState = {
750
409
  DISABLED: "DISABLED",
751
410
  ENABLED: "ENABLED",
752
411
  };
753
- export var OrchestrationExecutor;
754
- (function (OrchestrationExecutor) {
755
- OrchestrationExecutor.visit = (value, visitor) => {
756
- if (value.lambda !== undefined)
757
- return visitor.lambda(value.lambda);
758
- return visitor._(value.$unknown[0], value.$unknown[1]);
759
- };
760
- })(OrchestrationExecutor || (OrchestrationExecutor = {}));
761
412
  export const OrchestrationType = {
762
413
  CUSTOM_ORCHESTRATION: "CUSTOM_ORCHESTRATION",
763
414
  DEFAULT: "DEFAULT",
764
415
  };
765
- export var InlineAgentResponseStream;
766
- (function (InlineAgentResponseStream) {
767
- InlineAgentResponseStream.visit = (value, visitor) => {
768
- if (value.chunk !== undefined)
769
- return visitor.chunk(value.chunk);
770
- if (value.trace !== undefined)
771
- return visitor.trace(value.trace);
772
- if (value.returnControl !== undefined)
773
- return visitor.returnControl(value.returnControl);
774
- if (value.internalServerException !== undefined)
775
- return visitor.internalServerException(value.internalServerException);
776
- if (value.validationException !== undefined)
777
- return visitor.validationException(value.validationException);
778
- if (value.resourceNotFoundException !== undefined)
779
- return visitor.resourceNotFoundException(value.resourceNotFoundException);
780
- if (value.serviceQuotaExceededException !== undefined)
781
- return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
782
- if (value.throttlingException !== undefined)
783
- return visitor.throttlingException(value.throttlingException);
784
- if (value.accessDeniedException !== undefined)
785
- return visitor.accessDeniedException(value.accessDeniedException);
786
- if (value.conflictException !== undefined)
787
- return visitor.conflictException(value.conflictException);
788
- if (value.dependencyFailedException !== undefined)
789
- return visitor.dependencyFailedException(value.dependencyFailedException);
790
- if (value.badGatewayException !== undefined)
791
- return visitor.badGatewayException(value.badGatewayException);
792
- if (value.files !== undefined)
793
- return visitor.files(value.files);
794
- return visitor._(value.$unknown[0], value.$unknown[1]);
795
- };
796
- })(InlineAgentResponseStream || (InlineAgentResponseStream = {}));
797
416
  export const MemoryType = {
798
417
  SESSION_SUMMARY: "SESSION_SUMMARY",
799
418
  };
800
- export var Memory;
801
- (function (Memory) {
802
- Memory.visit = (value, visitor) => {
803
- if (value.sessionSummary !== undefined)
804
- return visitor.sessionSummary(value.sessionSummary);
805
- return visitor._(value.$unknown[0], value.$unknown[1]);
806
- };
807
- })(Memory || (Memory = {}));
808
- export var InputPrompt;
809
- (function (InputPrompt) {
810
- InputPrompt.visit = (value, visitor) => {
811
- if (value.textPrompt !== undefined)
812
- return visitor.textPrompt(value.textPrompt);
813
- return visitor._(value.$unknown[0], value.$unknown[1]);
814
- };
815
- })(InputPrompt || (InputPrompt = {}));
816
- export var OptimizedPrompt;
817
- (function (OptimizedPrompt) {
818
- OptimizedPrompt.visit = (value, visitor) => {
819
- if (value.textPrompt !== undefined)
820
- return visitor.textPrompt(value.textPrompt);
821
- return visitor._(value.$unknown[0], value.$unknown[1]);
822
- };
823
- })(OptimizedPrompt || (OptimizedPrompt = {}));
824
- export var OptimizedPromptStream;
825
- (function (OptimizedPromptStream) {
826
- OptimizedPromptStream.visit = (value, visitor) => {
827
- if (value.optimizedPromptEvent !== undefined)
828
- return visitor.optimizedPromptEvent(value.optimizedPromptEvent);
829
- if (value.analyzePromptEvent !== undefined)
830
- return visitor.analyzePromptEvent(value.analyzePromptEvent);
831
- if (value.internalServerException !== undefined)
832
- return visitor.internalServerException(value.internalServerException);
833
- if (value.throttlingException !== undefined)
834
- return visitor.throttlingException(value.throttlingException);
835
- if (value.validationException !== undefined)
836
- return visitor.validationException(value.validationException);
837
- if (value.dependencyFailedException !== undefined)
838
- return visitor.dependencyFailedException(value.dependencyFailedException);
839
- if (value.accessDeniedException !== undefined)
840
- return visitor.accessDeniedException(value.accessDeniedException);
841
- if (value.badGatewayException !== undefined)
842
- return visitor.badGatewayException(value.badGatewayException);
843
- return visitor._(value.$unknown[0], value.$unknown[1]);
844
- };
845
- })(OptimizedPromptStream || (OptimizedPromptStream = {}));
846
419
  export const RerankQueryContentType = {
847
420
  TEXT: "TEXT",
848
421
  };
@@ -856,924 +429,3 @@ export const RerankDocumentType = {
856
429
  export const RerankSourceType = {
857
430
  INLINE: "INLINE",
858
431
  };
859
- export const ActionGroupInvocationInputFilterSensitiveLog = (obj) => ({
860
- ...obj,
861
- ...(obj.actionGroupName && { actionGroupName: SENSITIVE_STRING }),
862
- ...(obj.verb && { verb: SENSITIVE_STRING }),
863
- ...(obj.apiPath && { apiPath: SENSITIVE_STRING }),
864
- ...(obj.function && { function: SENSITIVE_STRING }),
865
- });
866
- export const UsageFilterSensitiveLog = (obj) => ({
867
- ...obj,
868
- });
869
- export const MetadataFilterSensitiveLog = (obj) => ({
870
- ...obj,
871
- ...(obj.usage && { usage: SENSITIVE_STRING }),
872
- });
873
- export const ActionGroupInvocationOutputFilterSensitiveLog = (obj) => ({
874
- ...obj,
875
- ...(obj.text && { text: SENSITIVE_STRING }),
876
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
877
- });
878
- export const APISchemaFilterSensitiveLog = (obj) => {
879
- if (obj.s3 !== undefined)
880
- return { s3: obj.s3 };
881
- if (obj.payload !== undefined)
882
- return { payload: SENSITIVE_STRING };
883
- if (obj.$unknown !== undefined)
884
- return { [obj.$unknown[0]]: "UNKNOWN" };
885
- };
886
- export const FunctionDefinitionFilterSensitiveLog = (obj) => ({
887
- ...obj,
888
- ...(obj.name && { name: SENSITIVE_STRING }),
889
- });
890
- export const FunctionSchemaFilterSensitiveLog = (obj) => {
891
- if (obj.functions !== undefined)
892
- return { functions: obj.functions.map((item) => FunctionDefinitionFilterSensitiveLog(item)) };
893
- if (obj.$unknown !== undefined)
894
- return { [obj.$unknown[0]]: "UNKNOWN" };
895
- };
896
- export const AgentActionGroupFilterSensitiveLog = (obj) => ({
897
- ...obj,
898
- ...(obj.actionGroupName && { actionGroupName: SENSITIVE_STRING }),
899
- ...(obj.description && { description: SENSITIVE_STRING }),
900
- ...(obj.actionGroupExecutor && { actionGroupExecutor: obj.actionGroupExecutor }),
901
- ...(obj.apiSchema && { apiSchema: APISchemaFilterSensitiveLog(obj.apiSchema) }),
902
- ...(obj.functionSchema && { functionSchema: FunctionSchemaFilterSensitiveLog(obj.functionSchema) }),
903
- });
904
- export const ApiResultFilterSensitiveLog = (obj) => ({
905
- ...obj,
906
- ...(obj.apiPath && { apiPath: SENSITIVE_STRING }),
907
- ...(obj.responseBody && {
908
- responseBody: Object.entries(obj.responseBody).reduce((acc, [key, value]) => ((acc[key] = value), acc), {}),
909
- }),
910
- });
911
- export const InvocationResultMemberFilterSensitiveLog = (obj) => {
912
- if (obj.apiResult !== undefined)
913
- return { apiResult: ApiResultFilterSensitiveLog(obj.apiResult) };
914
- if (obj.functionResult !== undefined)
915
- return { functionResult: obj.functionResult };
916
- if (obj.$unknown !== undefined)
917
- return { [obj.$unknown[0]]: "UNKNOWN" };
918
- };
919
- export const ReturnControlResultsFilterSensitiveLog = (obj) => ({
920
- ...obj,
921
- ...(obj.returnControlInvocationResults && {
922
- returnControlInvocationResults: obj.returnControlInvocationResults.map((item) => InvocationResultMemberFilterSensitiveLog(item)),
923
- }),
924
- });
925
- export const AgentCollaboratorInputPayloadFilterSensitiveLog = (obj) => ({
926
- ...obj,
927
- ...(obj.text && { text: SENSITIVE_STRING }),
928
- ...(obj.returnControlResults && {
929
- returnControlResults: ReturnControlResultsFilterSensitiveLog(obj.returnControlResults),
930
- }),
931
- });
932
- export const AgentCollaboratorInvocationInputFilterSensitiveLog = (obj) => ({
933
- ...obj,
934
- ...(obj.input && { input: AgentCollaboratorInputPayloadFilterSensitiveLog(obj.input) }),
935
- });
936
- export const ApiInvocationInputFilterSensitiveLog = (obj) => ({
937
- ...obj,
938
- ...(obj.apiPath && { apiPath: SENSITIVE_STRING }),
939
- ...(obj.collaboratorName && { collaboratorName: SENSITIVE_STRING }),
940
- });
941
- export const FunctionInvocationInputFilterSensitiveLog = (obj) => ({
942
- ...obj,
943
- ...(obj.collaboratorName && { collaboratorName: SENSITIVE_STRING }),
944
- });
945
- export const InvocationInputMemberFilterSensitiveLog = (obj) => {
946
- if (obj.apiInvocationInput !== undefined)
947
- return { apiInvocationInput: ApiInvocationInputFilterSensitiveLog(obj.apiInvocationInput) };
948
- if (obj.functionInvocationInput !== undefined)
949
- return { functionInvocationInput: FunctionInvocationInputFilterSensitiveLog(obj.functionInvocationInput) };
950
- if (obj.$unknown !== undefined)
951
- return { [obj.$unknown[0]]: "UNKNOWN" };
952
- };
953
- export const ReturnControlPayloadFilterSensitiveLog = (obj) => ({
954
- ...obj,
955
- ...(obj.invocationInputs && {
956
- invocationInputs: obj.invocationInputs.map((item) => InvocationInputMemberFilterSensitiveLog(item)),
957
- }),
958
- });
959
- export const AgentCollaboratorOutputPayloadFilterSensitiveLog = (obj) => ({
960
- ...obj,
961
- ...(obj.text && { text: SENSITIVE_STRING }),
962
- ...(obj.returnControlPayload && { returnControlPayload: SENSITIVE_STRING }),
963
- });
964
- export const AgentCollaboratorInvocationOutputFilterSensitiveLog = (obj) => ({
965
- ...obj,
966
- ...(obj.output && { output: AgentCollaboratorOutputPayloadFilterSensitiveLog(obj.output) }),
967
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
968
- });
969
- export const CustomOrchestrationTraceEventFilterSensitiveLog = (obj) => ({
970
- ...obj,
971
- });
972
- export const CustomOrchestrationTraceFilterSensitiveLog = (obj) => ({
973
- ...obj,
974
- ...(obj.event && { event: SENSITIVE_STRING }),
975
- });
976
- export const FailureTraceFilterSensitiveLog = (obj) => ({
977
- ...obj,
978
- ...(obj.failureReason && { failureReason: SENSITIVE_STRING }),
979
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
980
- });
981
- export const GuardrailContentFilterFilterSensitiveLog = (obj) => ({
982
- ...obj,
983
- });
984
- export const GuardrailContentPolicyAssessmentFilterSensitiveLog = (obj) => ({
985
- ...obj,
986
- ...(obj.filters && { filters: SENSITIVE_STRING }),
987
- });
988
- export const GuardrailPiiEntityFilterFilterSensitiveLog = (obj) => ({
989
- ...obj,
990
- });
991
- export const GuardrailRegexFilterFilterSensitiveLog = (obj) => ({
992
- ...obj,
993
- });
994
- export const GuardrailSensitiveInformationPolicyAssessmentFilterSensitiveLog = (obj) => ({
995
- ...obj,
996
- ...(obj.piiEntities && { piiEntities: SENSITIVE_STRING }),
997
- ...(obj.regexes && { regexes: SENSITIVE_STRING }),
998
- });
999
- export const GuardrailTopicFilterSensitiveLog = (obj) => ({
1000
- ...obj,
1001
- });
1002
- export const GuardrailTopicPolicyAssessmentFilterSensitiveLog = (obj) => ({
1003
- ...obj,
1004
- ...(obj.topics && { topics: SENSITIVE_STRING }),
1005
- });
1006
- export const GuardrailCustomWordFilterSensitiveLog = (obj) => ({
1007
- ...obj,
1008
- });
1009
- export const GuardrailManagedWordFilterSensitiveLog = (obj) => ({
1010
- ...obj,
1011
- });
1012
- export const GuardrailWordPolicyAssessmentFilterSensitiveLog = (obj) => ({
1013
- ...obj,
1014
- ...(obj.customWords && { customWords: SENSITIVE_STRING }),
1015
- ...(obj.managedWordLists && { managedWordLists: SENSITIVE_STRING }),
1016
- });
1017
- export const GuardrailAssessmentFilterSensitiveLog = (obj) => ({
1018
- ...obj,
1019
- ...(obj.topicPolicy && { topicPolicy: SENSITIVE_STRING }),
1020
- ...(obj.contentPolicy && { contentPolicy: SENSITIVE_STRING }),
1021
- ...(obj.wordPolicy && { wordPolicy: SENSITIVE_STRING }),
1022
- ...(obj.sensitiveInformationPolicy && { sensitiveInformationPolicy: SENSITIVE_STRING }),
1023
- });
1024
- export const GuardrailTraceFilterSensitiveLog = (obj) => ({
1025
- ...obj,
1026
- ...(obj.inputAssessments && { inputAssessments: SENSITIVE_STRING }),
1027
- ...(obj.outputAssessments && { outputAssessments: SENSITIVE_STRING }),
1028
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
1029
- });
1030
- export const KnowledgeBaseLookupInputFilterSensitiveLog = (obj) => ({
1031
- ...obj,
1032
- ...(obj.text && { text: SENSITIVE_STRING }),
1033
- ...(obj.knowledgeBaseId && { knowledgeBaseId: SENSITIVE_STRING }),
1034
- });
1035
- export const InvocationInputFilterSensitiveLog = (obj) => ({
1036
- ...obj,
1037
- ...(obj.actionGroupInvocationInput && {
1038
- actionGroupInvocationInput: ActionGroupInvocationInputFilterSensitiveLog(obj.actionGroupInvocationInput),
1039
- }),
1040
- ...(obj.knowledgeBaseLookupInput && {
1041
- knowledgeBaseLookupInput: KnowledgeBaseLookupInputFilterSensitiveLog(obj.knowledgeBaseLookupInput),
1042
- }),
1043
- ...(obj.agentCollaboratorInvocationInput && {
1044
- agentCollaboratorInvocationInput: AgentCollaboratorInvocationInputFilterSensitiveLog(obj.agentCollaboratorInvocationInput),
1045
- }),
1046
- });
1047
- export const ModelInvocationInputFilterSensitiveLog = (obj) => ({
1048
- ...obj,
1049
- ...(obj.text && { text: SENSITIVE_STRING }),
1050
- });
1051
- export const RawResponseFilterSensitiveLog = (obj) => ({
1052
- ...obj,
1053
- });
1054
- export const ReasoningTextBlockFilterSensitiveLog = (obj) => ({
1055
- ...obj,
1056
- });
1057
- export const ReasoningContentBlockFilterSensitiveLog = (obj) => {
1058
- if (obj.reasoningText !== undefined)
1059
- return { reasoningText: SENSITIVE_STRING };
1060
- if (obj.redactedContent !== undefined)
1061
- return { redactedContent: obj.redactedContent };
1062
- if (obj.$unknown !== undefined)
1063
- return { [obj.$unknown[0]]: "UNKNOWN" };
1064
- };
1065
- export const OrchestrationModelInvocationOutputFilterSensitiveLog = (obj) => ({
1066
- ...obj,
1067
- ...(obj.rawResponse && { rawResponse: SENSITIVE_STRING }),
1068
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
1069
- ...(obj.reasoningContent && { reasoningContent: SENSITIVE_STRING }),
1070
- });
1071
- export const CodeInterpreterInvocationOutputFilterSensitiveLog = (obj) => ({
1072
- ...obj,
1073
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
1074
- });
1075
- export const FinalResponseFilterSensitiveLog = (obj) => ({
1076
- ...obj,
1077
- ...(obj.text && { text: SENSITIVE_STRING }),
1078
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
1079
- });
1080
- export const RetrievalResultContentColumnFilterSensitiveLog = (obj) => ({
1081
- ...obj,
1082
- });
1083
- export const RetrievalResultContentFilterSensitiveLog = (obj) => ({
1084
- ...obj,
1085
- ...(obj.row && { row: SENSITIVE_STRING }),
1086
- });
1087
- export const RetrievalResultLocationFilterSensitiveLog = (obj) => ({
1088
- ...obj,
1089
- });
1090
- export const RetrievedReferenceFilterSensitiveLog = (obj) => ({
1091
- ...obj,
1092
- ...(obj.content && { content: SENSITIVE_STRING }),
1093
- ...(obj.location && { location: SENSITIVE_STRING }),
1094
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
1095
- });
1096
- export const KnowledgeBaseLookupOutputFilterSensitiveLog = (obj) => ({
1097
- ...obj,
1098
- ...(obj.retrievedReferences && {
1099
- retrievedReferences: obj.retrievedReferences.map((item) => RetrievedReferenceFilterSensitiveLog(item)),
1100
- }),
1101
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
1102
- });
1103
- export const RepromptResponseFilterSensitiveLog = (obj) => ({
1104
- ...obj,
1105
- ...(obj.source && { source: SENSITIVE_STRING }),
1106
- });
1107
- export const ObservationFilterSensitiveLog = (obj) => ({
1108
- ...obj,
1109
- ...(obj.actionGroupInvocationOutput && {
1110
- actionGroupInvocationOutput: ActionGroupInvocationOutputFilterSensitiveLog(obj.actionGroupInvocationOutput),
1111
- }),
1112
- ...(obj.agentCollaboratorInvocationOutput && {
1113
- agentCollaboratorInvocationOutput: AgentCollaboratorInvocationOutputFilterSensitiveLog(obj.agentCollaboratorInvocationOutput),
1114
- }),
1115
- ...(obj.knowledgeBaseLookupOutput && {
1116
- knowledgeBaseLookupOutput: KnowledgeBaseLookupOutputFilterSensitiveLog(obj.knowledgeBaseLookupOutput),
1117
- }),
1118
- ...(obj.finalResponse && { finalResponse: FinalResponseFilterSensitiveLog(obj.finalResponse) }),
1119
- ...(obj.repromptResponse && { repromptResponse: SENSITIVE_STRING }),
1120
- ...(obj.codeInterpreterInvocationOutput && {
1121
- codeInterpreterInvocationOutput: CodeInterpreterInvocationOutputFilterSensitiveLog(obj.codeInterpreterInvocationOutput),
1122
- }),
1123
- });
1124
- export const RationaleFilterSensitiveLog = (obj) => ({
1125
- ...obj,
1126
- ...(obj.text && { text: SENSITIVE_STRING }),
1127
- });
1128
- export const OrchestrationTraceFilterSensitiveLog = (obj) => {
1129
- if (obj.rationale !== undefined)
1130
- return { rationale: SENSITIVE_STRING };
1131
- if (obj.invocationInput !== undefined)
1132
- return { invocationInput: SENSITIVE_STRING };
1133
- if (obj.observation !== undefined)
1134
- return { observation: SENSITIVE_STRING };
1135
- if (obj.modelInvocationInput !== undefined)
1136
- return { modelInvocationInput: SENSITIVE_STRING };
1137
- if (obj.modelInvocationOutput !== undefined)
1138
- return { modelInvocationOutput: SENSITIVE_STRING };
1139
- if (obj.$unknown !== undefined)
1140
- return { [obj.$unknown[0]]: "UNKNOWN" };
1141
- };
1142
- export const PostProcessingParsedResponseFilterSensitiveLog = (obj) => ({
1143
- ...obj,
1144
- ...(obj.text && { text: SENSITIVE_STRING }),
1145
- });
1146
- export const PostProcessingModelInvocationOutputFilterSensitiveLog = (obj) => ({
1147
- ...obj,
1148
- ...(obj.parsedResponse && { parsedResponse: SENSITIVE_STRING }),
1149
- ...(obj.rawResponse && { rawResponse: SENSITIVE_STRING }),
1150
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
1151
- ...(obj.reasoningContent && { reasoningContent: SENSITIVE_STRING }),
1152
- });
1153
- export const PostProcessingTraceFilterSensitiveLog = (obj) => {
1154
- if (obj.modelInvocationInput !== undefined)
1155
- return { modelInvocationInput: SENSITIVE_STRING };
1156
- if (obj.modelInvocationOutput !== undefined)
1157
- return { modelInvocationOutput: SENSITIVE_STRING };
1158
- if (obj.$unknown !== undefined)
1159
- return { [obj.$unknown[0]]: "UNKNOWN" };
1160
- };
1161
- export const PreProcessingParsedResponseFilterSensitiveLog = (obj) => ({
1162
- ...obj,
1163
- ...(obj.rationale && { rationale: SENSITIVE_STRING }),
1164
- });
1165
- export const PreProcessingModelInvocationOutputFilterSensitiveLog = (obj) => ({
1166
- ...obj,
1167
- ...(obj.parsedResponse && { parsedResponse: SENSITIVE_STRING }),
1168
- ...(obj.rawResponse && { rawResponse: SENSITIVE_STRING }),
1169
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
1170
- ...(obj.reasoningContent && { reasoningContent: SENSITIVE_STRING }),
1171
- });
1172
- export const PreProcessingTraceFilterSensitiveLog = (obj) => {
1173
- if (obj.modelInvocationInput !== undefined)
1174
- return { modelInvocationInput: SENSITIVE_STRING };
1175
- if (obj.modelInvocationOutput !== undefined)
1176
- return { modelInvocationOutput: SENSITIVE_STRING };
1177
- if (obj.$unknown !== undefined)
1178
- return { [obj.$unknown[0]]: "UNKNOWN" };
1179
- };
1180
- export const RoutingClassifierModelInvocationOutputFilterSensitiveLog = (obj) => ({
1181
- ...obj,
1182
- ...(obj.rawResponse && { rawResponse: SENSITIVE_STRING }),
1183
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
1184
- });
1185
- export const RoutingClassifierTraceFilterSensitiveLog = (obj) => {
1186
- if (obj.invocationInput !== undefined)
1187
- return { invocationInput: SENSITIVE_STRING };
1188
- if (obj.observation !== undefined)
1189
- return { observation: SENSITIVE_STRING };
1190
- if (obj.modelInvocationInput !== undefined)
1191
- return { modelInvocationInput: SENSITIVE_STRING };
1192
- if (obj.modelInvocationOutput !== undefined)
1193
- return { modelInvocationOutput: SENSITIVE_STRING };
1194
- if (obj.$unknown !== undefined)
1195
- return { [obj.$unknown[0]]: "UNKNOWN" };
1196
- };
1197
- export const TraceFilterSensitiveLog = (obj) => {
1198
- if (obj.guardrailTrace !== undefined)
1199
- return { guardrailTrace: SENSITIVE_STRING };
1200
- if (obj.preProcessingTrace !== undefined)
1201
- return { preProcessingTrace: SENSITIVE_STRING };
1202
- if (obj.orchestrationTrace !== undefined)
1203
- return { orchestrationTrace: SENSITIVE_STRING };
1204
- if (obj.postProcessingTrace !== undefined)
1205
- return { postProcessingTrace: SENSITIVE_STRING };
1206
- if (obj.routingClassifierTrace !== undefined)
1207
- return { routingClassifierTrace: SENSITIVE_STRING };
1208
- if (obj.failureTrace !== undefined)
1209
- return { failureTrace: SENSITIVE_STRING };
1210
- if (obj.customOrchestrationTrace !== undefined)
1211
- return { customOrchestrationTrace: SENSITIVE_STRING };
1212
- if (obj.$unknown !== undefined)
1213
- return { [obj.$unknown[0]]: "UNKNOWN" };
1214
- };
1215
- export const TracePartFilterSensitiveLog = (obj) => ({
1216
- ...obj,
1217
- ...(obj.trace && { trace: SENSITIVE_STRING }),
1218
- ...(obj.callerChain && { callerChain: obj.callerChain.map((item) => item) }),
1219
- ...(obj.collaboratorName && { collaboratorName: SENSITIVE_STRING }),
1220
- });
1221
- export const SatisfiedConditionFilterSensitiveLog = (obj) => ({
1222
- ...obj,
1223
- });
1224
- export const ConditionResultEventFilterSensitiveLog = (obj) => ({
1225
- ...obj,
1226
- ...(obj.satisfiedConditions && { satisfiedConditions: SENSITIVE_STRING }),
1227
- });
1228
- export const FlowFailureEventFilterSensitiveLog = (obj) => ({
1229
- ...obj,
1230
- });
1231
- export const FlowExecutionContentFilterSensitiveLog = (obj) => {
1232
- if (obj.document !== undefined)
1233
- return { document: obj.document };
1234
- if (obj.$unknown !== undefined)
1235
- return { [obj.$unknown[0]]: "UNKNOWN" };
1236
- };
1237
- export const FlowInputFieldFilterSensitiveLog = (obj) => ({
1238
- ...obj,
1239
- ...(obj.content && { content: SENSITIVE_STRING }),
1240
- });
1241
- export const FlowExecutionInputEventFilterSensitiveLog = (obj) => ({
1242
- ...obj,
1243
- ...(obj.fields && { fields: SENSITIVE_STRING }),
1244
- });
1245
- export const FlowOutputFieldFilterSensitiveLog = (obj) => ({
1246
- ...obj,
1247
- ...(obj.content && { content: SENSITIVE_STRING }),
1248
- });
1249
- export const FlowExecutionOutputEventFilterSensitiveLog = (obj) => ({
1250
- ...obj,
1251
- ...(obj.fields && { fields: SENSITIVE_STRING }),
1252
- });
1253
- export const NodeActionEventFilterSensitiveLog = (obj) => ({
1254
- ...obj,
1255
- });
1256
- export const NodeTraceElementsFilterSensitiveLog = (obj) => {
1257
- if (obj.agentTraces !== undefined)
1258
- return { agentTraces: SENSITIVE_STRING };
1259
- if (obj.$unknown !== undefined)
1260
- return { [obj.$unknown[0]]: "UNKNOWN" };
1261
- };
1262
- export const NodeDependencyEventFilterSensitiveLog = (obj) => ({
1263
- ...obj,
1264
- ...(obj.traceElements && { traceElements: SENSITIVE_STRING }),
1265
- });
1266
- export const NodeFailureEventFilterSensitiveLog = (obj) => ({
1267
- ...obj,
1268
- });
1269
- export const NodeExecutionContentFilterSensitiveLog = (obj) => {
1270
- if (obj.document !== undefined)
1271
- return { document: obj.document };
1272
- if (obj.$unknown !== undefined)
1273
- return { [obj.$unknown[0]]: "UNKNOWN" };
1274
- };
1275
- export const NodeInputSourceFilterSensitiveLog = (obj) => ({
1276
- ...obj,
1277
- ...(obj.expression && { expression: SENSITIVE_STRING }),
1278
- });
1279
- export const NodeInputFieldFilterSensitiveLog = (obj) => ({
1280
- ...obj,
1281
- ...(obj.content && { content: SENSITIVE_STRING }),
1282
- ...(obj.source && { source: NodeInputSourceFilterSensitiveLog(obj.source) }),
1283
- });
1284
- export const NodeInputEventFilterSensitiveLog = (obj) => ({
1285
- ...obj,
1286
- ...(obj.fields && { fields: SENSITIVE_STRING }),
1287
- });
1288
- export const NodeOutputNextFilterSensitiveLog = (obj) => ({
1289
- ...obj,
1290
- });
1291
- export const NodeOutputFieldFilterSensitiveLog = (obj) => ({
1292
- ...obj,
1293
- ...(obj.content && { content: SENSITIVE_STRING }),
1294
- ...(obj.next && { next: SENSITIVE_STRING }),
1295
- });
1296
- export const NodeOutputEventFilterSensitiveLog = (obj) => ({
1297
- ...obj,
1298
- ...(obj.fields && { fields: SENSITIVE_STRING }),
1299
- });
1300
- export const FlowExecutionEventFilterSensitiveLog = (obj) => {
1301
- if (obj.flowInputEvent !== undefined)
1302
- return { flowInputEvent: SENSITIVE_STRING };
1303
- if (obj.flowOutputEvent !== undefined)
1304
- return { flowOutputEvent: SENSITIVE_STRING };
1305
- if (obj.nodeInputEvent !== undefined)
1306
- return { nodeInputEvent: SENSITIVE_STRING };
1307
- if (obj.nodeOutputEvent !== undefined)
1308
- return { nodeOutputEvent: SENSITIVE_STRING };
1309
- if (obj.conditionResultEvent !== undefined)
1310
- return { conditionResultEvent: SENSITIVE_STRING };
1311
- if (obj.nodeFailureEvent !== undefined)
1312
- return { nodeFailureEvent: SENSITIVE_STRING };
1313
- if (obj.flowFailureEvent !== undefined)
1314
- return { flowFailureEvent: SENSITIVE_STRING };
1315
- if (obj.nodeActionEvent !== undefined)
1316
- return { nodeActionEvent: SENSITIVE_STRING };
1317
- if (obj.nodeDependencyEvent !== undefined)
1318
- return { nodeDependencyEvent: SENSITIVE_STRING };
1319
- if (obj.$unknown !== undefined)
1320
- return { [obj.$unknown[0]]: "UNKNOWN" };
1321
- };
1322
- export const ListFlowExecutionEventsResponseFilterSensitiveLog = (obj) => ({
1323
- ...obj,
1324
- ...(obj.flowExecutionEvents && {
1325
- flowExecutionEvents: obj.flowExecutionEvents.map((item) => FlowExecutionEventFilterSensitiveLog(item)),
1326
- }),
1327
- });
1328
- export const FlowInputContentFilterSensitiveLog = (obj) => {
1329
- if (obj.document !== undefined)
1330
- return { document: obj.document };
1331
- if (obj.$unknown !== undefined)
1332
- return { [obj.$unknown[0]]: "UNKNOWN" };
1333
- };
1334
- export const FlowInputFilterSensitiveLog = (obj) => ({
1335
- ...obj,
1336
- ...(obj.content && { content: SENSITIVE_STRING }),
1337
- });
1338
- export const StartFlowExecutionRequestFilterSensitiveLog = (obj) => ({
1339
- ...obj,
1340
- ...(obj.inputs && { inputs: obj.inputs.map((item) => FlowInputFilterSensitiveLog(item)) }),
1341
- });
1342
- export const InvokeFlowRequestFilterSensitiveLog = (obj) => ({
1343
- ...obj,
1344
- ...(obj.inputs && { inputs: obj.inputs.map((item) => FlowInputFilterSensitiveLog(item)) }),
1345
- });
1346
- export const FlowCompletionEventFilterSensitiveLog = (obj) => ({
1347
- ...obj,
1348
- });
1349
- export const FlowMultiTurnInputRequestEventFilterSensitiveLog = (obj) => ({
1350
- ...obj,
1351
- ...(obj.content && { content: obj.content }),
1352
- });
1353
- export const FlowOutputEventFilterSensitiveLog = (obj) => ({
1354
- ...obj,
1355
- ...(obj.content && { content: obj.content }),
1356
- });
1357
- export const FlowTraceConditionFilterSensitiveLog = (obj) => ({
1358
- ...obj,
1359
- });
1360
- export const FlowTraceConditionNodeResultEventFilterSensitiveLog = (obj) => ({
1361
- ...obj,
1362
- ...(obj.satisfiedConditions && { satisfiedConditions: SENSITIVE_STRING }),
1363
- });
1364
- export const FlowTraceNodeActionEventFilterSensitiveLog = (obj) => ({
1365
- ...obj,
1366
- });
1367
- export const TraceElementsFilterSensitiveLog = (obj) => {
1368
- if (obj.agentTraces !== undefined)
1369
- return { agentTraces: SENSITIVE_STRING };
1370
- if (obj.$unknown !== undefined)
1371
- return { [obj.$unknown[0]]: "UNKNOWN" };
1372
- };
1373
- export const FlowTraceDependencyEventFilterSensitiveLog = (obj) => ({
1374
- ...obj,
1375
- ...(obj.traceElements && { traceElements: SENSITIVE_STRING }),
1376
- });
1377
- export const FlowTraceNodeInputContentFilterSensitiveLog = (obj) => {
1378
- if (obj.document !== undefined)
1379
- return { document: obj.document };
1380
- if (obj.$unknown !== undefined)
1381
- return { [obj.$unknown[0]]: "UNKNOWN" };
1382
- };
1383
- export const FlowTraceNodeInputExecutionChainItemFilterSensitiveLog = (obj) => ({
1384
- ...obj,
1385
- });
1386
- export const FlowTraceNodeInputSourceFilterSensitiveLog = (obj) => ({
1387
- ...obj,
1388
- ...(obj.expression && { expression: SENSITIVE_STRING }),
1389
- });
1390
- export const FlowTraceNodeInputFieldFilterSensitiveLog = (obj) => ({
1391
- ...obj,
1392
- ...(obj.content && { content: SENSITIVE_STRING }),
1393
- ...(obj.source && { source: SENSITIVE_STRING }),
1394
- ...(obj.executionChain && { executionChain: SENSITIVE_STRING }),
1395
- });
1396
- export const FlowTraceNodeInputEventFilterSensitiveLog = (obj) => ({
1397
- ...obj,
1398
- ...(obj.fields && { fields: SENSITIVE_STRING }),
1399
- });
1400
- export const FlowTraceNodeOutputNextFilterSensitiveLog = (obj) => ({
1401
- ...obj,
1402
- });
1403
- export const FlowTraceNodeOutputFieldFilterSensitiveLog = (obj) => ({
1404
- ...obj,
1405
- ...(obj.content && { content: obj.content }),
1406
- ...(obj.next && { next: SENSITIVE_STRING }),
1407
- });
1408
- export const FlowTraceNodeOutputEventFilterSensitiveLog = (obj) => ({
1409
- ...obj,
1410
- ...(obj.fields && { fields: SENSITIVE_STRING }),
1411
- });
1412
- export const FlowTraceFilterSensitiveLog = (obj) => {
1413
- if (obj.nodeInputTrace !== undefined)
1414
- return { nodeInputTrace: SENSITIVE_STRING };
1415
- if (obj.nodeOutputTrace !== undefined)
1416
- return { nodeOutputTrace: SENSITIVE_STRING };
1417
- if (obj.conditionNodeResultTrace !== undefined)
1418
- return { conditionNodeResultTrace: SENSITIVE_STRING };
1419
- if (obj.nodeActionTrace !== undefined)
1420
- return { nodeActionTrace: SENSITIVE_STRING };
1421
- if (obj.nodeDependencyTrace !== undefined)
1422
- return { nodeDependencyTrace: SENSITIVE_STRING };
1423
- if (obj.$unknown !== undefined)
1424
- return { [obj.$unknown[0]]: "UNKNOWN" };
1425
- };
1426
- export const FlowTraceEventFilterSensitiveLog = (obj) => ({
1427
- ...obj,
1428
- ...(obj.trace && { trace: SENSITIVE_STRING }),
1429
- });
1430
- export const FlowResponseStreamFilterSensitiveLog = (obj) => {
1431
- if (obj.flowOutputEvent !== undefined)
1432
- return { flowOutputEvent: SENSITIVE_STRING };
1433
- if (obj.flowCompletionEvent !== undefined)
1434
- return { flowCompletionEvent: SENSITIVE_STRING };
1435
- if (obj.flowTraceEvent !== undefined)
1436
- return { flowTraceEvent: FlowTraceEventFilterSensitiveLog(obj.flowTraceEvent) };
1437
- if (obj.internalServerException !== undefined)
1438
- return { internalServerException: obj.internalServerException };
1439
- if (obj.validationException !== undefined)
1440
- return { validationException: obj.validationException };
1441
- if (obj.resourceNotFoundException !== undefined)
1442
- return { resourceNotFoundException: obj.resourceNotFoundException };
1443
- if (obj.serviceQuotaExceededException !== undefined)
1444
- return { serviceQuotaExceededException: obj.serviceQuotaExceededException };
1445
- if (obj.throttlingException !== undefined)
1446
- return { throttlingException: obj.throttlingException };
1447
- if (obj.accessDeniedException !== undefined)
1448
- return { accessDeniedException: obj.accessDeniedException };
1449
- if (obj.conflictException !== undefined)
1450
- return { conflictException: obj.conflictException };
1451
- if (obj.dependencyFailedException !== undefined)
1452
- return { dependencyFailedException: obj.dependencyFailedException };
1453
- if (obj.badGatewayException !== undefined)
1454
- return { badGatewayException: obj.badGatewayException };
1455
- if (obj.flowMultiTurnInputRequestEvent !== undefined)
1456
- return { flowMultiTurnInputRequestEvent: SENSITIVE_STRING };
1457
- if (obj.$unknown !== undefined)
1458
- return { [obj.$unknown[0]]: "UNKNOWN" };
1459
- };
1460
- export const InvokeFlowResponseFilterSensitiveLog = (obj) => ({
1461
- ...obj,
1462
- ...(obj.responseStream && { responseStream: "STREAMING_CONTENT" }),
1463
- });
1464
- export const QueryGenerationInputFilterSensitiveLog = (obj) => ({
1465
- ...obj,
1466
- });
1467
- export const GenerateQueryRequestFilterSensitiveLog = (obj) => ({
1468
- ...obj,
1469
- ...(obj.queryGenerationInput && { queryGenerationInput: SENSITIVE_STRING }),
1470
- });
1471
- export const GeneratedQueryFilterSensitiveLog = (obj) => ({
1472
- ...obj,
1473
- });
1474
- export const GenerateQueryResponseFilterSensitiveLog = (obj) => ({
1475
- ...obj,
1476
- ...(obj.queries && { queries: SENSITIVE_STRING }),
1477
- });
1478
- export const ContentBlockFilterSensitiveLog = (obj) => {
1479
- if (obj.text !== undefined)
1480
- return { text: obj.text };
1481
- if (obj.$unknown !== undefined)
1482
- return { [obj.$unknown[0]]: "UNKNOWN" };
1483
- };
1484
- export const MessageFilterSensitiveLog = (obj) => ({
1485
- ...obj,
1486
- ...(obj.content && { content: SENSITIVE_STRING }),
1487
- });
1488
- export const ConversationHistoryFilterSensitiveLog = (obj) => ({
1489
- ...obj,
1490
- ...(obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }),
1491
- });
1492
- export const ByteContentFileFilterSensitiveLog = (obj) => ({
1493
- ...obj,
1494
- ...(obj.data && { data: SENSITIVE_STRING }),
1495
- });
1496
- export const FileSourceFilterSensitiveLog = (obj) => ({
1497
- ...obj,
1498
- ...(obj.byteContent && { byteContent: ByteContentFileFilterSensitiveLog(obj.byteContent) }),
1499
- });
1500
- export const InputFileFilterSensitiveLog = (obj) => ({
1501
- ...obj,
1502
- ...(obj.source && { source: FileSourceFilterSensitiveLog(obj.source) }),
1503
- });
1504
- export const MetadataAttributeSchemaFilterSensitiveLog = (obj) => ({
1505
- ...obj,
1506
- });
1507
- export const ImplicitFilterConfigurationFilterSensitiveLog = (obj) => ({
1508
- ...obj,
1509
- ...(obj.metadataAttributes && { metadataAttributes: SENSITIVE_STRING }),
1510
- });
1511
- export const RerankingMetadataSelectiveModeConfigurationFilterSensitiveLog = (obj) => {
1512
- if (obj.fieldsToInclude !== undefined)
1513
- return { fieldsToInclude: SENSITIVE_STRING };
1514
- if (obj.fieldsToExclude !== undefined)
1515
- return { fieldsToExclude: SENSITIVE_STRING };
1516
- if (obj.$unknown !== undefined)
1517
- return { [obj.$unknown[0]]: "UNKNOWN" };
1518
- };
1519
- export const MetadataConfigurationForRerankingFilterSensitiveLog = (obj) => ({
1520
- ...obj,
1521
- ...(obj.selectiveModeConfiguration && {
1522
- selectiveModeConfiguration: RerankingMetadataSelectiveModeConfigurationFilterSensitiveLog(obj.selectiveModeConfiguration),
1523
- }),
1524
- });
1525
- export const VectorSearchBedrockRerankingConfigurationFilterSensitiveLog = (obj) => ({
1526
- ...obj,
1527
- ...(obj.metadataConfiguration && {
1528
- metadataConfiguration: MetadataConfigurationForRerankingFilterSensitiveLog(obj.metadataConfiguration),
1529
- }),
1530
- });
1531
- export const VectorSearchRerankingConfigurationFilterSensitiveLog = (obj) => ({
1532
- ...obj,
1533
- ...(obj.bedrockRerankingConfiguration && {
1534
- bedrockRerankingConfiguration: VectorSearchBedrockRerankingConfigurationFilterSensitiveLog(obj.bedrockRerankingConfiguration),
1535
- }),
1536
- });
1537
- export const TextResponsePartFilterSensitiveLog = (obj) => ({
1538
- ...obj,
1539
- });
1540
- export const GeneratedResponsePartFilterSensitiveLog = (obj) => ({
1541
- ...obj,
1542
- ...(obj.textResponsePart && { textResponsePart: SENSITIVE_STRING }),
1543
- });
1544
- export const CitationFilterSensitiveLog = (obj) => ({
1545
- ...obj,
1546
- ...(obj.generatedResponsePart && {
1547
- generatedResponsePart: GeneratedResponsePartFilterSensitiveLog(obj.generatedResponsePart),
1548
- }),
1549
- ...(obj.retrievedReferences && {
1550
- retrievedReferences: obj.retrievedReferences.map((item) => RetrievedReferenceFilterSensitiveLog(item)),
1551
- }),
1552
- });
1553
- export const AttributionFilterSensitiveLog = (obj) => ({
1554
- ...obj,
1555
- ...(obj.citations && { citations: obj.citations.map((item) => CitationFilterSensitiveLog(item)) }),
1556
- });
1557
- export const PayloadPartFilterSensitiveLog = (obj) => ({
1558
- ...obj,
1559
- ...(obj.bytes && { bytes: SENSITIVE_STRING }),
1560
- ...(obj.attribution && { attribution: AttributionFilterSensitiveLog(obj.attribution) }),
1561
- });
1562
- export const OutputFileFilterSensitiveLog = (obj) => ({
1563
- ...obj,
1564
- ...(obj.bytes && { bytes: SENSITIVE_STRING }),
1565
- });
1566
- export const FilePartFilterSensitiveLog = (obj) => ({
1567
- ...obj,
1568
- ...(obj.files && { files: SENSITIVE_STRING }),
1569
- });
1570
- export const ResponseStreamFilterSensitiveLog = (obj) => {
1571
- if (obj.chunk !== undefined)
1572
- return { chunk: SENSITIVE_STRING };
1573
- if (obj.trace !== undefined)
1574
- return { trace: SENSITIVE_STRING };
1575
- if (obj.returnControl !== undefined)
1576
- return { returnControl: SENSITIVE_STRING };
1577
- if (obj.internalServerException !== undefined)
1578
- return { internalServerException: obj.internalServerException };
1579
- if (obj.validationException !== undefined)
1580
- return { validationException: obj.validationException };
1581
- if (obj.resourceNotFoundException !== undefined)
1582
- return { resourceNotFoundException: obj.resourceNotFoundException };
1583
- if (obj.serviceQuotaExceededException !== undefined)
1584
- return { serviceQuotaExceededException: obj.serviceQuotaExceededException };
1585
- if (obj.throttlingException !== undefined)
1586
- return { throttlingException: obj.throttlingException };
1587
- if (obj.accessDeniedException !== undefined)
1588
- return { accessDeniedException: obj.accessDeniedException };
1589
- if (obj.conflictException !== undefined)
1590
- return { conflictException: obj.conflictException };
1591
- if (obj.dependencyFailedException !== undefined)
1592
- return { dependencyFailedException: obj.dependencyFailedException };
1593
- if (obj.badGatewayException !== undefined)
1594
- return { badGatewayException: obj.badGatewayException };
1595
- if (obj.modelNotReadyException !== undefined)
1596
- return { modelNotReadyException: obj.modelNotReadyException };
1597
- if (obj.files !== undefined)
1598
- return { files: FilePartFilterSensitiveLog(obj.files) };
1599
- if (obj.$unknown !== undefined)
1600
- return { [obj.$unknown[0]]: "UNKNOWN" };
1601
- };
1602
- export const InvokeAgentResponseFilterSensitiveLog = (obj) => ({
1603
- ...obj,
1604
- ...(obj.completion && { completion: "STREAMING_CONTENT" }),
1605
- });
1606
- export const CollaboratorConfigurationFilterSensitiveLog = (obj) => ({
1607
- ...obj,
1608
- ...(obj.collaboratorName && { collaboratorName: SENSITIVE_STRING }),
1609
- ...(obj.collaboratorInstruction && { collaboratorInstruction: SENSITIVE_STRING }),
1610
- });
1611
- export const PromptConfigurationFilterSensitiveLog = (obj) => ({
1612
- ...obj,
1613
- ...(obj.basePromptTemplate && { basePromptTemplate: SENSITIVE_STRING }),
1614
- });
1615
- export const PromptOverrideConfigurationFilterSensitiveLog = (obj) => ({
1616
- ...obj,
1617
- ...(obj.promptConfigurations && {
1618
- promptConfigurations: obj.promptConfigurations.map((item) => PromptConfigurationFilterSensitiveLog(item)),
1619
- }),
1620
- });
1621
- export const InlineSessionStateFilterSensitiveLog = (obj) => ({
1622
- ...obj,
1623
- ...(obj.returnControlInvocationResults && {
1624
- returnControlInvocationResults: obj.returnControlInvocationResults.map((item) => InvocationResultMemberFilterSensitiveLog(item)),
1625
- }),
1626
- ...(obj.files && { files: obj.files.map((item) => InputFileFilterSensitiveLog(item)) }),
1627
- ...(obj.conversationHistory && {
1628
- conversationHistory: ConversationHistoryFilterSensitiveLog(obj.conversationHistory),
1629
- }),
1630
- });
1631
- export const InlineAgentPayloadPartFilterSensitiveLog = (obj) => ({
1632
- ...obj,
1633
- ...(obj.bytes && { bytes: SENSITIVE_STRING }),
1634
- ...(obj.attribution && { attribution: AttributionFilterSensitiveLog(obj.attribution) }),
1635
- });
1636
- export const InlineAgentFilePartFilterSensitiveLog = (obj) => ({
1637
- ...obj,
1638
- ...(obj.files && { files: SENSITIVE_STRING }),
1639
- });
1640
- export const InlineAgentReturnControlPayloadFilterSensitiveLog = (obj) => ({
1641
- ...obj,
1642
- ...(obj.invocationInputs && {
1643
- invocationInputs: obj.invocationInputs.map((item) => InvocationInputMemberFilterSensitiveLog(item)),
1644
- }),
1645
- });
1646
- export const InlineAgentTracePartFilterSensitiveLog = (obj) => ({
1647
- ...obj,
1648
- ...(obj.trace && { trace: SENSITIVE_STRING }),
1649
- ...(obj.callerChain && { callerChain: obj.callerChain.map((item) => item) }),
1650
- ...(obj.collaboratorName && { collaboratorName: SENSITIVE_STRING }),
1651
- });
1652
- export const InlineAgentResponseStreamFilterSensitiveLog = (obj) => {
1653
- if (obj.chunk !== undefined)
1654
- return { chunk: SENSITIVE_STRING };
1655
- if (obj.trace !== undefined)
1656
- return { trace: SENSITIVE_STRING };
1657
- if (obj.returnControl !== undefined)
1658
- return { returnControl: SENSITIVE_STRING };
1659
- if (obj.internalServerException !== undefined)
1660
- return { internalServerException: obj.internalServerException };
1661
- if (obj.validationException !== undefined)
1662
- return { validationException: obj.validationException };
1663
- if (obj.resourceNotFoundException !== undefined)
1664
- return { resourceNotFoundException: obj.resourceNotFoundException };
1665
- if (obj.serviceQuotaExceededException !== undefined)
1666
- return { serviceQuotaExceededException: obj.serviceQuotaExceededException };
1667
- if (obj.throttlingException !== undefined)
1668
- return { throttlingException: obj.throttlingException };
1669
- if (obj.accessDeniedException !== undefined)
1670
- return { accessDeniedException: obj.accessDeniedException };
1671
- if (obj.conflictException !== undefined)
1672
- return { conflictException: obj.conflictException };
1673
- if (obj.dependencyFailedException !== undefined)
1674
- return { dependencyFailedException: obj.dependencyFailedException };
1675
- if (obj.badGatewayException !== undefined)
1676
- return { badGatewayException: obj.badGatewayException };
1677
- if (obj.files !== undefined)
1678
- return { files: InlineAgentFilePartFilterSensitiveLog(obj.files) };
1679
- if (obj.$unknown !== undefined)
1680
- return { [obj.$unknown[0]]: "UNKNOWN" };
1681
- };
1682
- export const InvokeInlineAgentResponseFilterSensitiveLog = (obj) => ({
1683
- ...obj,
1684
- ...(obj.completion && { completion: "STREAMING_CONTENT" }),
1685
- });
1686
- export const TextPromptFilterSensitiveLog = (obj) => ({
1687
- ...obj,
1688
- });
1689
- export const InputPromptFilterSensitiveLog = (obj) => {
1690
- if (obj.textPrompt !== undefined)
1691
- return { textPrompt: SENSITIVE_STRING };
1692
- if (obj.$unknown !== undefined)
1693
- return { [obj.$unknown[0]]: "UNKNOWN" };
1694
- };
1695
- export const OptimizePromptRequestFilterSensitiveLog = (obj) => ({
1696
- ...obj,
1697
- ...(obj.input && { input: InputPromptFilterSensitiveLog(obj.input) }),
1698
- });
1699
- export const AnalyzePromptEventFilterSensitiveLog = (obj) => ({
1700
- ...obj,
1701
- });
1702
- export const OptimizedPromptFilterSensitiveLog = (obj) => {
1703
- if (obj.textPrompt !== undefined)
1704
- return { textPrompt: SENSITIVE_STRING };
1705
- if (obj.$unknown !== undefined)
1706
- return { [obj.$unknown[0]]: "UNKNOWN" };
1707
- };
1708
- export const OptimizedPromptEventFilterSensitiveLog = (obj) => ({
1709
- ...obj,
1710
- ...(obj.optimizedPrompt && { optimizedPrompt: OptimizedPromptFilterSensitiveLog(obj.optimizedPrompt) }),
1711
- });
1712
- export const OptimizedPromptStreamFilterSensitiveLog = (obj) => {
1713
- if (obj.optimizedPromptEvent !== undefined)
1714
- return { optimizedPromptEvent: SENSITIVE_STRING };
1715
- if (obj.analyzePromptEvent !== undefined)
1716
- return { analyzePromptEvent: SENSITIVE_STRING };
1717
- if (obj.internalServerException !== undefined)
1718
- return { internalServerException: obj.internalServerException };
1719
- if (obj.throttlingException !== undefined)
1720
- return { throttlingException: obj.throttlingException };
1721
- if (obj.validationException !== undefined)
1722
- return { validationException: obj.validationException };
1723
- if (obj.dependencyFailedException !== undefined)
1724
- return { dependencyFailedException: obj.dependencyFailedException };
1725
- if (obj.accessDeniedException !== undefined)
1726
- return { accessDeniedException: obj.accessDeniedException };
1727
- if (obj.badGatewayException !== undefined)
1728
- return { badGatewayException: obj.badGatewayException };
1729
- if (obj.$unknown !== undefined)
1730
- return { [obj.$unknown[0]]: "UNKNOWN" };
1731
- };
1732
- export const OptimizePromptResponseFilterSensitiveLog = (obj) => ({
1733
- ...obj,
1734
- ...(obj.optimizedPrompt && { optimizedPrompt: "STREAMING_CONTENT" }),
1735
- });
1736
- export const RerankTextDocumentFilterSensitiveLog = (obj) => ({
1737
- ...obj,
1738
- });
1739
- export const RerankQueryFilterSensitiveLog = (obj) => ({
1740
- ...obj,
1741
- ...(obj.textQuery && { textQuery: SENSITIVE_STRING }),
1742
- });
1743
- export const RerankDocumentFilterSensitiveLog = (obj) => ({
1744
- ...obj,
1745
- ...(obj.textDocument && { textDocument: SENSITIVE_STRING }),
1746
- });
1747
- export const RerankSourceFilterSensitiveLog = (obj) => ({
1748
- ...obj,
1749
- ...(obj.inlineDocumentSource && { inlineDocumentSource: SENSITIVE_STRING }),
1750
- });
1751
- export const RerankRequestFilterSensitiveLog = (obj) => ({
1752
- ...obj,
1753
- ...(obj.queries && { queries: SENSITIVE_STRING }),
1754
- ...(obj.sources && { sources: SENSITIVE_STRING }),
1755
- });
1756
- export const RerankResultFilterSensitiveLog = (obj) => ({
1757
- ...obj,
1758
- ...(obj.document && { document: SENSITIVE_STRING }),
1759
- });
1760
- export const RerankResponseFilterSensitiveLog = (obj) => ({
1761
- ...obj,
1762
- ...(obj.results && { results: obj.results.map((item) => RerankResultFilterSensitiveLog(item)) }),
1763
- });
1764
- export const RetrieveAndGenerateInputFilterSensitiveLog = (obj) => ({
1765
- ...obj,
1766
- });
1767
- export const PromptTemplateFilterSensitiveLog = (obj) => ({
1768
- ...obj,
1769
- ...(obj.textPromptTemplate && { textPromptTemplate: SENSITIVE_STRING }),
1770
- });
1771
- export const ExternalSourcesGenerationConfigurationFilterSensitiveLog = (obj) => ({
1772
- ...obj,
1773
- ...(obj.promptTemplate && { promptTemplate: PromptTemplateFilterSensitiveLog(obj.promptTemplate) }),
1774
- });
1775
- export const ByteContentDocFilterSensitiveLog = (obj) => ({
1776
- ...obj,
1777
- ...(obj.identifier && { identifier: SENSITIVE_STRING }),
1778
- ...(obj.data && { data: SENSITIVE_STRING }),
1779
- });