@aws-sdk/client-bedrock-agent-runtime 3.940.0 → 3.942.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +42 -16
- package/dist-es/models/enums.js +12 -0
- package/dist-es/models/models_1.js +1 -0
- package/dist-es/schemas/schemas_0.js +28 -16
- package/dist-types/commands/InvokeAgentCommand.d.ts +27 -3
- package/dist-types/commands/InvokeFlowCommand.d.ts +18 -2
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +29 -4
- package/dist-types/commands/ListFlowExecutionEventsCommand.d.ts +18 -2
- package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +9 -1
- package/dist-types/commands/RetrieveAndGenerateStreamCommand.d.ts +18 -2
- package/dist-types/commands/RetrieveCommand.d.ts +15 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +28 -0
- package/dist-types/models/models_0.d.ts +73 -120
- package/dist-types/models/models_1.d.ts +117 -0
- package/dist-types/schemas/schemas_0.d.ts +3 -0
- package/dist-types/ts3.4/commands/InvokeInlineAgentCommand.d.ts +2 -4
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +16 -0
- package/dist-types/ts3.4/models/models_0.d.ts +19 -26
- package/dist-types/ts3.4/models/models_1.d.ts +38 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +3 -0
- package/package.json +1 -1
|
@@ -34,12 +34,13 @@ import {
|
|
|
34
34
|
GuardrailWordPolicyAction,
|
|
35
35
|
ImageFormat,
|
|
36
36
|
ImageInputFormat,
|
|
37
|
+
InputImageFormat,
|
|
37
38
|
InputQueryType,
|
|
38
39
|
InvocationType,
|
|
40
|
+
KnowledgeBaseQueryType,
|
|
39
41
|
MemoryType,
|
|
40
42
|
NodeErrorCode,
|
|
41
43
|
NodeType,
|
|
42
|
-
OrchestrationType,
|
|
43
44
|
ParameterType,
|
|
44
45
|
PayloadType,
|
|
45
46
|
PerformanceConfigLatency,
|
|
@@ -535,15 +536,25 @@ export interface FinalResponse {
|
|
|
535
536
|
text?: string | undefined;
|
|
536
537
|
metadata?: Metadata | undefined;
|
|
537
538
|
}
|
|
539
|
+
export interface AudioSegment {
|
|
540
|
+
s3Uri: string | undefined;
|
|
541
|
+
transcription?: string | undefined;
|
|
542
|
+
}
|
|
538
543
|
export interface RetrievalResultContentColumn {
|
|
539
544
|
columnName?: string | undefined;
|
|
540
545
|
columnValue?: string | undefined;
|
|
541
546
|
type?: RetrievalResultContentColumnType | undefined;
|
|
542
547
|
}
|
|
548
|
+
export interface VideoSegment {
|
|
549
|
+
s3Uri: string | undefined;
|
|
550
|
+
summary?: string | undefined;
|
|
551
|
+
}
|
|
543
552
|
export interface RetrievalResultContent {
|
|
544
553
|
type?: RetrievalResultContentType | undefined;
|
|
545
554
|
text?: string | undefined;
|
|
546
555
|
byteContent?: string | undefined;
|
|
556
|
+
video?: VideoSegment | undefined;
|
|
557
|
+
audio?: AudioSegment | undefined;
|
|
547
558
|
row?: RetrievalResultContentColumn[] | undefined;
|
|
548
559
|
}
|
|
549
560
|
export interface RetrievalResultConfluenceLocation {
|
|
@@ -3184,8 +3195,14 @@ export interface RetrieveAndGenerateStreamResponse {
|
|
|
3184
3195
|
stream: AsyncIterable<RetrieveAndGenerateStreamResponseOutput> | undefined;
|
|
3185
3196
|
sessionId: string | undefined;
|
|
3186
3197
|
}
|
|
3198
|
+
export interface InputImage {
|
|
3199
|
+
format: InputImageFormat | undefined;
|
|
3200
|
+
inlineContent: Uint8Array | undefined;
|
|
3201
|
+
}
|
|
3187
3202
|
export interface KnowledgeBaseQuery {
|
|
3188
|
-
|
|
3203
|
+
type?: KnowledgeBaseQueryType | undefined;
|
|
3204
|
+
text?: string | undefined;
|
|
3205
|
+
image?: InputImage | undefined;
|
|
3189
3206
|
}
|
|
3190
3207
|
export interface KnowledgeBaseRetrievalResult {
|
|
3191
3208
|
content: RetrievalResultContent | undefined;
|
|
@@ -3767,27 +3784,3 @@ export interface InvokeAgentRequest {
|
|
|
3767
3784
|
promptCreationConfigurations?: PromptCreationConfigurations | undefined;
|
|
3768
3785
|
sourceArn?: string | undefined;
|
|
3769
3786
|
}
|
|
3770
|
-
export interface InvokeInlineAgentRequest {
|
|
3771
|
-
customerEncryptionKeyArn?: string | undefined;
|
|
3772
|
-
foundationModel: string | undefined;
|
|
3773
|
-
instruction: string | undefined;
|
|
3774
|
-
idleSessionTTLInSeconds?: number | undefined;
|
|
3775
|
-
actionGroups?: AgentActionGroup[] | undefined;
|
|
3776
|
-
knowledgeBases?: KnowledgeBase[] | undefined;
|
|
3777
|
-
guardrailConfiguration?: GuardrailConfigurationWithArn | undefined;
|
|
3778
|
-
promptOverrideConfiguration?: PromptOverrideConfiguration | undefined;
|
|
3779
|
-
agentCollaboration?: AgentCollaboration | undefined;
|
|
3780
|
-
collaboratorConfigurations?: CollaboratorConfiguration[] | undefined;
|
|
3781
|
-
agentName?: string | undefined;
|
|
3782
|
-
sessionId: string | undefined;
|
|
3783
|
-
endSession?: boolean | undefined;
|
|
3784
|
-
enableTrace?: boolean | undefined;
|
|
3785
|
-
inputText?: string | undefined;
|
|
3786
|
-
streamingConfigurations?: StreamingConfigurations | undefined;
|
|
3787
|
-
promptCreationConfigurations?: PromptCreationConfigurations | undefined;
|
|
3788
|
-
inlineSessionState?: InlineSessionState | undefined;
|
|
3789
|
-
collaborators?: Collaborator[] | undefined;
|
|
3790
|
-
bedrockModelConfigurations?: InlineBedrockModelConfigurations | undefined;
|
|
3791
|
-
orchestrationType?: OrchestrationType | undefined;
|
|
3792
|
-
customOrchestration?: CustomOrchestration | undefined;
|
|
3793
|
-
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { AgentCollaboration, OrchestrationType } from "./enums";
|
|
2
|
+
import {
|
|
3
|
+
AgentActionGroup,
|
|
4
|
+
Collaborator,
|
|
5
|
+
CollaboratorConfiguration,
|
|
6
|
+
CustomOrchestration,
|
|
7
|
+
GuardrailConfigurationWithArn,
|
|
8
|
+
InlineBedrockModelConfigurations,
|
|
9
|
+
InlineSessionState,
|
|
10
|
+
KnowledgeBase,
|
|
11
|
+
PromptCreationConfigurations,
|
|
12
|
+
PromptOverrideConfiguration,
|
|
13
|
+
StreamingConfigurations,
|
|
14
|
+
} from "./models_0";
|
|
15
|
+
export interface InvokeInlineAgentRequest {
|
|
16
|
+
customerEncryptionKeyArn?: string | undefined;
|
|
17
|
+
foundationModel: string | undefined;
|
|
18
|
+
instruction: string | undefined;
|
|
19
|
+
idleSessionTTLInSeconds?: number | undefined;
|
|
20
|
+
actionGroups?: AgentActionGroup[] | undefined;
|
|
21
|
+
knowledgeBases?: KnowledgeBase[] | undefined;
|
|
22
|
+
guardrailConfiguration?: GuardrailConfigurationWithArn | undefined;
|
|
23
|
+
promptOverrideConfiguration?: PromptOverrideConfiguration | undefined;
|
|
24
|
+
agentCollaboration?: AgentCollaboration | undefined;
|
|
25
|
+
collaboratorConfigurations?: CollaboratorConfiguration[] | undefined;
|
|
26
|
+
agentName?: string | undefined;
|
|
27
|
+
sessionId: string | undefined;
|
|
28
|
+
endSession?: boolean | undefined;
|
|
29
|
+
enableTrace?: boolean | undefined;
|
|
30
|
+
inputText?: string | undefined;
|
|
31
|
+
streamingConfigurations?: StreamingConfigurations | undefined;
|
|
32
|
+
promptCreationConfigurations?: PromptCreationConfigurations | undefined;
|
|
33
|
+
inlineSessionState?: InlineSessionState | undefined;
|
|
34
|
+
collaborators?: Collaborator[] | undefined;
|
|
35
|
+
bedrockModelConfigurations?: InlineBedrockModelConfigurations | undefined;
|
|
36
|
+
orchestrationType?: OrchestrationType | undefined;
|
|
37
|
+
customOrchestration?: CustomOrchestration | undefined;
|
|
38
|
+
}
|
|
@@ -48,6 +48,7 @@ export declare var ApiParameter: StaticStructureSchema;
|
|
|
48
48
|
export declare var ApiRequestBody: StaticStructureSchema;
|
|
49
49
|
export declare var ApiResult: StaticStructureSchema;
|
|
50
50
|
export declare var Attribution: StaticStructureSchema;
|
|
51
|
+
export declare var AudioSegment: StaticStructureSchema;
|
|
51
52
|
export declare var BadGatewayException: StaticErrorSchema;
|
|
52
53
|
export declare var BedrockModelConfigurations: StaticStructureSchema;
|
|
53
54
|
export declare var BedrockRerankingConfiguration: StaticStructureSchema;
|
|
@@ -156,6 +157,7 @@ export declare var InlineAgentTracePart: StaticStructureSchema;
|
|
|
156
157
|
export declare var InlineBedrockModelConfigurations: StaticStructureSchema;
|
|
157
158
|
export declare var InlineSessionState: StaticStructureSchema;
|
|
158
159
|
export declare var InputFile: StaticStructureSchema;
|
|
160
|
+
export declare var InputImage: StaticStructureSchema;
|
|
159
161
|
export declare var InternalServerException: StaticErrorSchema;
|
|
160
162
|
export declare var InvocationInput: StaticStructureSchema;
|
|
161
163
|
export declare var InvocationStep: StaticStructureSchema;
|
|
@@ -303,6 +305,7 @@ export declare var ValidationException: StaticErrorSchema;
|
|
|
303
305
|
export declare var VectorSearchBedrockRerankingConfiguration: StaticStructureSchema;
|
|
304
306
|
export declare var VectorSearchBedrockRerankingModelConfiguration: StaticStructureSchema;
|
|
305
307
|
export declare var VectorSearchRerankingConfiguration: StaticStructureSchema;
|
|
308
|
+
export declare var VideoSegment: StaticStructureSchema;
|
|
306
309
|
export declare var __Unit: "unit";
|
|
307
310
|
export declare var BedrockAgentRuntimeServiceException: StaticErrorSchema;
|
|
308
311
|
export declare var AgentActionGroups: StaticListSchema;
|
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.
|
|
4
|
+
"version": "3.942.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",
|