@aws-sdk/client-bedrock-agent-runtime 3.755.0 → 3.764.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 +1035 -78
- 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 +76 -156
- package/dist-es/models/models_1.js +181 -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 +560 -8
- 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 +3 -1
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +216 -64
- 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 +91 -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 +605 -684
- package/dist-types/models/models_1.d.ts +1055 -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 +48 -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 +250 -374
- package/dist-types/ts3.4/models/models_1.d.ts +441 -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
|
@@ -161,6 +161,13 @@ export interface AgentActionGroup {
|
|
|
161
161
|
apiSchema?: APISchema | undefined;
|
|
162
162
|
functionSchema?: FunctionSchema | undefined;
|
|
163
163
|
}
|
|
164
|
+
export declare const AgentCollaboration: {
|
|
165
|
+
readonly DISABLED: "DISABLED";
|
|
166
|
+
readonly SUPERVISOR: "SUPERVISOR";
|
|
167
|
+
readonly SUPERVISOR_ROUTER: "SUPERVISOR_ROUTER";
|
|
168
|
+
};
|
|
169
|
+
export type AgentCollaboration =
|
|
170
|
+
(typeof AgentCollaboration)[keyof typeof AgentCollaboration];
|
|
164
171
|
export declare const ConfirmationState: {
|
|
165
172
|
readonly CONFIRM: "CONFIRM";
|
|
166
173
|
readonly DENY: "DENY";
|
|
@@ -1800,6 +1807,7 @@ export interface TracePart {
|
|
|
1800
1807
|
agentAliasId?: string | undefined;
|
|
1801
1808
|
agentVersion?: string | undefined;
|
|
1802
1809
|
callerChain?: Caller[] | undefined;
|
|
1810
|
+
eventTime?: Date | undefined;
|
|
1803
1811
|
collaboratorName?: string | undefined;
|
|
1804
1812
|
}
|
|
1805
1813
|
export type ResponseStream =
|
|
@@ -2102,17 +2110,22 @@ export interface InvokeAgentResponse {
|
|
|
2102
2110
|
export interface InlineBedrockModelConfigurations {
|
|
2103
2111
|
performanceConfig?: PerformanceConfiguration | undefined;
|
|
2104
2112
|
}
|
|
2113
|
+
export declare const RelayConversationHistory: {
|
|
2114
|
+
readonly DISABLED: "DISABLED";
|
|
2115
|
+
readonly TO_COLLABORATOR: "TO_COLLABORATOR";
|
|
2116
|
+
};
|
|
2117
|
+
export type RelayConversationHistory =
|
|
2118
|
+
(typeof RelayConversationHistory)[keyof typeof RelayConversationHistory];
|
|
2119
|
+
export interface CollaboratorConfiguration {
|
|
2120
|
+
collaboratorName: string | undefined;
|
|
2121
|
+
collaboratorInstruction: string | undefined;
|
|
2122
|
+
agentAliasArn?: string | undefined;
|
|
2123
|
+
relayConversationHistory?: RelayConversationHistory | undefined;
|
|
2124
|
+
}
|
|
2105
2125
|
export interface GuardrailConfigurationWithArn {
|
|
2106
2126
|
guardrailIdentifier: string | undefined;
|
|
2107
2127
|
guardrailVersion: string | undefined;
|
|
2108
2128
|
}
|
|
2109
|
-
export interface InlineSessionState {
|
|
2110
|
-
sessionAttributes?: Record<string, string> | undefined;
|
|
2111
|
-
promptSessionAttributes?: Record<string, string> | undefined;
|
|
2112
|
-
returnControlInvocationResults?: InvocationResultMember[] | undefined;
|
|
2113
|
-
invocationId?: string | undefined;
|
|
2114
|
-
files?: InputFile[] | undefined;
|
|
2115
|
-
}
|
|
2116
2129
|
export declare const PromptState: {
|
|
2117
2130
|
readonly DISABLED: "DISABLED";
|
|
2118
2131
|
readonly ENABLED: "ENABLED";
|
|
@@ -2125,12 +2138,21 @@ export interface PromptConfiguration {
|
|
|
2125
2138
|
basePromptTemplate?: string | undefined;
|
|
2126
2139
|
inferenceConfiguration?: InferenceConfiguration | undefined;
|
|
2127
2140
|
parserMode?: CreationMode | undefined;
|
|
2141
|
+
foundationModel?: string | undefined;
|
|
2128
2142
|
additionalModelRequestFields?: __DocumentType | undefined;
|
|
2129
2143
|
}
|
|
2130
2144
|
export interface PromptOverrideConfiguration {
|
|
2131
2145
|
promptConfigurations: PromptConfiguration[] | undefined;
|
|
2132
2146
|
overrideLambda?: string | undefined;
|
|
2133
2147
|
}
|
|
2148
|
+
export interface InlineSessionState {
|
|
2149
|
+
sessionAttributes?: Record<string, string> | undefined;
|
|
2150
|
+
promptSessionAttributes?: Record<string, string> | undefined;
|
|
2151
|
+
returnControlInvocationResults?: InvocationResultMember[] | undefined;
|
|
2152
|
+
invocationId?: string | undefined;
|
|
2153
|
+
files?: InputFile[] | undefined;
|
|
2154
|
+
conversationHistory?: ConversationHistory | undefined;
|
|
2155
|
+
}
|
|
2134
2156
|
export interface InlineAgentPayloadPart {
|
|
2135
2157
|
bytes?: Uint8Array | undefined;
|
|
2136
2158
|
attribution?: Attribution | undefined;
|
|
@@ -3051,360 +3073,233 @@ export interface RetrieveResponse {
|
|
|
3051
3073
|
guardrailAction?: GuadrailAction | undefined;
|
|
3052
3074
|
nextToken?: string | undefined;
|
|
3053
3075
|
}
|
|
3054
|
-
export
|
|
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
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
orAll?: never;
|
|
3148
|
-
$unknown?: never;
|
|
3149
|
-
}
|
|
3150
|
-
interface LessThanOrEqualsMember {
|
|
3151
|
-
equals?: never;
|
|
3152
|
-
notEquals?: never;
|
|
3153
|
-
greaterThan?: never;
|
|
3154
|
-
greaterThanOrEquals?: never;
|
|
3155
|
-
lessThan?: never;
|
|
3156
|
-
lessThanOrEquals: FilterAttribute;
|
|
3157
|
-
in?: never;
|
|
3158
|
-
notIn?: never;
|
|
3159
|
-
startsWith?: never;
|
|
3160
|
-
listContains?: never;
|
|
3161
|
-
stringContains?: never;
|
|
3162
|
-
andAll?: never;
|
|
3163
|
-
orAll?: never;
|
|
3164
|
-
$unknown?: never;
|
|
3165
|
-
}
|
|
3166
|
-
interface InMember {
|
|
3167
|
-
equals?: never;
|
|
3168
|
-
notEquals?: never;
|
|
3169
|
-
greaterThan?: never;
|
|
3170
|
-
greaterThanOrEquals?: never;
|
|
3171
|
-
lessThan?: never;
|
|
3172
|
-
lessThanOrEquals?: never;
|
|
3173
|
-
in: FilterAttribute;
|
|
3174
|
-
notIn?: never;
|
|
3175
|
-
startsWith?: never;
|
|
3176
|
-
listContains?: never;
|
|
3177
|
-
stringContains?: never;
|
|
3178
|
-
andAll?: never;
|
|
3179
|
-
orAll?: never;
|
|
3180
|
-
$unknown?: never;
|
|
3181
|
-
}
|
|
3182
|
-
interface NotInMember {
|
|
3183
|
-
equals?: never;
|
|
3184
|
-
notEquals?: never;
|
|
3185
|
-
greaterThan?: never;
|
|
3186
|
-
greaterThanOrEquals?: never;
|
|
3187
|
-
lessThan?: never;
|
|
3188
|
-
lessThanOrEquals?: never;
|
|
3189
|
-
in?: never;
|
|
3190
|
-
notIn: FilterAttribute;
|
|
3191
|
-
startsWith?: never;
|
|
3192
|
-
listContains?: never;
|
|
3193
|
-
stringContains?: never;
|
|
3194
|
-
andAll?: never;
|
|
3195
|
-
orAll?: never;
|
|
3196
|
-
$unknown?: never;
|
|
3197
|
-
}
|
|
3198
|
-
interface StartsWithMember {
|
|
3199
|
-
equals?: never;
|
|
3200
|
-
notEquals?: never;
|
|
3201
|
-
greaterThan?: never;
|
|
3202
|
-
greaterThanOrEquals?: never;
|
|
3203
|
-
lessThan?: never;
|
|
3204
|
-
lessThanOrEquals?: never;
|
|
3205
|
-
in?: never;
|
|
3206
|
-
notIn?: never;
|
|
3207
|
-
startsWith: FilterAttribute;
|
|
3208
|
-
listContains?: never;
|
|
3209
|
-
stringContains?: never;
|
|
3210
|
-
andAll?: never;
|
|
3211
|
-
orAll?: never;
|
|
3212
|
-
$unknown?: never;
|
|
3213
|
-
}
|
|
3214
|
-
interface ListContainsMember {
|
|
3215
|
-
equals?: never;
|
|
3216
|
-
notEquals?: never;
|
|
3217
|
-
greaterThan?: never;
|
|
3218
|
-
greaterThanOrEquals?: never;
|
|
3219
|
-
lessThan?: never;
|
|
3220
|
-
lessThanOrEquals?: never;
|
|
3221
|
-
in?: never;
|
|
3222
|
-
notIn?: never;
|
|
3223
|
-
startsWith?: never;
|
|
3224
|
-
listContains: FilterAttribute;
|
|
3225
|
-
stringContains?: never;
|
|
3226
|
-
andAll?: never;
|
|
3227
|
-
orAll?: never;
|
|
3228
|
-
$unknown?: never;
|
|
3229
|
-
}
|
|
3230
|
-
interface StringContainsMember {
|
|
3231
|
-
equals?: never;
|
|
3232
|
-
notEquals?: never;
|
|
3233
|
-
greaterThan?: never;
|
|
3234
|
-
greaterThanOrEquals?: never;
|
|
3235
|
-
lessThan?: never;
|
|
3236
|
-
lessThanOrEquals?: never;
|
|
3237
|
-
in?: never;
|
|
3238
|
-
notIn?: never;
|
|
3239
|
-
startsWith?: never;
|
|
3240
|
-
listContains?: never;
|
|
3241
|
-
stringContains: FilterAttribute;
|
|
3242
|
-
andAll?: never;
|
|
3243
|
-
orAll?: never;
|
|
3244
|
-
$unknown?: never;
|
|
3245
|
-
}
|
|
3246
|
-
interface AndAllMember {
|
|
3247
|
-
equals?: never;
|
|
3248
|
-
notEquals?: never;
|
|
3249
|
-
greaterThan?: never;
|
|
3250
|
-
greaterThanOrEquals?: never;
|
|
3251
|
-
lessThan?: never;
|
|
3252
|
-
lessThanOrEquals?: never;
|
|
3253
|
-
in?: never;
|
|
3254
|
-
notIn?: never;
|
|
3255
|
-
startsWith?: never;
|
|
3256
|
-
listContains?: never;
|
|
3257
|
-
stringContains?: never;
|
|
3258
|
-
andAll: RetrievalFilter[];
|
|
3259
|
-
orAll?: never;
|
|
3260
|
-
$unknown?: never;
|
|
3261
|
-
}
|
|
3262
|
-
interface OrAllMember {
|
|
3263
|
-
equals?: never;
|
|
3264
|
-
notEquals?: never;
|
|
3265
|
-
greaterThan?: never;
|
|
3266
|
-
greaterThanOrEquals?: never;
|
|
3267
|
-
lessThan?: never;
|
|
3268
|
-
lessThanOrEquals?: never;
|
|
3269
|
-
in?: never;
|
|
3270
|
-
notIn?: never;
|
|
3271
|
-
startsWith?: never;
|
|
3272
|
-
listContains?: never;
|
|
3273
|
-
stringContains?: never;
|
|
3274
|
-
andAll?: never;
|
|
3275
|
-
orAll: RetrievalFilter[];
|
|
3076
|
+
export interface CreateSessionRequest {
|
|
3077
|
+
sessionMetadata?: Record<string, string> | undefined;
|
|
3078
|
+
encryptionKeyArn?: string | undefined;
|
|
3079
|
+
tags?: Record<string, string> | undefined;
|
|
3080
|
+
}
|
|
3081
|
+
export declare const SessionStatus: {
|
|
3082
|
+
readonly ACTIVE: "ACTIVE";
|
|
3083
|
+
readonly ENDED: "ENDED";
|
|
3084
|
+
readonly EXPIRED: "EXPIRED";
|
|
3085
|
+
};
|
|
3086
|
+
export type SessionStatus = (typeof SessionStatus)[keyof typeof SessionStatus];
|
|
3087
|
+
export interface CreateSessionResponse {
|
|
3088
|
+
sessionId: string | undefined;
|
|
3089
|
+
sessionArn: string | undefined;
|
|
3090
|
+
sessionStatus: SessionStatus | undefined;
|
|
3091
|
+
createdAt: Date | undefined;
|
|
3092
|
+
}
|
|
3093
|
+
export interface DeleteSessionRequest {
|
|
3094
|
+
sessionIdentifier: string | undefined;
|
|
3095
|
+
}
|
|
3096
|
+
export interface DeleteSessionResponse {}
|
|
3097
|
+
export interface EndSessionRequest {
|
|
3098
|
+
sessionIdentifier: string | undefined;
|
|
3099
|
+
}
|
|
3100
|
+
export interface EndSessionResponse {
|
|
3101
|
+
sessionId: string | undefined;
|
|
3102
|
+
sessionArn: string | undefined;
|
|
3103
|
+
sessionStatus: SessionStatus | undefined;
|
|
3104
|
+
}
|
|
3105
|
+
export interface GetSessionRequest {
|
|
3106
|
+
sessionIdentifier: string | undefined;
|
|
3107
|
+
}
|
|
3108
|
+
export interface GetSessionResponse {
|
|
3109
|
+
sessionId: string | undefined;
|
|
3110
|
+
sessionArn: string | undefined;
|
|
3111
|
+
sessionStatus: SessionStatus | undefined;
|
|
3112
|
+
createdAt: Date | undefined;
|
|
3113
|
+
lastUpdatedAt: Date | undefined;
|
|
3114
|
+
sessionMetadata?: Record<string, string> | undefined;
|
|
3115
|
+
encryptionKeyArn?: string | undefined;
|
|
3116
|
+
}
|
|
3117
|
+
export interface CreateInvocationRequest {
|
|
3118
|
+
invocationId?: string | undefined;
|
|
3119
|
+
description?: string | undefined;
|
|
3120
|
+
sessionIdentifier: string | undefined;
|
|
3121
|
+
}
|
|
3122
|
+
export interface CreateInvocationResponse {
|
|
3123
|
+
sessionId: string | undefined;
|
|
3124
|
+
invocationId: string | undefined;
|
|
3125
|
+
createdAt: Date | undefined;
|
|
3126
|
+
}
|
|
3127
|
+
export interface ListInvocationsRequest {
|
|
3128
|
+
nextToken?: string | undefined;
|
|
3129
|
+
maxResults?: number | undefined;
|
|
3130
|
+
sessionIdentifier: string | undefined;
|
|
3131
|
+
}
|
|
3132
|
+
export interface InvocationSummary {
|
|
3133
|
+
sessionId: string | undefined;
|
|
3134
|
+
invocationId: string | undefined;
|
|
3135
|
+
createdAt: Date | undefined;
|
|
3136
|
+
}
|
|
3137
|
+
export interface ListInvocationsResponse {
|
|
3138
|
+
invocationSummaries: InvocationSummary[] | undefined;
|
|
3139
|
+
nextToken?: string | undefined;
|
|
3140
|
+
}
|
|
3141
|
+
export interface GetInvocationStepRequest {
|
|
3142
|
+
invocationIdentifier: string | undefined;
|
|
3143
|
+
invocationStepId: string | undefined;
|
|
3144
|
+
sessionIdentifier: string | undefined;
|
|
3145
|
+
}
|
|
3146
|
+
export declare const ImageFormat: {
|
|
3147
|
+
readonly GIF: "gif";
|
|
3148
|
+
readonly JPEG: "jpeg";
|
|
3149
|
+
readonly PNG: "png";
|
|
3150
|
+
readonly WEBP: "webp";
|
|
3151
|
+
};
|
|
3152
|
+
export type ImageFormat = (typeof ImageFormat)[keyof typeof ImageFormat];
|
|
3153
|
+
export interface S3Location {
|
|
3154
|
+
uri: string | undefined;
|
|
3155
|
+
}
|
|
3156
|
+
export type ImageSource =
|
|
3157
|
+
| ImageSource.BytesMember
|
|
3158
|
+
| ImageSource.S3LocationMember
|
|
3159
|
+
| ImageSource.$UnknownMember;
|
|
3160
|
+
export declare namespace ImageSource {
|
|
3161
|
+
interface BytesMember {
|
|
3162
|
+
bytes: Uint8Array;
|
|
3163
|
+
s3Location?: never;
|
|
3164
|
+
$unknown?: never;
|
|
3165
|
+
}
|
|
3166
|
+
interface S3LocationMember {
|
|
3167
|
+
bytes?: never;
|
|
3168
|
+
s3Location: S3Location;
|
|
3276
3169
|
$unknown?: never;
|
|
3277
3170
|
}
|
|
3278
3171
|
interface $UnknownMember {
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
greaterThan?: never;
|
|
3282
|
-
greaterThanOrEquals?: never;
|
|
3283
|
-
lessThan?: never;
|
|
3284
|
-
lessThanOrEquals?: never;
|
|
3285
|
-
in?: never;
|
|
3286
|
-
notIn?: never;
|
|
3287
|
-
startsWith?: never;
|
|
3288
|
-
listContains?: never;
|
|
3289
|
-
stringContains?: never;
|
|
3290
|
-
andAll?: never;
|
|
3291
|
-
orAll?: never;
|
|
3172
|
+
bytes?: never;
|
|
3173
|
+
s3Location?: never;
|
|
3292
3174
|
$unknown: [string, any];
|
|
3293
3175
|
}
|
|
3294
3176
|
interface Visitor<T> {
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
greaterThan: (value: FilterAttribute) => T;
|
|
3298
|
-
greaterThanOrEquals: (value: FilterAttribute) => T;
|
|
3299
|
-
lessThan: (value: FilterAttribute) => T;
|
|
3300
|
-
lessThanOrEquals: (value: FilterAttribute) => T;
|
|
3301
|
-
in: (value: FilterAttribute) => T;
|
|
3302
|
-
notIn: (value: FilterAttribute) => T;
|
|
3303
|
-
startsWith: (value: FilterAttribute) => T;
|
|
3304
|
-
listContains: (value: FilterAttribute) => T;
|
|
3305
|
-
stringContains: (value: FilterAttribute) => T;
|
|
3306
|
-
andAll: (value: RetrievalFilter[]) => T;
|
|
3307
|
-
orAll: (value: RetrievalFilter[]) => T;
|
|
3177
|
+
bytes: (value: Uint8Array) => T;
|
|
3178
|
+
s3Location: (value: S3Location) => T;
|
|
3308
3179
|
_: (name: string, value: any) => T;
|
|
3309
3180
|
}
|
|
3310
|
-
const visit: <T>(value:
|
|
3181
|
+
const visit: <T>(value: ImageSource, visitor: Visitor<T>) => T;
|
|
3311
3182
|
}
|
|
3312
|
-
export interface
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
filter?: RetrievalFilter | undefined;
|
|
3316
|
-
rerankingConfiguration?: VectorSearchRerankingConfiguration | undefined;
|
|
3317
|
-
implicitFilterConfiguration?: ImplicitFilterConfiguration | undefined;
|
|
3183
|
+
export interface ImageBlock {
|
|
3184
|
+
format: ImageFormat | undefined;
|
|
3185
|
+
source: ImageSource | undefined;
|
|
3318
3186
|
}
|
|
3319
|
-
export
|
|
3320
|
-
|
|
3187
|
+
export type BedrockSessionContentBlock =
|
|
3188
|
+
| BedrockSessionContentBlock.ImageMember
|
|
3189
|
+
| BedrockSessionContentBlock.TextMember
|
|
3190
|
+
| BedrockSessionContentBlock.$UnknownMember;
|
|
3191
|
+
export declare namespace BedrockSessionContentBlock {
|
|
3192
|
+
interface TextMember {
|
|
3193
|
+
text: string;
|
|
3194
|
+
image?: never;
|
|
3195
|
+
$unknown?: never;
|
|
3196
|
+
}
|
|
3197
|
+
interface ImageMember {
|
|
3198
|
+
text?: never;
|
|
3199
|
+
image: ImageBlock;
|
|
3200
|
+
$unknown?: never;
|
|
3201
|
+
}
|
|
3202
|
+
interface $UnknownMember {
|
|
3203
|
+
text?: never;
|
|
3204
|
+
image?: never;
|
|
3205
|
+
$unknown: [string, any];
|
|
3206
|
+
}
|
|
3207
|
+
interface Visitor<T> {
|
|
3208
|
+
text: (value: string) => T;
|
|
3209
|
+
image: (value: ImageBlock) => T;
|
|
3210
|
+
_: (name: string, value: any) => T;
|
|
3211
|
+
}
|
|
3212
|
+
const visit: <T>(value: BedrockSessionContentBlock, visitor: Visitor<T>) => T;
|
|
3321
3213
|
}
|
|
3322
|
-
export
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3214
|
+
export type InvocationStepPayload =
|
|
3215
|
+
| InvocationStepPayload.ContentBlocksMember
|
|
3216
|
+
| InvocationStepPayload.$UnknownMember;
|
|
3217
|
+
export declare namespace InvocationStepPayload {
|
|
3218
|
+
interface ContentBlocksMember {
|
|
3219
|
+
contentBlocks: BedrockSessionContentBlock[];
|
|
3220
|
+
$unknown?: never;
|
|
3221
|
+
}
|
|
3222
|
+
interface $UnknownMember {
|
|
3223
|
+
contentBlocks?: never;
|
|
3224
|
+
$unknown: [string, any];
|
|
3225
|
+
}
|
|
3226
|
+
interface Visitor<T> {
|
|
3227
|
+
contentBlocks: (value: BedrockSessionContentBlock[]) => T;
|
|
3228
|
+
_: (name: string, value: any) => T;
|
|
3229
|
+
}
|
|
3230
|
+
const visit: <T>(value: InvocationStepPayload, visitor: Visitor<T>) => T;
|
|
3326
3231
|
}
|
|
3327
|
-
export interface
|
|
3328
|
-
|
|
3329
|
-
|
|
3232
|
+
export interface InvocationStep {
|
|
3233
|
+
sessionId: string | undefined;
|
|
3234
|
+
invocationId: string | undefined;
|
|
3235
|
+
invocationStepId: string | undefined;
|
|
3236
|
+
invocationStepTime: Date | undefined;
|
|
3237
|
+
payload: InvocationStepPayload | undefined;
|
|
3330
3238
|
}
|
|
3331
|
-
export interface
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
orchestrationConfiguration?: OrchestrationConfiguration | undefined;
|
|
3337
|
-
}
|
|
3338
|
-
export interface RetrieveRequest {
|
|
3339
|
-
knowledgeBaseId: string | undefined;
|
|
3340
|
-
retrievalQuery: KnowledgeBaseQuery | undefined;
|
|
3341
|
-
retrievalConfiguration?: KnowledgeBaseRetrievalConfiguration | undefined;
|
|
3342
|
-
guardrailConfiguration?: GuardrailConfiguration | undefined;
|
|
3239
|
+
export interface GetInvocationStepResponse {
|
|
3240
|
+
invocationStep: InvocationStep | undefined;
|
|
3241
|
+
}
|
|
3242
|
+
export interface ListInvocationStepsRequest {
|
|
3243
|
+
invocationIdentifier?: string | undefined;
|
|
3343
3244
|
nextToken?: string | undefined;
|
|
3245
|
+
maxResults?: number | undefined;
|
|
3246
|
+
sessionIdentifier: string | undefined;
|
|
3344
3247
|
}
|
|
3345
|
-
export interface
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3248
|
+
export interface InvocationStepSummary {
|
|
3249
|
+
sessionId: string | undefined;
|
|
3250
|
+
invocationId: string | undefined;
|
|
3251
|
+
invocationStepId: string | undefined;
|
|
3252
|
+
invocationStepTime: Date | undefined;
|
|
3253
|
+
}
|
|
3254
|
+
export interface ListInvocationStepsResponse {
|
|
3255
|
+
invocationStepSummaries: InvocationStepSummary[] | undefined;
|
|
3256
|
+
nextToken?: string | undefined;
|
|
3257
|
+
}
|
|
3258
|
+
export interface PutInvocationStepRequest {
|
|
3259
|
+
sessionIdentifier: string | undefined;
|
|
3260
|
+
invocationIdentifier: string | undefined;
|
|
3261
|
+
invocationStepTime: Date | undefined;
|
|
3262
|
+
payload: InvocationStepPayload | undefined;
|
|
3263
|
+
invocationStepId?: string | undefined;
|
|
3353
3264
|
}
|
|
3354
|
-
export interface
|
|
3265
|
+
export interface PutInvocationStepResponse {
|
|
3266
|
+
invocationStepId: string | undefined;
|
|
3267
|
+
}
|
|
3268
|
+
export interface ListSessionsRequest {
|
|
3269
|
+
maxResults?: number | undefined;
|
|
3270
|
+
nextToken?: string | undefined;
|
|
3271
|
+
}
|
|
3272
|
+
export interface SessionSummary {
|
|
3355
3273
|
sessionId: string | undefined;
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
inlineSessionState?: InlineSessionState | undefined;
|
|
3361
|
-
foundationModel: string | undefined;
|
|
3362
|
-
instruction: string | undefined;
|
|
3363
|
-
idleSessionTTLInSeconds?: number | undefined;
|
|
3364
|
-
actionGroups?: AgentActionGroup[] | undefined;
|
|
3365
|
-
knowledgeBases?: KnowledgeBase[] | undefined;
|
|
3366
|
-
guardrailConfiguration?: GuardrailConfigurationWithArn | undefined;
|
|
3367
|
-
promptOverrideConfiguration?: PromptOverrideConfiguration | undefined;
|
|
3368
|
-
bedrockModelConfigurations?: InlineBedrockModelConfigurations | undefined;
|
|
3369
|
-
streamingConfigurations?: StreamingConfigurations | undefined;
|
|
3370
|
-
}
|
|
3371
|
-
export interface RetrieveAndGenerateRequest {
|
|
3372
|
-
sessionId?: string | undefined;
|
|
3373
|
-
input: RetrieveAndGenerateInput | undefined;
|
|
3374
|
-
retrieveAndGenerateConfiguration?:
|
|
3375
|
-
| RetrieveAndGenerateConfiguration
|
|
3376
|
-
| undefined;
|
|
3377
|
-
sessionConfiguration?: RetrieveAndGenerateSessionConfiguration | undefined;
|
|
3274
|
+
sessionArn: string | undefined;
|
|
3275
|
+
sessionStatus: SessionStatus | undefined;
|
|
3276
|
+
createdAt: Date | undefined;
|
|
3277
|
+
lastUpdatedAt: Date | undefined;
|
|
3378
3278
|
}
|
|
3379
|
-
export interface
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
retrieveAndGenerateConfiguration?:
|
|
3383
|
-
| RetrieveAndGenerateConfiguration
|
|
3384
|
-
| undefined;
|
|
3385
|
-
sessionConfiguration?: RetrieveAndGenerateSessionConfiguration | undefined;
|
|
3279
|
+
export interface ListSessionsResponse {
|
|
3280
|
+
sessionSummaries: SessionSummary[] | undefined;
|
|
3281
|
+
nextToken?: string | undefined;
|
|
3386
3282
|
}
|
|
3387
|
-
export interface
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
returnControlInvocationResults?: InvocationResultMember[] | undefined;
|
|
3391
|
-
invocationId?: string | undefined;
|
|
3392
|
-
files?: InputFile[] | undefined;
|
|
3393
|
-
knowledgeBaseConfigurations?: KnowledgeBaseConfiguration[] | undefined;
|
|
3394
|
-
conversationHistory?: ConversationHistory | undefined;
|
|
3283
|
+
export interface UpdateSessionRequest {
|
|
3284
|
+
sessionMetadata?: Record<string, string> | undefined;
|
|
3285
|
+
sessionIdentifier: string | undefined;
|
|
3395
3286
|
}
|
|
3396
|
-
export interface
|
|
3397
|
-
sessionState?: SessionState | undefined;
|
|
3398
|
-
agentId: string | undefined;
|
|
3399
|
-
agentAliasId: string | undefined;
|
|
3287
|
+
export interface UpdateSessionResponse {
|
|
3400
3288
|
sessionId: string | undefined;
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3289
|
+
sessionArn: string | undefined;
|
|
3290
|
+
sessionStatus: SessionStatus | undefined;
|
|
3291
|
+
createdAt: Date | undefined;
|
|
3292
|
+
lastUpdatedAt: Date | undefined;
|
|
3293
|
+
}
|
|
3294
|
+
export interface ListTagsForResourceRequest {
|
|
3295
|
+
resourceArn: string | undefined;
|
|
3296
|
+
}
|
|
3297
|
+
export interface ListTagsForResourceResponse {
|
|
3298
|
+
tags?: Record<string, string> | undefined;
|
|
3299
|
+
}
|
|
3300
|
+
export interface TagResourceRequest {
|
|
3301
|
+
resourceArn: string | undefined;
|
|
3302
|
+
tags: Record<string, string> | undefined;
|
|
3408
3303
|
}
|
|
3409
3304
|
export declare const ActionGroupInvocationInputFilterSensitiveLog: (
|
|
3410
3305
|
obj: ActionGroupInvocationInput
|
|
@@ -3673,8 +3568,8 @@ export declare const ResponseStreamFilterSensitiveLog: (
|
|
|
3673
3568
|
export declare const InvokeAgentResponseFilterSensitiveLog: (
|
|
3674
3569
|
obj: InvokeAgentResponse
|
|
3675
3570
|
) => any;
|
|
3676
|
-
export declare const
|
|
3677
|
-
obj:
|
|
3571
|
+
export declare const CollaboratorConfigurationFilterSensitiveLog: (
|
|
3572
|
+
obj: CollaboratorConfiguration
|
|
3678
3573
|
) => any;
|
|
3679
3574
|
export declare const PromptConfigurationFilterSensitiveLog: (
|
|
3680
3575
|
obj: PromptConfiguration
|
|
@@ -3682,6 +3577,9 @@ export declare const PromptConfigurationFilterSensitiveLog: (
|
|
|
3682
3577
|
export declare const PromptOverrideConfigurationFilterSensitiveLog: (
|
|
3683
3578
|
obj: PromptOverrideConfiguration
|
|
3684
3579
|
) => any;
|
|
3580
|
+
export declare const InlineSessionStateFilterSensitiveLog: (
|
|
3581
|
+
obj: InlineSessionState
|
|
3582
|
+
) => any;
|
|
3685
3583
|
export declare const InlineAgentPayloadPartFilterSensitiveLog: (
|
|
3686
3584
|
obj: InlineAgentPayloadPart
|
|
3687
3585
|
) => any;
|
|
@@ -3786,40 +3684,18 @@ export declare const KnowledgeBaseRetrievalResultFilterSensitiveLog: (
|
|
|
3786
3684
|
export declare const RetrieveResponseFilterSensitiveLog: (
|
|
3787
3685
|
obj: RetrieveResponse
|
|
3788
3686
|
) => any;
|
|
3789
|
-
export declare const
|
|
3790
|
-
obj:
|
|
3791
|
-
) => any;
|
|
3792
|
-
export declare const KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog: (
|
|
3793
|
-
obj: KnowledgeBaseVectorSearchConfiguration
|
|
3794
|
-
) => any;
|
|
3795
|
-
export declare const KnowledgeBaseRetrievalConfigurationFilterSensitiveLog: (
|
|
3796
|
-
obj: KnowledgeBaseRetrievalConfiguration
|
|
3797
|
-
) => any;
|
|
3798
|
-
export declare const KnowledgeBaseFilterSensitiveLog: (
|
|
3799
|
-
obj: KnowledgeBase
|
|
3800
|
-
) => any;
|
|
3801
|
-
export declare const KnowledgeBaseConfigurationFilterSensitiveLog: (
|
|
3802
|
-
obj: KnowledgeBaseConfiguration
|
|
3803
|
-
) => any;
|
|
3804
|
-
export declare const KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog: (
|
|
3805
|
-
obj: KnowledgeBaseRetrieveAndGenerateConfiguration
|
|
3806
|
-
) => any;
|
|
3807
|
-
export declare const RetrieveRequestFilterSensitiveLog: (
|
|
3808
|
-
obj: RetrieveRequest
|
|
3809
|
-
) => any;
|
|
3810
|
-
export declare const RetrieveAndGenerateConfigurationFilterSensitiveLog: (
|
|
3811
|
-
obj: RetrieveAndGenerateConfiguration
|
|
3687
|
+
export declare const BedrockSessionContentBlockFilterSensitiveLog: (
|
|
3688
|
+
obj: BedrockSessionContentBlock
|
|
3812
3689
|
) => any;
|
|
3813
|
-
export declare const
|
|
3814
|
-
obj:
|
|
3690
|
+
export declare const InvocationStepPayloadFilterSensitiveLog: (
|
|
3691
|
+
obj: InvocationStepPayload
|
|
3815
3692
|
) => any;
|
|
3816
|
-
export declare const
|
|
3817
|
-
obj:
|
|
3693
|
+
export declare const InvocationStepFilterSensitiveLog: (
|
|
3694
|
+
obj: InvocationStep
|
|
3818
3695
|
) => any;
|
|
3819
|
-
export declare const
|
|
3820
|
-
obj:
|
|
3696
|
+
export declare const GetInvocationStepResponseFilterSensitiveLog: (
|
|
3697
|
+
obj: GetInvocationStepResponse
|
|
3821
3698
|
) => any;
|
|
3822
|
-
export declare const
|
|
3823
|
-
|
|
3824
|
-
obj: InvokeAgentRequest
|
|
3699
|
+
export declare const PutInvocationStepRequestFilterSensitiveLog: (
|
|
3700
|
+
obj: PutInvocationStepRequest
|
|
3825
3701
|
) => any;
|