@aws-sdk/client-bedrock-agent-runtime 3.751.0 → 3.758.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/README.md +119 -7
- package/dist-cjs/index.js +1009 -55
- package/dist-es/BedrockAgentRuntime.js +28 -0
- package/dist-es/commands/CreateInvocationCommand.js +22 -0
- package/dist-es/commands/CreateSessionCommand.js +22 -0
- package/dist-es/commands/DeleteSessionCommand.js +22 -0
- package/dist-es/commands/EndSessionCommand.js +22 -0
- package/dist-es/commands/GetInvocationStepCommand.js +23 -0
- package/dist-es/commands/GetSessionCommand.js +22 -0
- package/dist-es/commands/InvokeAgentCommand.js +2 -1
- package/dist-es/commands/InvokeInlineAgentCommand.js +2 -1
- package/dist-es/commands/ListInvocationStepsCommand.js +22 -0
- package/dist-es/commands/ListInvocationsCommand.js +22 -0
- package/dist-es/commands/ListSessionsCommand.js +22 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
- package/dist-es/commands/PutInvocationStepCommand.js +23 -0
- package/dist-es/commands/RetrieveAndGenerateCommand.js +2 -1
- package/dist-es/commands/RetrieveAndGenerateStreamCommand.js +2 -1
- package/dist-es/commands/RetrieveCommand.js +2 -1
- package/dist-es/commands/TagResourceCommand.js +22 -0
- package/dist-es/commands/UntagResourceCommand.js +22 -0
- package/dist-es/commands/UpdateSessionCommand.js +22 -0
- package/dist-es/commands/index.js +14 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +78 -151
- package/dist-es/models/models_1.js +164 -0
- package/dist-es/pagination/ListInvocationStepsPaginator.js +4 -0
- package/dist-es/pagination/ListInvocationsPaginator.js +4 -0
- package/dist-es/pagination/ListSessionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +574 -11
- package/dist-types/BedrockAgentRuntime.d.ts +100 -0
- package/dist-types/BedrockAgentRuntimeClient.d.ts +16 -2
- package/dist-types/commands/CreateInvocationCommand.d.ts +115 -0
- package/dist-types/commands/CreateSessionCommand.d.ts +133 -0
- package/dist-types/commands/DeleteSessionCommand.d.ts +89 -0
- package/dist-types/commands/EndSessionCommand.d.ts +93 -0
- package/dist-types/commands/GetInvocationStepCommand.d.ts +109 -0
- package/dist-types/commands/GetSessionCommand.d.ts +94 -0
- package/dist-types/commands/InvokeAgentCommand.d.ts +23 -1
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +23 -1
- package/dist-types/commands/ListInvocationStepsCommand.d.ts +97 -0
- package/dist-types/commands/ListInvocationsCommand.d.ts +95 -0
- package/dist-types/commands/ListSessionsCommand.d.ts +93 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +88 -0
- package/dist-types/commands/PutInvocationStepCommand.d.ts +134 -0
- package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +2 -1
- package/dist-types/commands/RetrieveAndGenerateStreamCommand.d.ts +2 -1
- package/dist-types/commands/RetrieveCommand.d.ts +2 -1
- package/dist-types/commands/TagResourceCommand.d.ts +90 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +87 -0
- package/dist-types/commands/UpdateSessionCommand.d.ts +96 -0
- package/dist-types/commands/index.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +582 -635
- package/dist-types/models/models_1.d.ts +919 -0
- package/dist-types/pagination/ListInvocationStepsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListInvocationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
- package/dist-types/ts3.4/BedrockAgentRuntime.d.ts +240 -0
- package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +86 -2
- package/dist-types/ts3.4/commands/CreateInvocationCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/EndSessionCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetInvocationStepCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/InvokeAgentCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/InvokeInlineAgentCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/ListInvocationStepsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListInvocationsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/PutInvocationStepCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/RetrieveAndGenerateCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/RetrieveAndGenerateStreamCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/RetrieveCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateSessionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +262 -365
- package/dist-types/ts3.4/models/models_1.d.ts +416 -0
- package/dist-types/ts3.4/pagination/ListInvocationStepsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListInvocationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
- package/package.json +12 -12
|
@@ -1410,10 +1410,42 @@ export interface Metadata {
|
|
|
1410
1410
|
export interface RawResponse {
|
|
1411
1411
|
content?: string | undefined;
|
|
1412
1412
|
}
|
|
1413
|
+
export interface ReasoningTextBlock {
|
|
1414
|
+
text: string | undefined;
|
|
1415
|
+
signature?: string | undefined;
|
|
1416
|
+
}
|
|
1417
|
+
export type ReasoningContentBlock =
|
|
1418
|
+
| ReasoningContentBlock.ReasoningTextMember
|
|
1419
|
+
| ReasoningContentBlock.RedactedContentMember
|
|
1420
|
+
| ReasoningContentBlock.$UnknownMember;
|
|
1421
|
+
export declare namespace ReasoningContentBlock {
|
|
1422
|
+
interface ReasoningTextMember {
|
|
1423
|
+
reasoningText: ReasoningTextBlock;
|
|
1424
|
+
redactedContent?: never;
|
|
1425
|
+
$unknown?: never;
|
|
1426
|
+
}
|
|
1427
|
+
interface RedactedContentMember {
|
|
1428
|
+
reasoningText?: never;
|
|
1429
|
+
redactedContent: Uint8Array;
|
|
1430
|
+
$unknown?: never;
|
|
1431
|
+
}
|
|
1432
|
+
interface $UnknownMember {
|
|
1433
|
+
reasoningText?: never;
|
|
1434
|
+
redactedContent?: never;
|
|
1435
|
+
$unknown: [string, any];
|
|
1436
|
+
}
|
|
1437
|
+
interface Visitor<T> {
|
|
1438
|
+
reasoningText: (value: ReasoningTextBlock) => T;
|
|
1439
|
+
redactedContent: (value: Uint8Array) => T;
|
|
1440
|
+
_: (name: string, value: any) => T;
|
|
1441
|
+
}
|
|
1442
|
+
const visit: <T>(value: ReasoningContentBlock, visitor: Visitor<T>) => T;
|
|
1443
|
+
}
|
|
1413
1444
|
export interface OrchestrationModelInvocationOutput {
|
|
1414
1445
|
traceId?: string | undefined;
|
|
1415
1446
|
rawResponse?: RawResponse | undefined;
|
|
1416
1447
|
metadata?: Metadata | undefined;
|
|
1448
|
+
reasoningContent?: ReasoningContentBlock | undefined;
|
|
1417
1449
|
}
|
|
1418
1450
|
export interface CodeInterpreterInvocationOutput {
|
|
1419
1451
|
executionOutput?: string | undefined;
|
|
@@ -1536,6 +1568,7 @@ export interface PostProcessingModelInvocationOutput {
|
|
|
1536
1568
|
parsedResponse?: PostProcessingParsedResponse | undefined;
|
|
1537
1569
|
rawResponse?: RawResponse | undefined;
|
|
1538
1570
|
metadata?: Metadata | undefined;
|
|
1571
|
+
reasoningContent?: ReasoningContentBlock | undefined;
|
|
1539
1572
|
}
|
|
1540
1573
|
export type PostProcessingTrace =
|
|
1541
1574
|
| PostProcessingTrace.ModelInvocationInputMember
|
|
@@ -1573,6 +1606,7 @@ export interface PreProcessingModelInvocationOutput {
|
|
|
1573
1606
|
parsedResponse?: PreProcessingParsedResponse | undefined;
|
|
1574
1607
|
rawResponse?: RawResponse | undefined;
|
|
1575
1608
|
metadata?: Metadata | undefined;
|
|
1609
|
+
reasoningContent?: ReasoningContentBlock | undefined;
|
|
1576
1610
|
}
|
|
1577
1611
|
export type PreProcessingTrace =
|
|
1578
1612
|
| PreProcessingTrace.ModelInvocationInputMember
|
|
@@ -3017,361 +3051,240 @@ export interface RetrieveResponse {
|
|
|
3017
3051
|
guardrailAction?: GuadrailAction | undefined;
|
|
3018
3052
|
nextToken?: string | undefined;
|
|
3019
3053
|
}
|
|
3020
|
-
export
|
|
3021
|
-
|
|
|
3022
|
-
|
|
|
3023
|
-
|
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
|
3033
|
-
|
|
|
3034
|
-
|
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
orAll?: never;
|
|
3114
|
-
$unknown?: never;
|
|
3115
|
-
}
|
|
3116
|
-
interface LessThanOrEqualsMember {
|
|
3117
|
-
equals?: never;
|
|
3118
|
-
notEquals?: never;
|
|
3119
|
-
greaterThan?: never;
|
|
3120
|
-
greaterThanOrEquals?: never;
|
|
3121
|
-
lessThan?: never;
|
|
3122
|
-
lessThanOrEquals: FilterAttribute;
|
|
3123
|
-
in?: never;
|
|
3124
|
-
notIn?: never;
|
|
3125
|
-
startsWith?: never;
|
|
3126
|
-
listContains?: never;
|
|
3127
|
-
stringContains?: never;
|
|
3128
|
-
andAll?: never;
|
|
3129
|
-
orAll?: never;
|
|
3130
|
-
$unknown?: never;
|
|
3131
|
-
}
|
|
3132
|
-
interface InMember {
|
|
3133
|
-
equals?: never;
|
|
3134
|
-
notEquals?: never;
|
|
3135
|
-
greaterThan?: never;
|
|
3136
|
-
greaterThanOrEquals?: never;
|
|
3137
|
-
lessThan?: never;
|
|
3138
|
-
lessThanOrEquals?: never;
|
|
3139
|
-
in: FilterAttribute;
|
|
3140
|
-
notIn?: never;
|
|
3141
|
-
startsWith?: never;
|
|
3142
|
-
listContains?: never;
|
|
3143
|
-
stringContains?: never;
|
|
3144
|
-
andAll?: never;
|
|
3145
|
-
orAll?: never;
|
|
3146
|
-
$unknown?: never;
|
|
3147
|
-
}
|
|
3148
|
-
interface NotInMember {
|
|
3149
|
-
equals?: never;
|
|
3150
|
-
notEquals?: never;
|
|
3151
|
-
greaterThan?: never;
|
|
3152
|
-
greaterThanOrEquals?: never;
|
|
3153
|
-
lessThan?: never;
|
|
3154
|
-
lessThanOrEquals?: never;
|
|
3155
|
-
in?: never;
|
|
3156
|
-
notIn: FilterAttribute;
|
|
3157
|
-
startsWith?: never;
|
|
3158
|
-
listContains?: never;
|
|
3159
|
-
stringContains?: never;
|
|
3160
|
-
andAll?: never;
|
|
3161
|
-
orAll?: never;
|
|
3162
|
-
$unknown?: never;
|
|
3163
|
-
}
|
|
3164
|
-
interface StartsWithMember {
|
|
3165
|
-
equals?: never;
|
|
3166
|
-
notEquals?: never;
|
|
3167
|
-
greaterThan?: never;
|
|
3168
|
-
greaterThanOrEquals?: never;
|
|
3169
|
-
lessThan?: never;
|
|
3170
|
-
lessThanOrEquals?: never;
|
|
3171
|
-
in?: never;
|
|
3172
|
-
notIn?: never;
|
|
3173
|
-
startsWith: FilterAttribute;
|
|
3174
|
-
listContains?: never;
|
|
3175
|
-
stringContains?: never;
|
|
3176
|
-
andAll?: never;
|
|
3177
|
-
orAll?: never;
|
|
3178
|
-
$unknown?: never;
|
|
3179
|
-
}
|
|
3180
|
-
interface ListContainsMember {
|
|
3181
|
-
equals?: never;
|
|
3182
|
-
notEquals?: never;
|
|
3183
|
-
greaterThan?: never;
|
|
3184
|
-
greaterThanOrEquals?: never;
|
|
3185
|
-
lessThan?: never;
|
|
3186
|
-
lessThanOrEquals?: never;
|
|
3187
|
-
in?: never;
|
|
3188
|
-
notIn?: never;
|
|
3189
|
-
startsWith?: never;
|
|
3190
|
-
listContains: FilterAttribute;
|
|
3191
|
-
stringContains?: never;
|
|
3192
|
-
andAll?: never;
|
|
3193
|
-
orAll?: never;
|
|
3194
|
-
$unknown?: never;
|
|
3195
|
-
}
|
|
3196
|
-
interface StringContainsMember {
|
|
3197
|
-
equals?: never;
|
|
3198
|
-
notEquals?: never;
|
|
3199
|
-
greaterThan?: never;
|
|
3200
|
-
greaterThanOrEquals?: never;
|
|
3201
|
-
lessThan?: never;
|
|
3202
|
-
lessThanOrEquals?: never;
|
|
3203
|
-
in?: never;
|
|
3204
|
-
notIn?: never;
|
|
3205
|
-
startsWith?: never;
|
|
3206
|
-
listContains?: never;
|
|
3207
|
-
stringContains: FilterAttribute;
|
|
3208
|
-
andAll?: never;
|
|
3209
|
-
orAll?: never;
|
|
3210
|
-
$unknown?: never;
|
|
3211
|
-
}
|
|
3212
|
-
interface AndAllMember {
|
|
3213
|
-
equals?: never;
|
|
3214
|
-
notEquals?: never;
|
|
3215
|
-
greaterThan?: never;
|
|
3216
|
-
greaterThanOrEquals?: never;
|
|
3217
|
-
lessThan?: never;
|
|
3218
|
-
lessThanOrEquals?: never;
|
|
3219
|
-
in?: never;
|
|
3220
|
-
notIn?: never;
|
|
3221
|
-
startsWith?: never;
|
|
3222
|
-
listContains?: never;
|
|
3223
|
-
stringContains?: never;
|
|
3224
|
-
andAll: RetrievalFilter[];
|
|
3225
|
-
orAll?: never;
|
|
3226
|
-
$unknown?: never;
|
|
3227
|
-
}
|
|
3228
|
-
interface OrAllMember {
|
|
3229
|
-
equals?: never;
|
|
3230
|
-
notEquals?: never;
|
|
3231
|
-
greaterThan?: never;
|
|
3232
|
-
greaterThanOrEquals?: never;
|
|
3233
|
-
lessThan?: never;
|
|
3234
|
-
lessThanOrEquals?: never;
|
|
3235
|
-
in?: never;
|
|
3236
|
-
notIn?: never;
|
|
3237
|
-
startsWith?: never;
|
|
3238
|
-
listContains?: never;
|
|
3239
|
-
stringContains?: never;
|
|
3240
|
-
andAll?: never;
|
|
3241
|
-
orAll: RetrievalFilter[];
|
|
3054
|
+
export interface CreateSessionRequest {
|
|
3055
|
+
sessionMetadata?: Record<string, string> | undefined;
|
|
3056
|
+
encryptionKeyArn?: string | undefined;
|
|
3057
|
+
tags?: Record<string, string> | undefined;
|
|
3058
|
+
}
|
|
3059
|
+
export declare const SessionStatus: {
|
|
3060
|
+
readonly ACTIVE: "ACTIVE";
|
|
3061
|
+
readonly ENDED: "ENDED";
|
|
3062
|
+
readonly EXPIRED: "EXPIRED";
|
|
3063
|
+
};
|
|
3064
|
+
export type SessionStatus = (typeof SessionStatus)[keyof typeof SessionStatus];
|
|
3065
|
+
export interface CreateSessionResponse {
|
|
3066
|
+
sessionId: string | undefined;
|
|
3067
|
+
sessionArn: string | undefined;
|
|
3068
|
+
sessionStatus: SessionStatus | undefined;
|
|
3069
|
+
createdAt: Date | undefined;
|
|
3070
|
+
}
|
|
3071
|
+
export interface DeleteSessionRequest {
|
|
3072
|
+
sessionIdentifier: string | undefined;
|
|
3073
|
+
}
|
|
3074
|
+
export interface DeleteSessionResponse {}
|
|
3075
|
+
export interface EndSessionRequest {
|
|
3076
|
+
sessionIdentifier: string | undefined;
|
|
3077
|
+
}
|
|
3078
|
+
export interface EndSessionResponse {
|
|
3079
|
+
sessionId: string | undefined;
|
|
3080
|
+
sessionArn: string | undefined;
|
|
3081
|
+
sessionStatus: SessionStatus | undefined;
|
|
3082
|
+
}
|
|
3083
|
+
export interface GetSessionRequest {
|
|
3084
|
+
sessionIdentifier: string | undefined;
|
|
3085
|
+
}
|
|
3086
|
+
export interface GetSessionResponse {
|
|
3087
|
+
sessionId: string | undefined;
|
|
3088
|
+
sessionArn: string | undefined;
|
|
3089
|
+
sessionStatus: SessionStatus | undefined;
|
|
3090
|
+
createdAt: Date | undefined;
|
|
3091
|
+
lastUpdatedAt: Date | undefined;
|
|
3092
|
+
sessionMetadata?: Record<string, string> | undefined;
|
|
3093
|
+
encryptionKeyArn?: string | undefined;
|
|
3094
|
+
}
|
|
3095
|
+
export interface CreateInvocationRequest {
|
|
3096
|
+
invocationId?: string | undefined;
|
|
3097
|
+
description?: string | undefined;
|
|
3098
|
+
sessionIdentifier: string | undefined;
|
|
3099
|
+
}
|
|
3100
|
+
export interface CreateInvocationResponse {
|
|
3101
|
+
sessionId: string | undefined;
|
|
3102
|
+
invocationId: string | undefined;
|
|
3103
|
+
createdAt: Date | undefined;
|
|
3104
|
+
}
|
|
3105
|
+
export interface ListInvocationsRequest {
|
|
3106
|
+
nextToken?: string | undefined;
|
|
3107
|
+
maxResults?: number | undefined;
|
|
3108
|
+
sessionIdentifier: string | undefined;
|
|
3109
|
+
}
|
|
3110
|
+
export interface InvocationSummary {
|
|
3111
|
+
sessionId: string | undefined;
|
|
3112
|
+
invocationId: string | undefined;
|
|
3113
|
+
createdAt: Date | undefined;
|
|
3114
|
+
}
|
|
3115
|
+
export interface ListInvocationsResponse {
|
|
3116
|
+
invocationSummaries: InvocationSummary[] | undefined;
|
|
3117
|
+
nextToken?: string | undefined;
|
|
3118
|
+
}
|
|
3119
|
+
export interface GetInvocationStepRequest {
|
|
3120
|
+
invocationIdentifier: string | undefined;
|
|
3121
|
+
invocationStepId: string | undefined;
|
|
3122
|
+
sessionIdentifier: string | undefined;
|
|
3123
|
+
}
|
|
3124
|
+
export declare const ImageFormat: {
|
|
3125
|
+
readonly GIF: "gif";
|
|
3126
|
+
readonly JPEG: "jpeg";
|
|
3127
|
+
readonly PNG: "png";
|
|
3128
|
+
readonly WEBP: "webp";
|
|
3129
|
+
};
|
|
3130
|
+
export type ImageFormat = (typeof ImageFormat)[keyof typeof ImageFormat];
|
|
3131
|
+
export interface S3Location {
|
|
3132
|
+
uri: string | undefined;
|
|
3133
|
+
}
|
|
3134
|
+
export type ImageSource =
|
|
3135
|
+
| ImageSource.BytesMember
|
|
3136
|
+
| ImageSource.S3LocationMember
|
|
3137
|
+
| ImageSource.$UnknownMember;
|
|
3138
|
+
export declare namespace ImageSource {
|
|
3139
|
+
interface BytesMember {
|
|
3140
|
+
bytes: Uint8Array;
|
|
3141
|
+
s3Location?: never;
|
|
3142
|
+
$unknown?: never;
|
|
3143
|
+
}
|
|
3144
|
+
interface S3LocationMember {
|
|
3145
|
+
bytes?: never;
|
|
3146
|
+
s3Location: S3Location;
|
|
3242
3147
|
$unknown?: never;
|
|
3243
3148
|
}
|
|
3244
3149
|
interface $UnknownMember {
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
greaterThan?: never;
|
|
3248
|
-
greaterThanOrEquals?: never;
|
|
3249
|
-
lessThan?: never;
|
|
3250
|
-
lessThanOrEquals?: never;
|
|
3251
|
-
in?: never;
|
|
3252
|
-
notIn?: never;
|
|
3253
|
-
startsWith?: never;
|
|
3254
|
-
listContains?: never;
|
|
3255
|
-
stringContains?: never;
|
|
3256
|
-
andAll?: never;
|
|
3257
|
-
orAll?: never;
|
|
3150
|
+
bytes?: never;
|
|
3151
|
+
s3Location?: never;
|
|
3258
3152
|
$unknown: [string, any];
|
|
3259
3153
|
}
|
|
3260
3154
|
interface Visitor<T> {
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
greaterThan: (value: FilterAttribute) => T;
|
|
3264
|
-
greaterThanOrEquals: (value: FilterAttribute) => T;
|
|
3265
|
-
lessThan: (value: FilterAttribute) => T;
|
|
3266
|
-
lessThanOrEquals: (value: FilterAttribute) => T;
|
|
3267
|
-
in: (value: FilterAttribute) => T;
|
|
3268
|
-
notIn: (value: FilterAttribute) => T;
|
|
3269
|
-
startsWith: (value: FilterAttribute) => T;
|
|
3270
|
-
listContains: (value: FilterAttribute) => T;
|
|
3271
|
-
stringContains: (value: FilterAttribute) => T;
|
|
3272
|
-
andAll: (value: RetrievalFilter[]) => T;
|
|
3273
|
-
orAll: (value: RetrievalFilter[]) => T;
|
|
3155
|
+
bytes: (value: Uint8Array) => T;
|
|
3156
|
+
s3Location: (value: S3Location) => T;
|
|
3274
3157
|
_: (name: string, value: any) => T;
|
|
3275
3158
|
}
|
|
3276
|
-
const visit: <T>(value:
|
|
3159
|
+
const visit: <T>(value: ImageSource, visitor: Visitor<T>) => T;
|
|
3277
3160
|
}
|
|
3278
|
-
export interface
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3161
|
+
export interface ImageBlock {
|
|
3162
|
+
format: ImageFormat | undefined;
|
|
3163
|
+
source: ImageSource | undefined;
|
|
3164
|
+
}
|
|
3165
|
+
export type BedrockSessionContentBlock =
|
|
3166
|
+
| BedrockSessionContentBlock.ImageMember
|
|
3167
|
+
| BedrockSessionContentBlock.TextMember
|
|
3168
|
+
| BedrockSessionContentBlock.$UnknownMember;
|
|
3169
|
+
export declare namespace BedrockSessionContentBlock {
|
|
3170
|
+
interface TextMember {
|
|
3171
|
+
text: string;
|
|
3172
|
+
image?: never;
|
|
3173
|
+
$unknown?: never;
|
|
3174
|
+
}
|
|
3175
|
+
interface ImageMember {
|
|
3176
|
+
text?: never;
|
|
3177
|
+
image: ImageBlock;
|
|
3178
|
+
$unknown?: never;
|
|
3179
|
+
}
|
|
3180
|
+
interface $UnknownMember {
|
|
3181
|
+
text?: never;
|
|
3182
|
+
image?: never;
|
|
3183
|
+
$unknown: [string, any];
|
|
3184
|
+
}
|
|
3185
|
+
interface Visitor<T> {
|
|
3186
|
+
text: (value: string) => T;
|
|
3187
|
+
image: (value: ImageBlock) => T;
|
|
3188
|
+
_: (name: string, value: any) => T;
|
|
3189
|
+
}
|
|
3190
|
+
const visit: <T>(value: BedrockSessionContentBlock, visitor: Visitor<T>) => T;
|
|
3284
3191
|
}
|
|
3285
|
-
export
|
|
3286
|
-
|
|
3192
|
+
export type InvocationStepPayload =
|
|
3193
|
+
| InvocationStepPayload.ContentBlocksMember
|
|
3194
|
+
| InvocationStepPayload.$UnknownMember;
|
|
3195
|
+
export declare namespace InvocationStepPayload {
|
|
3196
|
+
interface ContentBlocksMember {
|
|
3197
|
+
contentBlocks: BedrockSessionContentBlock[];
|
|
3198
|
+
$unknown?: never;
|
|
3199
|
+
}
|
|
3200
|
+
interface $UnknownMember {
|
|
3201
|
+
contentBlocks?: never;
|
|
3202
|
+
$unknown: [string, any];
|
|
3203
|
+
}
|
|
3204
|
+
interface Visitor<T> {
|
|
3205
|
+
contentBlocks: (value: BedrockSessionContentBlock[]) => T;
|
|
3206
|
+
_: (name: string, value: any) => T;
|
|
3207
|
+
}
|
|
3208
|
+
const visit: <T>(value: InvocationStepPayload, visitor: Visitor<T>) => T;
|
|
3287
3209
|
}
|
|
3288
|
-
export interface
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3210
|
+
export interface InvocationStep {
|
|
3211
|
+
sessionId: string | undefined;
|
|
3212
|
+
invocationId: string | undefined;
|
|
3213
|
+
invocationStepId: string | undefined;
|
|
3214
|
+
invocationStepTime: Date | undefined;
|
|
3215
|
+
payload: InvocationStepPayload | undefined;
|
|
3292
3216
|
}
|
|
3293
|
-
export interface
|
|
3294
|
-
|
|
3295
|
-
retrievalConfiguration: KnowledgeBaseRetrievalConfiguration | undefined;
|
|
3217
|
+
export interface GetInvocationStepResponse {
|
|
3218
|
+
invocationStep: InvocationStep | undefined;
|
|
3296
3219
|
}
|
|
3297
|
-
export interface
|
|
3298
|
-
|
|
3299
|
-
modelArn: string | undefined;
|
|
3300
|
-
retrievalConfiguration?: KnowledgeBaseRetrievalConfiguration | undefined;
|
|
3301
|
-
generationConfiguration?: GenerationConfiguration | undefined;
|
|
3302
|
-
orchestrationConfiguration?: OrchestrationConfiguration | undefined;
|
|
3303
|
-
}
|
|
3304
|
-
export interface RetrieveRequest {
|
|
3305
|
-
knowledgeBaseId: string | undefined;
|
|
3306
|
-
retrievalQuery: KnowledgeBaseQuery | undefined;
|
|
3307
|
-
retrievalConfiguration?: KnowledgeBaseRetrievalConfiguration | undefined;
|
|
3308
|
-
guardrailConfiguration?: GuardrailConfiguration | undefined;
|
|
3220
|
+
export interface ListInvocationStepsRequest {
|
|
3221
|
+
invocationIdentifier?: string | undefined;
|
|
3309
3222
|
nextToken?: string | undefined;
|
|
3223
|
+
maxResults?: number | undefined;
|
|
3224
|
+
sessionIdentifier: string | undefined;
|
|
3310
3225
|
}
|
|
3311
|
-
export interface
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3226
|
+
export interface InvocationStepSummary {
|
|
3227
|
+
sessionId: string | undefined;
|
|
3228
|
+
invocationId: string | undefined;
|
|
3229
|
+
invocationStepId: string | undefined;
|
|
3230
|
+
invocationStepTime: Date | undefined;
|
|
3231
|
+
}
|
|
3232
|
+
export interface ListInvocationStepsResponse {
|
|
3233
|
+
invocationStepSummaries: InvocationStepSummary[] | undefined;
|
|
3234
|
+
nextToken?: string | undefined;
|
|
3319
3235
|
}
|
|
3320
|
-
export interface
|
|
3236
|
+
export interface PutInvocationStepRequest {
|
|
3237
|
+
sessionIdentifier: string | undefined;
|
|
3238
|
+
invocationIdentifier: string | undefined;
|
|
3239
|
+
invocationStepTime: Date | undefined;
|
|
3240
|
+
payload: InvocationStepPayload | undefined;
|
|
3241
|
+
invocationStepId?: string | undefined;
|
|
3242
|
+
}
|
|
3243
|
+
export interface PutInvocationStepResponse {
|
|
3244
|
+
invocationStepId: string | undefined;
|
|
3245
|
+
}
|
|
3246
|
+
export interface ListSessionsRequest {
|
|
3247
|
+
maxResults?: number | undefined;
|
|
3248
|
+
nextToken?: string | undefined;
|
|
3249
|
+
}
|
|
3250
|
+
export interface SessionSummary {
|
|
3321
3251
|
sessionId: string | undefined;
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
inlineSessionState?: InlineSessionState | undefined;
|
|
3327
|
-
foundationModel: string | undefined;
|
|
3328
|
-
instruction: string | undefined;
|
|
3329
|
-
idleSessionTTLInSeconds?: number | undefined;
|
|
3330
|
-
actionGroups?: AgentActionGroup[] | undefined;
|
|
3331
|
-
knowledgeBases?: KnowledgeBase[] | undefined;
|
|
3332
|
-
guardrailConfiguration?: GuardrailConfigurationWithArn | undefined;
|
|
3333
|
-
promptOverrideConfiguration?: PromptOverrideConfiguration | undefined;
|
|
3334
|
-
bedrockModelConfigurations?: InlineBedrockModelConfigurations | undefined;
|
|
3335
|
-
streamingConfigurations?: StreamingConfigurations | undefined;
|
|
3336
|
-
}
|
|
3337
|
-
export interface RetrieveAndGenerateRequest {
|
|
3338
|
-
sessionId?: string | undefined;
|
|
3339
|
-
input: RetrieveAndGenerateInput | undefined;
|
|
3340
|
-
retrieveAndGenerateConfiguration?:
|
|
3341
|
-
| RetrieveAndGenerateConfiguration
|
|
3342
|
-
| undefined;
|
|
3343
|
-
sessionConfiguration?: RetrieveAndGenerateSessionConfiguration | undefined;
|
|
3252
|
+
sessionArn: string | undefined;
|
|
3253
|
+
sessionStatus: SessionStatus | undefined;
|
|
3254
|
+
createdAt: Date | undefined;
|
|
3255
|
+
lastUpdatedAt: Date | undefined;
|
|
3344
3256
|
}
|
|
3345
|
-
export interface
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
retrieveAndGenerateConfiguration?:
|
|
3349
|
-
| RetrieveAndGenerateConfiguration
|
|
3350
|
-
| undefined;
|
|
3351
|
-
sessionConfiguration?: RetrieveAndGenerateSessionConfiguration | undefined;
|
|
3257
|
+
export interface ListSessionsResponse {
|
|
3258
|
+
sessionSummaries: SessionSummary[] | undefined;
|
|
3259
|
+
nextToken?: string | undefined;
|
|
3352
3260
|
}
|
|
3353
|
-
export interface
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
returnControlInvocationResults?: InvocationResultMember[] | undefined;
|
|
3357
|
-
invocationId?: string | undefined;
|
|
3358
|
-
files?: InputFile[] | undefined;
|
|
3359
|
-
knowledgeBaseConfigurations?: KnowledgeBaseConfiguration[] | undefined;
|
|
3360
|
-
conversationHistory?: ConversationHistory | undefined;
|
|
3261
|
+
export interface UpdateSessionRequest {
|
|
3262
|
+
sessionMetadata?: Record<string, string> | undefined;
|
|
3263
|
+
sessionIdentifier: string | undefined;
|
|
3361
3264
|
}
|
|
3362
|
-
export interface
|
|
3363
|
-
sessionState?: SessionState | undefined;
|
|
3364
|
-
agentId: string | undefined;
|
|
3365
|
-
agentAliasId: string | undefined;
|
|
3265
|
+
export interface UpdateSessionResponse {
|
|
3366
3266
|
sessionId: string | undefined;
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
bedrockModelConfigurations?: BedrockModelConfigurations | undefined;
|
|
3372
|
-
streamingConfigurations?: StreamingConfigurations | undefined;
|
|
3373
|
-
sourceArn?: string | undefined;
|
|
3267
|
+
sessionArn: string | undefined;
|
|
3268
|
+
sessionStatus: SessionStatus | undefined;
|
|
3269
|
+
createdAt: Date | undefined;
|
|
3270
|
+
lastUpdatedAt: Date | undefined;
|
|
3374
3271
|
}
|
|
3272
|
+
export interface ListTagsForResourceRequest {
|
|
3273
|
+
resourceArn: string | undefined;
|
|
3274
|
+
}
|
|
3275
|
+
export interface ListTagsForResourceResponse {
|
|
3276
|
+
tags?: Record<string, string> | undefined;
|
|
3277
|
+
}
|
|
3278
|
+
export interface TagResourceRequest {
|
|
3279
|
+
resourceArn: string | undefined;
|
|
3280
|
+
tags: Record<string, string> | undefined;
|
|
3281
|
+
}
|
|
3282
|
+
export interface TagResourceResponse {}
|
|
3283
|
+
export interface UntagResourceRequest {
|
|
3284
|
+
resourceArn: string | undefined;
|
|
3285
|
+
tagKeys: string[] | undefined;
|
|
3286
|
+
}
|
|
3287
|
+
export interface UntagResourceResponse {}
|
|
3375
3288
|
export declare const ActionGroupInvocationInputFilterSensitiveLog: (
|
|
3376
3289
|
obj: ActionGroupInvocationInput
|
|
3377
3290
|
) => any;
|
|
@@ -3584,6 +3497,12 @@ export declare const ModelInvocationInputFilterSensitiveLog: (
|
|
|
3584
3497
|
export declare const UsageFilterSensitiveLog: (obj: Usage) => any;
|
|
3585
3498
|
export declare const MetadataFilterSensitiveLog: (obj: Metadata) => any;
|
|
3586
3499
|
export declare const RawResponseFilterSensitiveLog: (obj: RawResponse) => any;
|
|
3500
|
+
export declare const ReasoningTextBlockFilterSensitiveLog: (
|
|
3501
|
+
obj: ReasoningTextBlock
|
|
3502
|
+
) => any;
|
|
3503
|
+
export declare const ReasoningContentBlockFilterSensitiveLog: (
|
|
3504
|
+
obj: ReasoningContentBlock
|
|
3505
|
+
) => any;
|
|
3587
3506
|
export declare const OrchestrationModelInvocationOutputFilterSensitiveLog: (
|
|
3588
3507
|
obj: OrchestrationModelInvocationOutput
|
|
3589
3508
|
) => any;
|
|
@@ -3746,40 +3665,18 @@ export declare const KnowledgeBaseRetrievalResultFilterSensitiveLog: (
|
|
|
3746
3665
|
export declare const RetrieveResponseFilterSensitiveLog: (
|
|
3747
3666
|
obj: RetrieveResponse
|
|
3748
3667
|
) => any;
|
|
3749
|
-
export declare const
|
|
3750
|
-
obj:
|
|
3751
|
-
) => any;
|
|
3752
|
-
export declare const KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog: (
|
|
3753
|
-
obj: KnowledgeBaseVectorSearchConfiguration
|
|
3754
|
-
) => any;
|
|
3755
|
-
export declare const KnowledgeBaseRetrievalConfigurationFilterSensitiveLog: (
|
|
3756
|
-
obj: KnowledgeBaseRetrievalConfiguration
|
|
3757
|
-
) => any;
|
|
3758
|
-
export declare const KnowledgeBaseFilterSensitiveLog: (
|
|
3759
|
-
obj: KnowledgeBase
|
|
3760
|
-
) => any;
|
|
3761
|
-
export declare const KnowledgeBaseConfigurationFilterSensitiveLog: (
|
|
3762
|
-
obj: KnowledgeBaseConfiguration
|
|
3763
|
-
) => any;
|
|
3764
|
-
export declare const KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog: (
|
|
3765
|
-
obj: KnowledgeBaseRetrieveAndGenerateConfiguration
|
|
3766
|
-
) => any;
|
|
3767
|
-
export declare const RetrieveRequestFilterSensitiveLog: (
|
|
3768
|
-
obj: RetrieveRequest
|
|
3769
|
-
) => any;
|
|
3770
|
-
export declare const RetrieveAndGenerateConfigurationFilterSensitiveLog: (
|
|
3771
|
-
obj: RetrieveAndGenerateConfiguration
|
|
3668
|
+
export declare const BedrockSessionContentBlockFilterSensitiveLog: (
|
|
3669
|
+
obj: BedrockSessionContentBlock
|
|
3772
3670
|
) => any;
|
|
3773
|
-
export declare const
|
|
3774
|
-
obj:
|
|
3671
|
+
export declare const InvocationStepPayloadFilterSensitiveLog: (
|
|
3672
|
+
obj: InvocationStepPayload
|
|
3775
3673
|
) => any;
|
|
3776
|
-
export declare const
|
|
3777
|
-
obj:
|
|
3674
|
+
export declare const InvocationStepFilterSensitiveLog: (
|
|
3675
|
+
obj: InvocationStep
|
|
3778
3676
|
) => any;
|
|
3779
|
-
export declare const
|
|
3780
|
-
obj:
|
|
3677
|
+
export declare const GetInvocationStepResponseFilterSensitiveLog: (
|
|
3678
|
+
obj: GetInvocationStepResponse
|
|
3781
3679
|
) => any;
|
|
3782
|
-
export declare const
|
|
3783
|
-
|
|
3784
|
-
obj: InvokeAgentRequest
|
|
3680
|
+
export declare const PutInvocationStepRequestFilterSensitiveLog: (
|
|
3681
|
+
obj: PutInvocationStepRequest
|
|
3785
3682
|
) => any;
|