@aws-sdk/client-bedrock-agent-runtime 3.896.0 → 3.899.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.
@@ -5,35 +5,36 @@ import {
5
5
  AgentCollaboration,
6
6
  BadGatewayException,
7
7
  BedrockModelConfigurations,
8
- CitationEvent,
8
+ ByteContentDoc,
9
+ Citation,
9
10
  CollaboratorConfiguration,
10
11
  ConflictException,
11
12
  ConversationHistory,
12
13
  CustomOrchestration,
13
14
  DependencyFailedException,
14
- ExternalSourcesRetrieveAndGenerateConfiguration,
15
+ ExternalSourcesGenerationConfiguration,
15
16
  FilterAttribute,
16
- GenerationConfiguration,
17
- GuadrailAction,
17
+ GeneratedResponsePart,
18
18
  GuardrailConfiguration,
19
19
  GuardrailConfigurationWithArn,
20
- GuardrailEvent,
21
20
  ImplicitFilterConfiguration,
21
+ InferenceConfig,
22
22
  InlineBedrockModelConfigurations,
23
23
  InlineSessionState,
24
24
  InputFile,
25
25
  InternalServerException,
26
26
  InvocationResultMember,
27
- OrchestrationConfiguration,
28
27
  OrchestrationType,
28
+ PerformanceConfiguration,
29
29
  PromptCreationConfigurations,
30
30
  PromptOverrideConfiguration,
31
+ PromptTemplate,
31
32
  ResourceNotFoundException,
32
33
  RetrievalResultContent,
33
34
  RetrievalResultLocation,
34
35
  RetrieveAndGenerateInput,
35
- RetrieveAndGenerateSessionConfiguration,
36
- RetrieveAndGenerateType,
36
+ RetrievedReference,
37
+ S3ObjectDoc,
37
38
  SearchType,
38
39
  ServiceQuotaExceededException,
39
40
  StreamingConfigurations,
@@ -41,6 +42,78 @@ import {
41
42
  ValidationException,
42
43
  VectorSearchRerankingConfiguration,
43
44
  } from "./models_0";
45
+ export declare const ExternalSourceType: {
46
+ readonly BYTE_CONTENT: "BYTE_CONTENT";
47
+ readonly S3: "S3";
48
+ };
49
+ export type ExternalSourceType =
50
+ (typeof ExternalSourceType)[keyof typeof ExternalSourceType];
51
+ export interface ExternalSource {
52
+ sourceType: ExternalSourceType | undefined;
53
+ s3Location?: S3ObjectDoc | undefined;
54
+ byteContent?: ByteContentDoc | undefined;
55
+ }
56
+ export interface ExternalSourcesRetrieveAndGenerateConfiguration {
57
+ modelArn: string | undefined;
58
+ sources: ExternalSource[] | undefined;
59
+ generationConfiguration?: ExternalSourcesGenerationConfiguration | undefined;
60
+ }
61
+ export interface GenerationConfiguration {
62
+ promptTemplate?: PromptTemplate | undefined;
63
+ guardrailConfiguration?: GuardrailConfiguration | undefined;
64
+ inferenceConfig?: InferenceConfig | undefined;
65
+ additionalModelRequestFields?: Record<string, __DocumentType> | undefined;
66
+ performanceConfig?: PerformanceConfiguration | undefined;
67
+ }
68
+ export declare const QueryTransformationType: {
69
+ readonly QUERY_DECOMPOSITION: "QUERY_DECOMPOSITION";
70
+ };
71
+ export type QueryTransformationType =
72
+ (typeof QueryTransformationType)[keyof typeof QueryTransformationType];
73
+ export interface QueryTransformationConfiguration {
74
+ type: QueryTransformationType | undefined;
75
+ }
76
+ export interface OrchestrationConfiguration {
77
+ promptTemplate?: PromptTemplate | undefined;
78
+ inferenceConfig?: InferenceConfig | undefined;
79
+ additionalModelRequestFields?: Record<string, __DocumentType> | undefined;
80
+ queryTransformationConfiguration?:
81
+ | QueryTransformationConfiguration
82
+ | undefined;
83
+ performanceConfig?: PerformanceConfiguration | undefined;
84
+ }
85
+ export declare const RetrieveAndGenerateType: {
86
+ readonly EXTERNAL_SOURCES: "EXTERNAL_SOURCES";
87
+ readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
88
+ };
89
+ export type RetrieveAndGenerateType =
90
+ (typeof RetrieveAndGenerateType)[keyof typeof RetrieveAndGenerateType];
91
+ export interface RetrieveAndGenerateSessionConfiguration {
92
+ kmsKeyArn: string | undefined;
93
+ }
94
+ export declare const GuadrailAction: {
95
+ readonly INTERVENED: "INTERVENED";
96
+ readonly NONE: "NONE";
97
+ };
98
+ export type GuadrailAction =
99
+ (typeof GuadrailAction)[keyof typeof GuadrailAction];
100
+ export interface RetrieveAndGenerateOutput {
101
+ text: string | undefined;
102
+ }
103
+ export interface RetrieveAndGenerateResponse {
104
+ sessionId: string | undefined;
105
+ output: RetrieveAndGenerateOutput | undefined;
106
+ citations?: Citation[] | undefined;
107
+ guardrailAction?: GuadrailAction | undefined;
108
+ }
109
+ export interface CitationEvent {
110
+ citation?: Citation | undefined;
111
+ generatedResponsePart?: GeneratedResponsePart | undefined;
112
+ retrievedReferences?: RetrievedReference[] | undefined;
113
+ }
114
+ export interface GuardrailEvent {
115
+ action?: GuadrailAction | undefined;
116
+ }
44
117
  export interface RetrieveAndGenerateOutputEvent {
45
118
  text: string | undefined;
46
119
  }
@@ -902,6 +975,27 @@ export interface InvokeInlineAgentRequest {
902
975
  orchestrationType?: OrchestrationType | undefined;
903
976
  customOrchestration?: CustomOrchestration | undefined;
904
977
  }
978
+ export declare const ExternalSourceFilterSensitiveLog: (
979
+ obj: ExternalSource
980
+ ) => any;
981
+ export declare const ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog: (
982
+ obj: ExternalSourcesRetrieveAndGenerateConfiguration
983
+ ) => any;
984
+ export declare const GenerationConfigurationFilterSensitiveLog: (
985
+ obj: GenerationConfiguration
986
+ ) => any;
987
+ export declare const OrchestrationConfigurationFilterSensitiveLog: (
988
+ obj: OrchestrationConfiguration
989
+ ) => any;
990
+ export declare const RetrieveAndGenerateOutputFilterSensitiveLog: (
991
+ obj: RetrieveAndGenerateOutput
992
+ ) => any;
993
+ export declare const RetrieveAndGenerateResponseFilterSensitiveLog: (
994
+ obj: RetrieveAndGenerateResponse
995
+ ) => any;
996
+ export declare const CitationEventFilterSensitiveLog: (
997
+ obj: CitationEvent
998
+ ) => any;
905
999
  export declare const RetrieveAndGenerateOutputEventFilterSensitiveLog: (
906
1000
  obj: RetrieveAndGenerateOutputEvent
907
1001
  ) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-agent-runtime",
3
3
  "description": "AWS SDK for JavaScript Bedrock Agent Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.896.0",
4
+ "version": "3.899.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock-agent-runtime",
@@ -20,19 +20,19 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.896.0",
24
- "@aws-sdk/credential-provider-node": "3.896.0",
23
+ "@aws-sdk/core": "3.899.0",
24
+ "@aws-sdk/credential-provider-node": "3.899.0",
25
25
  "@aws-sdk/middleware-host-header": "3.893.0",
26
26
  "@aws-sdk/middleware-logger": "3.893.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.893.0",
28
- "@aws-sdk/middleware-user-agent": "3.896.0",
28
+ "@aws-sdk/middleware-user-agent": "3.899.0",
29
29
  "@aws-sdk/region-config-resolver": "3.893.0",
30
30
  "@aws-sdk/types": "3.893.0",
31
31
  "@aws-sdk/util-endpoints": "3.895.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.893.0",
33
- "@aws-sdk/util-user-agent-node": "3.896.0",
33
+ "@aws-sdk/util-user-agent-node": "3.899.0",
34
34
  "@smithy/config-resolver": "^4.2.2",
35
- "@smithy/core": "^3.12.0",
35
+ "@smithy/core": "^3.13.0",
36
36
  "@smithy/eventstream-serde-browser": "^4.1.1",
37
37
  "@smithy/eventstream-serde-config-resolver": "^4.2.1",
38
38
  "@smithy/eventstream-serde-node": "^4.1.1",
@@ -40,21 +40,21 @@
40
40
  "@smithy/hash-node": "^4.1.1",
41
41
  "@smithy/invalid-dependency": "^4.1.1",
42
42
  "@smithy/middleware-content-length": "^4.1.1",
43
- "@smithy/middleware-endpoint": "^4.2.4",
44
- "@smithy/middleware-retry": "^4.3.0",
43
+ "@smithy/middleware-endpoint": "^4.2.5",
44
+ "@smithy/middleware-retry": "^4.3.1",
45
45
  "@smithy/middleware-serde": "^4.1.1",
46
46
  "@smithy/middleware-stack": "^4.1.1",
47
47
  "@smithy/node-config-provider": "^4.2.2",
48
48
  "@smithy/node-http-handler": "^4.2.1",
49
49
  "@smithy/protocol-http": "^5.2.1",
50
- "@smithy/smithy-client": "^4.6.4",
50
+ "@smithy/smithy-client": "^4.6.5",
51
51
  "@smithy/types": "^4.5.0",
52
52
  "@smithy/url-parser": "^4.1.1",
53
53
  "@smithy/util-base64": "^4.1.0",
54
54
  "@smithy/util-body-length-browser": "^4.1.0",
55
55
  "@smithy/util-body-length-node": "^4.1.0",
56
- "@smithy/util-defaults-mode-browser": "^4.1.4",
57
- "@smithy/util-defaults-mode-node": "^4.1.4",
56
+ "@smithy/util-defaults-mode-browser": "^4.1.5",
57
+ "@smithy/util-defaults-mode-node": "^4.1.5",
58
58
  "@smithy/util-endpoints": "^3.1.2",
59
59
  "@smithy/util-middleware": "^4.1.1",
60
60
  "@smithy/util-retry": "^4.1.2",