@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
@@ -509,6 +509,10 @@ export declare namespace RetrieveAndGenerateStreamResponseOutput {
509
509
  badGatewayException?: never;
510
510
  $unknown: [string, any];
511
511
  }
512
+ /**
513
+ * @deprecated unused in schema-serde mode.
514
+ *
515
+ */
512
516
  interface Visitor<T> {
513
517
  output: (value: RetrieveAndGenerateOutputEvent) => T;
514
518
  citation: (value: CitationEvent) => T;
@@ -524,7 +528,6 @@ export declare namespace RetrieveAndGenerateStreamResponseOutput {
524
528
  badGatewayException: (value: BadGatewayException) => T;
525
529
  _: (name: string, value: any) => T;
526
530
  }
527
- const visit: <T>(value: RetrieveAndGenerateStreamResponseOutput, visitor: Visitor<T>) => T;
528
531
  }
529
532
  /**
530
533
  * @public
@@ -927,12 +930,15 @@ export declare namespace ImageSource {
927
930
  s3Location?: never;
928
931
  $unknown: [string, any];
929
932
  }
933
+ /**
934
+ * @deprecated unused in schema-serde mode.
935
+ *
936
+ */
930
937
  interface Visitor<T> {
931
938
  bytes: (value: Uint8Array) => T;
932
939
  s3Location: (value: S3Location) => T;
933
940
  _: (name: string, value: any) => T;
934
941
  }
935
- const visit: <T>(value: ImageSource, visitor: Visitor<T>) => T;
936
942
  }
937
943
  /**
938
944
  * <p>Image content for an invocation step.</p>
@@ -985,12 +991,15 @@ export declare namespace BedrockSessionContentBlock {
985
991
  image?: never;
986
992
  $unknown: [string, any];
987
993
  }
994
+ /**
995
+ * @deprecated unused in schema-serde mode.
996
+ *
997
+ */
988
998
  interface Visitor<T> {
989
999
  text: (value: string) => T;
990
1000
  image: (value: ImageBlock) => T;
991
1001
  _: (name: string, value: any) => T;
992
1002
  }
993
- const visit: <T>(value: BedrockSessionContentBlock, visitor: Visitor<T>) => T;
994
1003
  }
995
1004
  /**
996
1005
  * <p>Payload content, such as text and images, for the invocation step.</p>
@@ -1016,11 +1025,14 @@ export declare namespace InvocationStepPayload {
1016
1025
  contentBlocks?: never;
1017
1026
  $unknown: [string, any];
1018
1027
  }
1028
+ /**
1029
+ * @deprecated unused in schema-serde mode.
1030
+ *
1031
+ */
1019
1032
  interface Visitor<T> {
1020
1033
  contentBlocks: (value: BedrockSessionContentBlock[]) => T;
1021
1034
  _: (name: string, value: any) => T;
1022
1035
  }
1023
- const visit: <T>(value: InvocationStepPayload, visitor: Visitor<T>) => T;
1024
1036
  }
1025
1037
  /**
1026
1038
  * <p>Stores fine-grained state checkpoints, including text and images, for each interaction in an invocation in a session. For more information about sessions, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html">Store and retrieve conversation history and context with Amazon Bedrock sessions</a>. </p>
@@ -1623,6 +1635,10 @@ export declare namespace RetrievalFilter {
1623
1635
  orAll?: never;
1624
1636
  $unknown: [string, any];
1625
1637
  }
1638
+ /**
1639
+ * @deprecated unused in schema-serde mode.
1640
+ *
1641
+ */
1626
1642
  interface Visitor<T> {
1627
1643
  equals: (value: FilterAttribute) => T;
1628
1644
  notEquals: (value: FilterAttribute) => T;
@@ -1639,7 +1655,6 @@ export declare namespace RetrievalFilter {
1639
1655
  orAll: (value: RetrievalFilter[]) => T;
1640
1656
  _: (name: string, value: any) => T;
1641
1657
  }
1642
- const visit: <T>(value: RetrievalFilter, visitor: Visitor<T>) => T;
1643
1658
  }
1644
1659
  /**
1645
1660
  * <p>Configurations for how to perform the search query and return results. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html">Query configurations</a>.</p> <p>This data type is used in the following API operations:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_RequestSyntax">Retrieve request</a> – in the <code>vectorSearchConfiguration</code> field</p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax">RetrieveAndGenerate request</a> – in the <code>vectorSearchConfiguration</code> field</p> </li> </ul>
@@ -2134,131 +2149,3 @@ export interface InvokeInlineAgentRequest {
2134
2149
  */
2135
2150
  customOrchestration?: CustomOrchestration | undefined;
2136
2151
  }
2137
- /**
2138
- * @internal
2139
- */
2140
- export declare const ExternalSourceFilterSensitiveLog: (obj: ExternalSource) => any;
2141
- /**
2142
- * @internal
2143
- */
2144
- export declare const ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog: (obj: ExternalSourcesRetrieveAndGenerateConfiguration) => any;
2145
- /**
2146
- * @internal
2147
- */
2148
- export declare const GenerationConfigurationFilterSensitiveLog: (obj: GenerationConfiguration) => any;
2149
- /**
2150
- * @internal
2151
- */
2152
- export declare const OrchestrationConfigurationFilterSensitiveLog: (obj: OrchestrationConfiguration) => any;
2153
- /**
2154
- * @internal
2155
- */
2156
- export declare const RetrieveAndGenerateOutputFilterSensitiveLog: (obj: RetrieveAndGenerateOutput) => any;
2157
- /**
2158
- * @internal
2159
- */
2160
- export declare const RetrieveAndGenerateResponseFilterSensitiveLog: (obj: RetrieveAndGenerateResponse) => any;
2161
- /**
2162
- * @internal
2163
- */
2164
- export declare const CitationEventFilterSensitiveLog: (obj: CitationEvent) => any;
2165
- /**
2166
- * @internal
2167
- */
2168
- export declare const RetrieveAndGenerateOutputEventFilterSensitiveLog: (obj: RetrieveAndGenerateOutputEvent) => any;
2169
- /**
2170
- * @internal
2171
- */
2172
- export declare const RetrieveAndGenerateStreamResponseOutputFilterSensitiveLog: (obj: RetrieveAndGenerateStreamResponseOutput) => any;
2173
- /**
2174
- * @internal
2175
- */
2176
- export declare const RetrieveAndGenerateStreamResponseFilterSensitiveLog: (obj: RetrieveAndGenerateStreamResponse) => any;
2177
- /**
2178
- * @internal
2179
- */
2180
- export declare const KnowledgeBaseQueryFilterSensitiveLog: (obj: KnowledgeBaseQuery) => any;
2181
- /**
2182
- * @internal
2183
- */
2184
- export declare const KnowledgeBaseRetrievalResultFilterSensitiveLog: (obj: KnowledgeBaseRetrievalResult) => any;
2185
- /**
2186
- * @internal
2187
- */
2188
- export declare const RetrieveResponseFilterSensitiveLog: (obj: RetrieveResponse) => any;
2189
- /**
2190
- * @internal
2191
- */
2192
- export declare const BedrockSessionContentBlockFilterSensitiveLog: (obj: BedrockSessionContentBlock) => any;
2193
- /**
2194
- * @internal
2195
- */
2196
- export declare const InvocationStepPayloadFilterSensitiveLog: (obj: InvocationStepPayload) => any;
2197
- /**
2198
- * @internal
2199
- */
2200
- export declare const InvocationStepFilterSensitiveLog: (obj: InvocationStep) => any;
2201
- /**
2202
- * @internal
2203
- */
2204
- export declare const GetInvocationStepResponseFilterSensitiveLog: (obj: GetInvocationStepResponse) => any;
2205
- /**
2206
- * @internal
2207
- */
2208
- export declare const PutInvocationStepRequestFilterSensitiveLog: (obj: PutInvocationStepRequest) => any;
2209
- /**
2210
- * @internal
2211
- */
2212
- export declare const RetrievalFilterFilterSensitiveLog: (obj: RetrievalFilter) => any;
2213
- /**
2214
- * @internal
2215
- */
2216
- export declare const KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog: (obj: KnowledgeBaseVectorSearchConfiguration) => any;
2217
- /**
2218
- * @internal
2219
- */
2220
- export declare const KnowledgeBaseRetrievalConfigurationFilterSensitiveLog: (obj: KnowledgeBaseRetrievalConfiguration) => any;
2221
- /**
2222
- * @internal
2223
- */
2224
- export declare const KnowledgeBaseFilterSensitiveLog: (obj: KnowledgeBase) => any;
2225
- /**
2226
- * @internal
2227
- */
2228
- export declare const KnowledgeBaseConfigurationFilterSensitiveLog: (obj: KnowledgeBaseConfiguration) => any;
2229
- /**
2230
- * @internal
2231
- */
2232
- export declare const KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog: (obj: KnowledgeBaseRetrieveAndGenerateConfiguration) => any;
2233
- /**
2234
- * @internal
2235
- */
2236
- export declare const RetrieveRequestFilterSensitiveLog: (obj: RetrieveRequest) => any;
2237
- /**
2238
- * @internal
2239
- */
2240
- export declare const RetrieveAndGenerateConfigurationFilterSensitiveLog: (obj: RetrieveAndGenerateConfiguration) => any;
2241
- /**
2242
- * @internal
2243
- */
2244
- export declare const CollaboratorFilterSensitiveLog: (obj: Collaborator) => any;
2245
- /**
2246
- * @internal
2247
- */
2248
- export declare const RetrieveAndGenerateRequestFilterSensitiveLog: (obj: RetrieveAndGenerateRequest) => any;
2249
- /**
2250
- * @internal
2251
- */
2252
- export declare const RetrieveAndGenerateStreamRequestFilterSensitiveLog: (obj: RetrieveAndGenerateStreamRequest) => any;
2253
- /**
2254
- * @internal
2255
- */
2256
- export declare const SessionStateFilterSensitiveLog: (obj: SessionState) => any;
2257
- /**
2258
- * @internal
2259
- */
2260
- export declare const InvokeAgentRequestFilterSensitiveLog: (obj: InvokeAgentRequest) => any;
2261
- /**
2262
- * @internal
2263
- */
2264
- export declare const InvokeInlineAgentRequestFilterSensitiveLog: (obj: InvokeInlineAgentRequest) => any;
@@ -30,6 +30,7 @@ export declare const getRuntimeConfig: (config: BedrockAgentRuntimeClientConfig)
30
30
  profile?: string;
31
31
  logger: import("@smithy/types").Logger;
32
32
  extensions: import("./runtimeExtensions").RuntimeExtension[];
33
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
33
34
  customUserAgent?: string | import("@smithy/types").UserAgent;
34
35
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
35
36
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
@@ -32,6 +32,7 @@ export declare const getRuntimeConfig: (config: BedrockAgentRuntimeClientConfig)
32
32
  profile?: string;
33
33
  logger: import("@smithy/types").Logger;
34
34
  extensions: import("./runtimeExtensions").RuntimeExtension[];
35
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
35
36
  customUserAgent?: string | import("@smithy/types").UserAgent;
36
37
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
37
38
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: BedrockAgentRuntimeClientConfig)
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
29
29
  extensions: import("./runtimeExtensions").RuntimeExtension[];
30
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
30
31
  eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
31
32
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
32
33
  customUserAgent?: string | import("@smithy/types").UserAgent;
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: BedrockAgentRuntimeClientConfig)
14
14
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockAgentRuntimeHttpAuthSchemeProvider;
15
15
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
16
16
  logger: import("@smithy/types").Logger;
17
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
17
18
  serviceId: string;
18
19
  urlParser: import("@smithy/types").UrlParser;
19
20
  utf8Decoder: import("@smithy/types").Decoder;