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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -68,6 +68,45 @@ export const se_InvokeFlowCommand = async (input, context) => {
68
68
  b.m("POST").h(headers).b(body);
69
69
  return b.build();
70
70
  };
71
+ export const se_InvokeInlineAgentCommand = async (input, context) => {
72
+ const b = rb(input, context);
73
+ const headers = {
74
+ "content-type": "application/json",
75
+ };
76
+ b.bp("/agents/{sessionId}");
77
+ b.p("sessionId", () => input.sessionId, "{sessionId}", false);
78
+ let body;
79
+ body = JSON.stringify(take(input, {
80
+ actionGroups: (_) => _json(_),
81
+ customerEncryptionKeyArn: [],
82
+ enableTrace: [],
83
+ endSession: [],
84
+ foundationModel: [],
85
+ guardrailConfiguration: (_) => _json(_),
86
+ idleSessionTTLInSeconds: [],
87
+ inlineSessionState: (_) => se_InlineSessionState(_, context),
88
+ inputText: [],
89
+ instruction: [],
90
+ knowledgeBases: (_) => se_KnowledgeBases(_, context),
91
+ promptOverrideConfiguration: (_) => se_PromptOverrideConfiguration(_, context),
92
+ }));
93
+ b.m("POST").h(headers).b(body);
94
+ return b.build();
95
+ };
96
+ export const se_OptimizePromptCommand = async (input, context) => {
97
+ const b = rb(input, context);
98
+ const headers = {
99
+ "content-type": "application/json",
100
+ };
101
+ b.bp("/optimize-prompt");
102
+ let body;
103
+ body = JSON.stringify(take(input, {
104
+ input: (_) => _json(_),
105
+ targetModelId: [],
106
+ }));
107
+ b.m("POST").h(headers).b(body);
108
+ return b.build();
109
+ };
71
110
  export const se_RetrieveCommand = async (input, context) => {
72
111
  const b = rb(input, context);
73
112
  const headers = {
@@ -150,6 +189,30 @@ export const de_InvokeFlowCommand = async (output, context) => {
150
189
  contents.responseStream = de_FlowResponseStream(data, context);
151
190
  return contents;
152
191
  };
192
+ export const de_InvokeInlineAgentCommand = async (output, context) => {
193
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
194
+ return de_CommandError(output, context);
195
+ }
196
+ const contents = map({
197
+ $metadata: deserializeMetadata(output),
198
+ [_cT]: [, output.headers[_xabact]],
199
+ [_sI]: [, output.headers[_xabasi]],
200
+ });
201
+ const data = output.body;
202
+ contents.completion = de_InlineAgentResponseStream(data, context);
203
+ return contents;
204
+ };
205
+ export const de_OptimizePromptCommand = async (output, context) => {
206
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
207
+ return de_CommandError(output, context);
208
+ }
209
+ const contents = map({
210
+ $metadata: deserializeMetadata(output),
211
+ });
212
+ const data = output.body;
213
+ contents.optimizedPrompt = de_OptimizedPromptStream(data, context);
214
+ return contents;
215
+ };
153
216
  export const de_RetrieveCommand = async (output, context) => {
154
217
  if (output.statusCode !== 200 && output.statusCode >= 300) {
155
218
  return de_CommandError(output, context);
@@ -410,6 +473,121 @@ const de_FlowResponseStream = (output, context) => {
410
473
  return { $unknown: output };
411
474
  });
412
475
  };
476
+ const de_InlineAgentResponseStream = (output, context) => {
477
+ return context.eventStreamMarshaller.deserialize(output, async (event) => {
478
+ if (event["chunk"] != null) {
479
+ return {
480
+ chunk: await de_InlineAgentPayloadPart_event(event["chunk"], context),
481
+ };
482
+ }
483
+ if (event["trace"] != null) {
484
+ return {
485
+ trace: await de_InlineAgentTracePart_event(event["trace"], context),
486
+ };
487
+ }
488
+ if (event["returnControl"] != null) {
489
+ return {
490
+ returnControl: await de_InlineAgentReturnControlPayload_event(event["returnControl"], context),
491
+ };
492
+ }
493
+ if (event["internalServerException"] != null) {
494
+ return {
495
+ internalServerException: await de_InternalServerException_event(event["internalServerException"], context),
496
+ };
497
+ }
498
+ if (event["validationException"] != null) {
499
+ return {
500
+ validationException: await de_ValidationException_event(event["validationException"], context),
501
+ };
502
+ }
503
+ if (event["resourceNotFoundException"] != null) {
504
+ return {
505
+ resourceNotFoundException: await de_ResourceNotFoundException_event(event["resourceNotFoundException"], context),
506
+ };
507
+ }
508
+ if (event["serviceQuotaExceededException"] != null) {
509
+ return {
510
+ serviceQuotaExceededException: await de_ServiceQuotaExceededException_event(event["serviceQuotaExceededException"], context),
511
+ };
512
+ }
513
+ if (event["throttlingException"] != null) {
514
+ return {
515
+ throttlingException: await de_ThrottlingException_event(event["throttlingException"], context),
516
+ };
517
+ }
518
+ if (event["accessDeniedException"] != null) {
519
+ return {
520
+ accessDeniedException: await de_AccessDeniedException_event(event["accessDeniedException"], context),
521
+ };
522
+ }
523
+ if (event["conflictException"] != null) {
524
+ return {
525
+ conflictException: await de_ConflictException_event(event["conflictException"], context),
526
+ };
527
+ }
528
+ if (event["dependencyFailedException"] != null) {
529
+ return {
530
+ dependencyFailedException: await de_DependencyFailedException_event(event["dependencyFailedException"], context),
531
+ };
532
+ }
533
+ if (event["badGatewayException"] != null) {
534
+ return {
535
+ badGatewayException: await de_BadGatewayException_event(event["badGatewayException"], context),
536
+ };
537
+ }
538
+ if (event["files"] != null) {
539
+ return {
540
+ files: await de_InlineAgentFilePart_event(event["files"], context),
541
+ };
542
+ }
543
+ return { $unknown: output };
544
+ });
545
+ };
546
+ const de_OptimizedPromptStream = (output, context) => {
547
+ return context.eventStreamMarshaller.deserialize(output, async (event) => {
548
+ if (event["optimizedPromptEvent"] != null) {
549
+ return {
550
+ optimizedPromptEvent: await de_OptimizedPromptEvent_event(event["optimizedPromptEvent"], context),
551
+ };
552
+ }
553
+ if (event["analyzePromptEvent"] != null) {
554
+ return {
555
+ analyzePromptEvent: await de_AnalyzePromptEvent_event(event["analyzePromptEvent"], context),
556
+ };
557
+ }
558
+ if (event["internalServerException"] != null) {
559
+ return {
560
+ internalServerException: await de_InternalServerException_event(event["internalServerException"], context),
561
+ };
562
+ }
563
+ if (event["throttlingException"] != null) {
564
+ return {
565
+ throttlingException: await de_ThrottlingException_event(event["throttlingException"], context),
566
+ };
567
+ }
568
+ if (event["validationException"] != null) {
569
+ return {
570
+ validationException: await de_ValidationException_event(event["validationException"], context),
571
+ };
572
+ }
573
+ if (event["dependencyFailedException"] != null) {
574
+ return {
575
+ dependencyFailedException: await de_DependencyFailedException_event(event["dependencyFailedException"], context),
576
+ };
577
+ }
578
+ if (event["accessDeniedException"] != null) {
579
+ return {
580
+ accessDeniedException: await de_AccessDeniedException_event(event["accessDeniedException"], context),
581
+ };
582
+ }
583
+ if (event["badGatewayException"] != null) {
584
+ return {
585
+ badGatewayException: await de_BadGatewayException_event(event["badGatewayException"], context),
586
+ };
587
+ }
588
+ return { $unknown: output };
589
+ });
590
+ };
413
591
  const de_ResponseStream = (output, context) => {
414
592
  return context.eventStreamMarshaller.deserialize(output, async (event) => {
415
593
  if (event["chunk"] != null) {
@@ -487,6 +665,12 @@ const de_AccessDeniedException_event = async (output, context) => {
487
665
  };
488
666
  return de_AccessDeniedExceptionRes(parsedOutput, context);
489
667
  };
668
+ const de_AnalyzePromptEvent_event = async (output, context) => {
669
+ const contents = {};
670
+ const data = await parseBody(output.body, context);
671
+ Object.assign(contents, _json(data));
672
+ return contents;
673
+ };
490
674
  const de_BadGatewayException_event = async (output, context) => {
491
675
  const parsedOutput = {
492
676
  ...output,
@@ -532,6 +716,30 @@ const de_FlowTraceEvent_event = async (output, context) => {
532
716
  Object.assign(contents, de_FlowTraceEvent(data, context));
533
717
  return contents;
534
718
  };
719
+ const de_InlineAgentFilePart_event = async (output, context) => {
720
+ const contents = {};
721
+ const data = await parseBody(output.body, context);
722
+ Object.assign(contents, de_InlineAgentFilePart(data, context));
723
+ return contents;
724
+ };
725
+ const de_InlineAgentPayloadPart_event = async (output, context) => {
726
+ const contents = {};
727
+ const data = await parseBody(output.body, context);
728
+ Object.assign(contents, de_InlineAgentPayloadPart(data, context));
729
+ return contents;
730
+ };
731
+ const de_InlineAgentReturnControlPayload_event = async (output, context) => {
732
+ const contents = {};
733
+ const data = await parseBody(output.body, context);
734
+ Object.assign(contents, _json(data));
735
+ return contents;
736
+ };
737
+ const de_InlineAgentTracePart_event = async (output, context) => {
738
+ const contents = {};
739
+ const data = await parseBody(output.body, context);
740
+ Object.assign(contents, de_InlineAgentTracePart(data, context));
741
+ return contents;
742
+ };
535
743
  const de_InternalServerException_event = async (output, context) => {
536
744
  const parsedOutput = {
537
745
  ...output,
@@ -539,6 +747,12 @@ const de_InternalServerException_event = async (output, context) => {
539
747
  };
540
748
  return de_InternalServerExceptionRes(parsedOutput, context);
541
749
  };
750
+ const de_OptimizedPromptEvent_event = async (output, context) => {
751
+ const contents = {};
752
+ const data = await parseBody(output.body, context);
753
+ Object.assign(contents, _json(data));
754
+ return contents;
755
+ };
542
756
  const de_PayloadPart_event = async (output, context) => {
543
757
  const contents = {};
544
758
  const data = await parseBody(output.body, context);
@@ -688,6 +902,24 @@ const se_InferenceConfig = (input, context) => {
688
902
  textInferenceConfig: (_) => se_TextInferenceConfig(_, context),
689
903
  });
690
904
  };
905
+ const se_InferenceConfiguration = (input, context) => {
906
+ return take(input, {
907
+ maximumLength: [],
908
+ stopSequences: _json,
909
+ temperature: __serializeFloat,
910
+ topK: [],
911
+ topP: __serializeFloat,
912
+ });
913
+ };
914
+ const se_InlineSessionState = (input, context) => {
915
+ return take(input, {
916
+ files: (_) => se_InputFiles(_, context),
917
+ invocationId: [],
918
+ promptSessionAttributes: _json,
919
+ returnControlInvocationResults: _json,
920
+ sessionAttributes: _json,
921
+ });
922
+ };
691
923
  const se_InputFile = (input, context) => {
692
924
  return take(input, {
693
925
  name: [],
@@ -702,6 +934,13 @@ const se_InputFiles = (input, context) => {
702
934
  return se_InputFile(entry, context);
703
935
  });
704
936
  };
937
+ const se_KnowledgeBase = (input, context) => {
938
+ return take(input, {
939
+ description: [],
940
+ knowledgeBaseId: [],
941
+ retrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context),
942
+ });
943
+ };
705
944
  const se_KnowledgeBaseConfiguration = (input, context) => {
706
945
  return take(input, {
707
946
  knowledgeBaseId: [],
@@ -729,6 +968,13 @@ const se_KnowledgeBaseRetrieveAndGenerateConfiguration = (input, context) => {
729
968
  retrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context),
730
969
  });
731
970
  };
971
+ const se_KnowledgeBases = (input, context) => {
972
+ return input
973
+ .filter((e) => e != null)
974
+ .map((entry) => {
975
+ return se_KnowledgeBase(entry, context);
976
+ });
977
+ };
732
978
  const se_KnowledgeBaseVectorSearchConfiguration = (input, context) => {
733
979
  return take(input, {
734
980
  filter: (_) => se_RetrievalFilter(_, context),
@@ -744,6 +990,29 @@ const se_OrchestrationConfiguration = (input, context) => {
744
990
  queryTransformationConfiguration: _json,
745
991
  });
746
992
  };
993
+ const se_PromptConfiguration = (input, context) => {
994
+ return take(input, {
995
+ basePromptTemplate: [],
996
+ inferenceConfiguration: (_) => se_InferenceConfiguration(_, context),
997
+ parserMode: [],
998
+ promptCreationMode: [],
999
+ promptState: [],
1000
+ promptType: [],
1001
+ });
1002
+ };
1003
+ const se_PromptConfigurations = (input, context) => {
1004
+ return input
1005
+ .filter((e) => e != null)
1006
+ .map((entry) => {
1007
+ return se_PromptConfiguration(entry, context);
1008
+ });
1009
+ };
1010
+ const se_PromptOverrideConfiguration = (input, context) => {
1011
+ return take(input, {
1012
+ overrideLambda: [],
1013
+ promptConfigurations: (_) => se_PromptConfigurations(_, context),
1014
+ });
1015
+ };
747
1016
  const se_RetrievalFilter = (input, context) => {
748
1017
  return RetrievalFilter.visit(input, {
749
1018
  andAll: (value) => ({ andAll: se_RetrievalFilterList(value, context) }),
@@ -933,6 +1202,23 @@ const de_InferenceConfiguration = (output, context) => {
933
1202
  topP: __limitedParseFloat32,
934
1203
  });
935
1204
  };
1205
+ const de_InlineAgentFilePart = (output, context) => {
1206
+ return take(output, {
1207
+ files: (_) => de_OutputFiles(_, context),
1208
+ });
1209
+ };
1210
+ const de_InlineAgentPayloadPart = (output, context) => {
1211
+ return take(output, {
1212
+ attribution: (_) => de_Attribution(_, context),
1213
+ bytes: context.base64Decoder,
1214
+ });
1215
+ };
1216
+ const de_InlineAgentTracePart = (output, context) => {
1217
+ return take(output, {
1218
+ sessionId: __expectString,
1219
+ trace: (_) => de_Trace(__expectUnion(_), context),
1220
+ });
1221
+ };
936
1222
  const de_KnowledgeBaseLookupOutput = (output, context) => {
937
1223
  return take(output, {
938
1224
  retrievedReferences: (_) => de_RetrievedReferences(_, context),
@@ -4,6 +4,8 @@ import { DeleteAgentMemoryCommandInput, DeleteAgentMemoryCommandOutput } from ".
4
4
  import { GetAgentMemoryCommandInput, GetAgentMemoryCommandOutput } from "./commands/GetAgentMemoryCommand";
5
5
  import { InvokeAgentCommandInput, InvokeAgentCommandOutput } from "./commands/InvokeAgentCommand";
6
6
  import { InvokeFlowCommandInput, InvokeFlowCommandOutput } from "./commands/InvokeFlowCommand";
7
+ import { InvokeInlineAgentCommandInput, InvokeInlineAgentCommandOutput } from "./commands/InvokeInlineAgentCommand";
8
+ import { OptimizePromptCommandInput, OptimizePromptCommandOutput } from "./commands/OptimizePromptCommand";
7
9
  import { RetrieveAndGenerateCommandInput, RetrieveAndGenerateCommandOutput } from "./commands/RetrieveAndGenerateCommand";
8
10
  import { RetrieveCommandInput, RetrieveCommandOutput } from "./commands/RetrieveCommand";
9
11
  export interface BedrockAgentRuntime {
@@ -31,6 +33,18 @@ export interface BedrockAgentRuntime {
31
33
  invokeFlow(args: InvokeFlowCommandInput, options?: __HttpHandlerOptions): Promise<InvokeFlowCommandOutput>;
32
34
  invokeFlow(args: InvokeFlowCommandInput, cb: (err: any, data?: InvokeFlowCommandOutput) => void): void;
33
35
  invokeFlow(args: InvokeFlowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeFlowCommandOutput) => void): void;
36
+ /**
37
+ * @see {@link InvokeInlineAgentCommand}
38
+ */
39
+ invokeInlineAgent(args: InvokeInlineAgentCommandInput, options?: __HttpHandlerOptions): Promise<InvokeInlineAgentCommandOutput>;
40
+ invokeInlineAgent(args: InvokeInlineAgentCommandInput, cb: (err: any, data?: InvokeInlineAgentCommandOutput) => void): void;
41
+ invokeInlineAgent(args: InvokeInlineAgentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeInlineAgentCommandOutput) => void): void;
42
+ /**
43
+ * @see {@link OptimizePromptCommand}
44
+ */
45
+ optimizePrompt(args: OptimizePromptCommandInput, options?: __HttpHandlerOptions): Promise<OptimizePromptCommandOutput>;
46
+ optimizePrompt(args: OptimizePromptCommandInput, cb: (err: any, data?: OptimizePromptCommandOutput) => void): void;
47
+ optimizePrompt(args: OptimizePromptCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: OptimizePromptCommandOutput) => void): void;
34
48
  /**
35
49
  * @see {@link RetrieveCommand}
36
50
  */
@@ -12,6 +12,8 @@ import { DeleteAgentMemoryCommandInput, DeleteAgentMemoryCommandOutput } from ".
12
12
  import { GetAgentMemoryCommandInput, GetAgentMemoryCommandOutput } from "./commands/GetAgentMemoryCommand";
13
13
  import { InvokeAgentCommandInput, InvokeAgentCommandOutput } from "./commands/InvokeAgentCommand";
14
14
  import { InvokeFlowCommandInput, InvokeFlowCommandOutput } from "./commands/InvokeFlowCommand";
15
+ import { InvokeInlineAgentCommandInput, InvokeInlineAgentCommandOutput } from "./commands/InvokeInlineAgentCommand";
16
+ import { OptimizePromptCommandInput, OptimizePromptCommandOutput } from "./commands/OptimizePromptCommand";
15
17
  import { RetrieveAndGenerateCommandInput, RetrieveAndGenerateCommandOutput } from "./commands/RetrieveAndGenerateCommand";
16
18
  import { RetrieveCommandInput, RetrieveCommandOutput } from "./commands/RetrieveCommand";
17
19
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
@@ -20,11 +22,11 @@ export { __Client };
20
22
  /**
21
23
  * @public
22
24
  */
23
- export type ServiceInputTypes = DeleteAgentMemoryCommandInput | GetAgentMemoryCommandInput | InvokeAgentCommandInput | InvokeFlowCommandInput | RetrieveAndGenerateCommandInput | RetrieveCommandInput;
25
+ export type ServiceInputTypes = DeleteAgentMemoryCommandInput | GetAgentMemoryCommandInput | InvokeAgentCommandInput | InvokeFlowCommandInput | InvokeInlineAgentCommandInput | OptimizePromptCommandInput | RetrieveAndGenerateCommandInput | RetrieveCommandInput;
24
26
  /**
25
27
  * @public
26
28
  */
27
- export type ServiceOutputTypes = DeleteAgentMemoryCommandOutput | GetAgentMemoryCommandOutput | InvokeAgentCommandOutput | InvokeFlowCommandOutput | RetrieveAndGenerateCommandOutput | RetrieveCommandOutput;
29
+ export type ServiceOutputTypes = DeleteAgentMemoryCommandOutput | GetAgentMemoryCommandOutput | InvokeAgentCommandOutput | InvokeFlowCommandOutput | InvokeInlineAgentCommandOutput | OptimizePromptCommandOutput | RetrieveAndGenerateCommandOutput | RetrieveCommandOutput;
28
30
  /**
29
31
  * @public
30
32
  */
@@ -242,10 +242,7 @@ declare const InvokeAgentCommand_base: {
242
242
  * // },
243
243
  * // },
244
244
  * // trace: { // TracePart
245
- * // agentId: "STRING_VALUE",
246
- * // agentAliasId: "STRING_VALUE",
247
245
  * // sessionId: "STRING_VALUE",
248
- * // agentVersion: "STRING_VALUE",
249
246
  * // trace: { // Trace Union: only one key present
250
247
  * // guardrailTrace: { // GuardrailTrace
251
248
  * // action: "INTERVENED" || "NONE",
@@ -363,7 +360,7 @@ declare const InvokeAgentCommand_base: {
363
360
  * // modelInvocationInput: { // ModelInvocationInput
364
361
  * // traceId: "STRING_VALUE",
365
362
  * // text: "STRING_VALUE",
366
- * // type: "PRE_PROCESSING" || "ORCHESTRATION" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "POST_PROCESSING",
363
+ * // type: "PRE_PROCESSING" || "ORCHESTRATION" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "POST_PROCESSING" || "ROUTING_CLASSIFIER",
367
364
  * // overrideLambda: "STRING_VALUE",
368
365
  * // promptCreationMode: "DEFAULT" || "OVERRIDDEN",
369
366
  * // inferenceConfiguration: { // InferenceConfiguration
@@ -494,7 +491,7 @@ declare const InvokeAgentCommand_base: {
494
491
  * // modelInvocationInput: {
495
492
  * // traceId: "STRING_VALUE",
496
493
  * // text: "STRING_VALUE",
497
- * // type: "PRE_PROCESSING" || "ORCHESTRATION" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "POST_PROCESSING",
494
+ * // type: "PRE_PROCESSING" || "ORCHESTRATION" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "POST_PROCESSING" || "ROUTING_CLASSIFIER",
498
495
  * // overrideLambda: "STRING_VALUE",
499
496
  * // promptCreationMode: "DEFAULT" || "OVERRIDDEN",
500
497
  * // inferenceConfiguration: {
@@ -525,7 +522,7 @@ declare const InvokeAgentCommand_base: {
525
522
  * // modelInvocationInput: {
526
523
  * // traceId: "STRING_VALUE",
527
524
  * // text: "STRING_VALUE",
528
- * // type: "PRE_PROCESSING" || "ORCHESTRATION" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "POST_PROCESSING",
525
+ * // type: "PRE_PROCESSING" || "ORCHESTRATION" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "POST_PROCESSING" || "ROUTING_CLASSIFIER",
529
526
  * // overrideLambda: "STRING_VALUE",
530
527
  * // promptCreationMode: "DEFAULT" || "OVERRIDDEN",
531
528
  * // inferenceConfiguration: {
@@ -560,6 +557,9 @@ declare const InvokeAgentCommand_base: {
560
557
  * // failureReason: "STRING_VALUE",
561
558
  * // },
562
559
  * // },
560
+ * // agentId: "STRING_VALUE",
561
+ * // agentAliasId: "STRING_VALUE",
562
+ * // agentVersion: "STRING_VALUE",
563
563
  * // },
564
564
  * // returnControl: { // ReturnControlPayload
565
565
  * // invocationInputs: [ // InvocationInputs
@@ -27,7 +27,7 @@ declare const InvokeFlowCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Invokes an alias of a flow to run the inputs that you specify and return the output of each node as a stream. If there's an error, the error is returned. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-test.html">Test a flow in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p>
30
+ * <p>Invokes an alias of a flow to run the inputs that you specify and return the output of each node as a stream. If there's an error, the error is returned. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-test.html">Test a flow in Amazon Bedrock</a> in the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Amazon Bedrock User Guide</a>.</p>
31
31
  * <note>
32
32
  * <p>The CLI doesn't support streaming operations in Amazon Bedrock, including <code>InvokeFlow</code>.</p>
33
33
  * </note>