@aws-sdk/client-bedrock-agent-runtime 3.703.0 → 3.705.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 +267 -69
- package/dist-es/models/models_0.js +173 -56
- package/dist-es/protocols/Aws_restJson1.js +46 -3
- package/dist-types/commands/InvokeAgentCommand.d.ts +351 -20
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +331 -19
- package/dist-types/models/models_0.d.ts +903 -466
- package/dist-types/ts3.4/models/models_0.d.ts +321 -122
- package/package.json +1 -1
|
@@ -161,6 +161,159 @@ export interface AgentActionGroup {
|
|
|
161
161
|
apiSchema?: APISchema | undefined;
|
|
162
162
|
functionSchema?: FunctionSchema | undefined;
|
|
163
163
|
}
|
|
164
|
+
export declare const ConfirmationState: {
|
|
165
|
+
readonly CONFIRM: "CONFIRM";
|
|
166
|
+
readonly DENY: "DENY";
|
|
167
|
+
};
|
|
168
|
+
export type ConfirmationState =
|
|
169
|
+
(typeof ConfirmationState)[keyof typeof ConfirmationState];
|
|
170
|
+
export interface ContentBody {
|
|
171
|
+
body?: string | undefined;
|
|
172
|
+
}
|
|
173
|
+
export declare const ResponseState: {
|
|
174
|
+
readonly FAILURE: "FAILURE";
|
|
175
|
+
readonly REPROMPT: "REPROMPT";
|
|
176
|
+
};
|
|
177
|
+
export type ResponseState = (typeof ResponseState)[keyof typeof ResponseState];
|
|
178
|
+
export interface ApiResult {
|
|
179
|
+
actionGroup: string | undefined;
|
|
180
|
+
httpMethod?: string | undefined;
|
|
181
|
+
apiPath?: string | undefined;
|
|
182
|
+
confirmationState?: ConfirmationState | undefined;
|
|
183
|
+
responseBody?: Record<string, ContentBody> | undefined;
|
|
184
|
+
httpStatusCode?: number | undefined;
|
|
185
|
+
responseState?: ResponseState | undefined;
|
|
186
|
+
agentId?: string | undefined;
|
|
187
|
+
}
|
|
188
|
+
export interface FunctionResult {
|
|
189
|
+
actionGroup: string | undefined;
|
|
190
|
+
confirmationState?: ConfirmationState | undefined;
|
|
191
|
+
function?: string | undefined;
|
|
192
|
+
responseBody?: Record<string, ContentBody> | undefined;
|
|
193
|
+
responseState?: ResponseState | undefined;
|
|
194
|
+
agentId?: string | undefined;
|
|
195
|
+
}
|
|
196
|
+
export type InvocationResultMember =
|
|
197
|
+
| InvocationResultMember.ApiResultMember
|
|
198
|
+
| InvocationResultMember.FunctionResultMember
|
|
199
|
+
| InvocationResultMember.$UnknownMember;
|
|
200
|
+
export declare namespace InvocationResultMember {
|
|
201
|
+
interface ApiResultMember {
|
|
202
|
+
apiResult: ApiResult;
|
|
203
|
+
functionResult?: never;
|
|
204
|
+
$unknown?: never;
|
|
205
|
+
}
|
|
206
|
+
interface FunctionResultMember {
|
|
207
|
+
apiResult?: never;
|
|
208
|
+
functionResult: FunctionResult;
|
|
209
|
+
$unknown?: never;
|
|
210
|
+
}
|
|
211
|
+
interface $UnknownMember {
|
|
212
|
+
apiResult?: never;
|
|
213
|
+
functionResult?: never;
|
|
214
|
+
$unknown: [string, any];
|
|
215
|
+
}
|
|
216
|
+
interface Visitor<T> {
|
|
217
|
+
apiResult: (value: ApiResult) => T;
|
|
218
|
+
functionResult: (value: FunctionResult) => T;
|
|
219
|
+
_: (name: string, value: any) => T;
|
|
220
|
+
}
|
|
221
|
+
const visit: <T>(value: InvocationResultMember, visitor: Visitor<T>) => T;
|
|
222
|
+
}
|
|
223
|
+
export interface ReturnControlResults {
|
|
224
|
+
invocationId?: string | undefined;
|
|
225
|
+
returnControlInvocationResults?: InvocationResultMember[] | undefined;
|
|
226
|
+
}
|
|
227
|
+
export declare const PayloadType: {
|
|
228
|
+
readonly RETURN_CONTROL: "RETURN_CONTROL";
|
|
229
|
+
readonly TEXT: "TEXT";
|
|
230
|
+
};
|
|
231
|
+
export type PayloadType = (typeof PayloadType)[keyof typeof PayloadType];
|
|
232
|
+
export interface AgentCollaboratorInputPayload {
|
|
233
|
+
type?: PayloadType | undefined;
|
|
234
|
+
text?: string | undefined;
|
|
235
|
+
returnControlResults?: ReturnControlResults | undefined;
|
|
236
|
+
}
|
|
237
|
+
export interface AgentCollaboratorInvocationInput {
|
|
238
|
+
agentCollaboratorName?: string | undefined;
|
|
239
|
+
agentCollaboratorAliasArn?: string | undefined;
|
|
240
|
+
input?: AgentCollaboratorInputPayload | undefined;
|
|
241
|
+
}
|
|
242
|
+
export interface ApiParameter {
|
|
243
|
+
name?: string | undefined;
|
|
244
|
+
type?: string | undefined;
|
|
245
|
+
value?: string | undefined;
|
|
246
|
+
}
|
|
247
|
+
export interface PropertyParameters {
|
|
248
|
+
properties?: Parameter[] | undefined;
|
|
249
|
+
}
|
|
250
|
+
export interface ApiRequestBody {
|
|
251
|
+
content?: Record<string, PropertyParameters> | undefined;
|
|
252
|
+
}
|
|
253
|
+
export interface ApiInvocationInput {
|
|
254
|
+
actionGroup: string | undefined;
|
|
255
|
+
httpMethod?: string | undefined;
|
|
256
|
+
apiPath?: string | undefined;
|
|
257
|
+
parameters?: ApiParameter[] | undefined;
|
|
258
|
+
requestBody?: ApiRequestBody | undefined;
|
|
259
|
+
actionInvocationType?: ActionInvocationType | undefined;
|
|
260
|
+
agentId?: string | undefined;
|
|
261
|
+
collaboratorName?: string | undefined;
|
|
262
|
+
}
|
|
263
|
+
export interface FunctionParameter {
|
|
264
|
+
name?: string | undefined;
|
|
265
|
+
type?: string | undefined;
|
|
266
|
+
value?: string | undefined;
|
|
267
|
+
}
|
|
268
|
+
export interface FunctionInvocationInput {
|
|
269
|
+
actionGroup: string | undefined;
|
|
270
|
+
parameters?: FunctionParameter[] | undefined;
|
|
271
|
+
function?: string | undefined;
|
|
272
|
+
actionInvocationType?: ActionInvocationType | undefined;
|
|
273
|
+
agentId?: string | undefined;
|
|
274
|
+
collaboratorName?: string | undefined;
|
|
275
|
+
}
|
|
276
|
+
export type InvocationInputMember =
|
|
277
|
+
| InvocationInputMember.ApiInvocationInputMember
|
|
278
|
+
| InvocationInputMember.FunctionInvocationInputMember
|
|
279
|
+
| InvocationInputMember.$UnknownMember;
|
|
280
|
+
export declare namespace InvocationInputMember {
|
|
281
|
+
interface ApiInvocationInputMember {
|
|
282
|
+
apiInvocationInput: ApiInvocationInput;
|
|
283
|
+
functionInvocationInput?: never;
|
|
284
|
+
$unknown?: never;
|
|
285
|
+
}
|
|
286
|
+
interface FunctionInvocationInputMember {
|
|
287
|
+
apiInvocationInput?: never;
|
|
288
|
+
functionInvocationInput: FunctionInvocationInput;
|
|
289
|
+
$unknown?: never;
|
|
290
|
+
}
|
|
291
|
+
interface $UnknownMember {
|
|
292
|
+
apiInvocationInput?: never;
|
|
293
|
+
functionInvocationInput?: never;
|
|
294
|
+
$unknown: [string, any];
|
|
295
|
+
}
|
|
296
|
+
interface Visitor<T> {
|
|
297
|
+
apiInvocationInput: (value: ApiInvocationInput) => T;
|
|
298
|
+
functionInvocationInput: (value: FunctionInvocationInput) => T;
|
|
299
|
+
_: (name: string, value: any) => T;
|
|
300
|
+
}
|
|
301
|
+
const visit: <T>(value: InvocationInputMember, visitor: Visitor<T>) => T;
|
|
302
|
+
}
|
|
303
|
+
export interface ReturnControlPayload {
|
|
304
|
+
invocationInputs?: InvocationInputMember[] | undefined;
|
|
305
|
+
invocationId?: string | undefined;
|
|
306
|
+
}
|
|
307
|
+
export interface AgentCollaboratorOutputPayload {
|
|
308
|
+
type?: PayloadType | undefined;
|
|
309
|
+
text?: string | undefined;
|
|
310
|
+
returnControlPayload?: ReturnControlPayload | undefined;
|
|
311
|
+
}
|
|
312
|
+
export interface AgentCollaboratorInvocationOutput {
|
|
313
|
+
agentCollaboratorName?: string | undefined;
|
|
314
|
+
agentCollaboratorAliasArn?: string | undefined;
|
|
315
|
+
output?: AgentCollaboratorOutputPayload | undefined;
|
|
316
|
+
}
|
|
164
317
|
export declare class BadGatewayException extends __BaseException {
|
|
165
318
|
readonly name: "BadGatewayException";
|
|
166
319
|
readonly $fault: "server";
|
|
@@ -620,6 +773,37 @@ export declare namespace FlowResponseStream {
|
|
|
620
773
|
export interface InvokeFlowResponse {
|
|
621
774
|
responseStream: AsyncIterable<FlowResponseStream> | undefined;
|
|
622
775
|
}
|
|
776
|
+
export type ContentBlock =
|
|
777
|
+
| ContentBlock.TextMember
|
|
778
|
+
| ContentBlock.$UnknownMember;
|
|
779
|
+
export declare namespace ContentBlock {
|
|
780
|
+
interface TextMember {
|
|
781
|
+
text: string;
|
|
782
|
+
$unknown?: never;
|
|
783
|
+
}
|
|
784
|
+
interface $UnknownMember {
|
|
785
|
+
text?: never;
|
|
786
|
+
$unknown: [string, any];
|
|
787
|
+
}
|
|
788
|
+
interface Visitor<T> {
|
|
789
|
+
text: (value: string) => T;
|
|
790
|
+
_: (name: string, value: any) => T;
|
|
791
|
+
}
|
|
792
|
+
const visit: <T>(value: ContentBlock, visitor: Visitor<T>) => T;
|
|
793
|
+
}
|
|
794
|
+
export declare const ConversationRole: {
|
|
795
|
+
readonly ASSISTANT: "assistant";
|
|
796
|
+
readonly USER: "user";
|
|
797
|
+
};
|
|
798
|
+
export type ConversationRole =
|
|
799
|
+
(typeof ConversationRole)[keyof typeof ConversationRole];
|
|
800
|
+
export interface Message {
|
|
801
|
+
role: ConversationRole | undefined;
|
|
802
|
+
content: ContentBlock[] | undefined;
|
|
803
|
+
}
|
|
804
|
+
export interface ConversationHistory {
|
|
805
|
+
messages?: Message[] | undefined;
|
|
806
|
+
}
|
|
623
807
|
export interface ByteContentFile {
|
|
624
808
|
mediaType: string | undefined;
|
|
625
809
|
data: Uint8Array | undefined;
|
|
@@ -740,63 +924,6 @@ export interface VectorSearchRerankingConfiguration {
|
|
|
740
924
|
| VectorSearchBedrockRerankingConfiguration
|
|
741
925
|
| undefined;
|
|
742
926
|
}
|
|
743
|
-
export declare const ConfirmationState: {
|
|
744
|
-
readonly CONFIRM: "CONFIRM";
|
|
745
|
-
readonly DENY: "DENY";
|
|
746
|
-
};
|
|
747
|
-
export type ConfirmationState =
|
|
748
|
-
(typeof ConfirmationState)[keyof typeof ConfirmationState];
|
|
749
|
-
export interface ContentBody {
|
|
750
|
-
body?: string | undefined;
|
|
751
|
-
}
|
|
752
|
-
export declare const ResponseState: {
|
|
753
|
-
readonly FAILURE: "FAILURE";
|
|
754
|
-
readonly REPROMPT: "REPROMPT";
|
|
755
|
-
};
|
|
756
|
-
export type ResponseState = (typeof ResponseState)[keyof typeof ResponseState];
|
|
757
|
-
export interface ApiResult {
|
|
758
|
-
actionGroup: string | undefined;
|
|
759
|
-
httpMethod?: string | undefined;
|
|
760
|
-
apiPath?: string | undefined;
|
|
761
|
-
confirmationState?: ConfirmationState | undefined;
|
|
762
|
-
responseBody?: Record<string, ContentBody> | undefined;
|
|
763
|
-
httpStatusCode?: number | undefined;
|
|
764
|
-
responseState?: ResponseState | undefined;
|
|
765
|
-
}
|
|
766
|
-
export interface FunctionResult {
|
|
767
|
-
actionGroup: string | undefined;
|
|
768
|
-
confirmationState?: ConfirmationState | undefined;
|
|
769
|
-
function?: string | undefined;
|
|
770
|
-
responseBody?: Record<string, ContentBody> | undefined;
|
|
771
|
-
responseState?: ResponseState | undefined;
|
|
772
|
-
}
|
|
773
|
-
export type InvocationResultMember =
|
|
774
|
-
| InvocationResultMember.ApiResultMember
|
|
775
|
-
| InvocationResultMember.FunctionResultMember
|
|
776
|
-
| InvocationResultMember.$UnknownMember;
|
|
777
|
-
export declare namespace InvocationResultMember {
|
|
778
|
-
interface ApiResultMember {
|
|
779
|
-
apiResult: ApiResult;
|
|
780
|
-
functionResult?: never;
|
|
781
|
-
$unknown?: never;
|
|
782
|
-
}
|
|
783
|
-
interface FunctionResultMember {
|
|
784
|
-
apiResult?: never;
|
|
785
|
-
functionResult: FunctionResult;
|
|
786
|
-
$unknown?: never;
|
|
787
|
-
}
|
|
788
|
-
interface $UnknownMember {
|
|
789
|
-
apiResult?: never;
|
|
790
|
-
functionResult?: never;
|
|
791
|
-
$unknown: [string, any];
|
|
792
|
-
}
|
|
793
|
-
interface Visitor<T> {
|
|
794
|
-
apiResult: (value: ApiResult) => T;
|
|
795
|
-
functionResult: (value: FunctionResult) => T;
|
|
796
|
-
_: (name: string, value: any) => T;
|
|
797
|
-
}
|
|
798
|
-
const visit: <T>(value: InvocationResultMember, visitor: Visitor<T>) => T;
|
|
799
|
-
}
|
|
800
927
|
export interface StreamingConfigurations {
|
|
801
928
|
streamFinalResponse?: boolean | undefined;
|
|
802
929
|
applyGuardrailInterval?: number | undefined;
|
|
@@ -876,66 +1003,21 @@ export interface OutputFile {
|
|
|
876
1003
|
export interface FilePart {
|
|
877
1004
|
files?: OutputFile[] | undefined;
|
|
878
1005
|
}
|
|
879
|
-
export
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
}
|
|
884
|
-
export interface PropertyParameters {
|
|
885
|
-
properties?: Parameter[] | undefined;
|
|
886
|
-
}
|
|
887
|
-
export interface ApiRequestBody {
|
|
888
|
-
content?: Record<string, PropertyParameters> | undefined;
|
|
889
|
-
}
|
|
890
|
-
export interface ApiInvocationInput {
|
|
891
|
-
actionGroup: string | undefined;
|
|
892
|
-
httpMethod?: string | undefined;
|
|
893
|
-
apiPath?: string | undefined;
|
|
894
|
-
parameters?: ApiParameter[] | undefined;
|
|
895
|
-
requestBody?: ApiRequestBody | undefined;
|
|
896
|
-
actionInvocationType?: ActionInvocationType | undefined;
|
|
897
|
-
}
|
|
898
|
-
export interface FunctionParameter {
|
|
899
|
-
name?: string | undefined;
|
|
900
|
-
type?: string | undefined;
|
|
901
|
-
value?: string | undefined;
|
|
902
|
-
}
|
|
903
|
-
export interface FunctionInvocationInput {
|
|
904
|
-
actionGroup: string | undefined;
|
|
905
|
-
parameters?: FunctionParameter[] | undefined;
|
|
906
|
-
function?: string | undefined;
|
|
907
|
-
actionInvocationType?: ActionInvocationType | undefined;
|
|
908
|
-
}
|
|
909
|
-
export type InvocationInputMember =
|
|
910
|
-
| InvocationInputMember.ApiInvocationInputMember
|
|
911
|
-
| InvocationInputMember.FunctionInvocationInputMember
|
|
912
|
-
| InvocationInputMember.$UnknownMember;
|
|
913
|
-
export declare namespace InvocationInputMember {
|
|
914
|
-
interface ApiInvocationInputMember {
|
|
915
|
-
apiInvocationInput: ApiInvocationInput;
|
|
916
|
-
functionInvocationInput?: never;
|
|
917
|
-
$unknown?: never;
|
|
918
|
-
}
|
|
919
|
-
interface FunctionInvocationInputMember {
|
|
920
|
-
apiInvocationInput?: never;
|
|
921
|
-
functionInvocationInput: FunctionInvocationInput;
|
|
1006
|
+
export type Caller = Caller.AgentAliasArnMember | Caller.$UnknownMember;
|
|
1007
|
+
export declare namespace Caller {
|
|
1008
|
+
interface AgentAliasArnMember {
|
|
1009
|
+
agentAliasArn: string;
|
|
922
1010
|
$unknown?: never;
|
|
923
1011
|
}
|
|
924
1012
|
interface $UnknownMember {
|
|
925
|
-
|
|
926
|
-
functionInvocationInput?: never;
|
|
1013
|
+
agentAliasArn?: never;
|
|
927
1014
|
$unknown: [string, any];
|
|
928
1015
|
}
|
|
929
1016
|
interface Visitor<T> {
|
|
930
|
-
|
|
931
|
-
functionInvocationInput: (value: FunctionInvocationInput) => T;
|
|
1017
|
+
agentAliasArn: (value: string) => T;
|
|
932
1018
|
_: (name: string, value: any) => T;
|
|
933
1019
|
}
|
|
934
|
-
const visit: <T>(value:
|
|
935
|
-
}
|
|
936
|
-
export interface ReturnControlPayload {
|
|
937
|
-
invocationInputs?: InvocationInputMember[] | undefined;
|
|
938
|
-
invocationId?: string | undefined;
|
|
1020
|
+
const visit: <T>(value: Caller, visitor: Visitor<T>) => T;
|
|
939
1021
|
}
|
|
940
1022
|
export interface CustomOrchestrationTraceEvent {
|
|
941
1023
|
text?: string | undefined;
|
|
@@ -1103,6 +1185,7 @@ export interface CodeInterpreterInvocationInput {
|
|
|
1103
1185
|
export declare const InvocationType: {
|
|
1104
1186
|
readonly ACTION_GROUP: "ACTION_GROUP";
|
|
1105
1187
|
readonly ACTION_GROUP_CODE_INTERPRETER: "ACTION_GROUP_CODE_INTERPRETER";
|
|
1188
|
+
readonly AGENT_COLLABORATOR: "AGENT_COLLABORATOR";
|
|
1106
1189
|
readonly FINISH: "FINISH";
|
|
1107
1190
|
readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
|
|
1108
1191
|
};
|
|
@@ -1118,6 +1201,9 @@ export interface InvocationInput {
|
|
|
1118
1201
|
actionGroupInvocationInput?: ActionGroupInvocationInput | undefined;
|
|
1119
1202
|
knowledgeBaseLookupInput?: KnowledgeBaseLookupInput | undefined;
|
|
1120
1203
|
codeInterpreterInvocationInput?: CodeInterpreterInvocationInput | undefined;
|
|
1204
|
+
agentCollaboratorInvocationInput?:
|
|
1205
|
+
| AgentCollaboratorInvocationInput
|
|
1206
|
+
| undefined;
|
|
1121
1207
|
}
|
|
1122
1208
|
export interface InferenceConfiguration {
|
|
1123
1209
|
temperature?: number | undefined;
|
|
@@ -1147,6 +1233,7 @@ export interface ModelInvocationInput {
|
|
|
1147
1233
|
promptCreationMode?: CreationMode | undefined;
|
|
1148
1234
|
inferenceConfiguration?: InferenceConfiguration | undefined;
|
|
1149
1235
|
parserMode?: CreationMode | undefined;
|
|
1236
|
+
foundationModel?: string | undefined;
|
|
1150
1237
|
}
|
|
1151
1238
|
export interface Usage {
|
|
1152
1239
|
inputTokens?: number | undefined;
|
|
@@ -1187,6 +1274,7 @@ export interface RepromptResponse {
|
|
|
1187
1274
|
}
|
|
1188
1275
|
export declare const Type: {
|
|
1189
1276
|
readonly ACTION_GROUP: "ACTION_GROUP";
|
|
1277
|
+
readonly AGENT_COLLABORATOR: "AGENT_COLLABORATOR";
|
|
1190
1278
|
readonly ASK_USER: "ASK_USER";
|
|
1191
1279
|
readonly FINISH: "FINISH";
|
|
1192
1280
|
readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
|
|
@@ -1197,6 +1285,9 @@ export interface Observation {
|
|
|
1197
1285
|
traceId?: string | undefined;
|
|
1198
1286
|
type?: Type | undefined;
|
|
1199
1287
|
actionGroupInvocationOutput?: ActionGroupInvocationOutput | undefined;
|
|
1288
|
+
agentCollaboratorInvocationOutput?:
|
|
1289
|
+
| AgentCollaboratorInvocationOutput
|
|
1290
|
+
| undefined;
|
|
1200
1291
|
knowledgeBaseLookupOutput?: KnowledgeBaseLookupOutput | undefined;
|
|
1201
1292
|
finalResponse?: FinalResponse | undefined;
|
|
1202
1293
|
repromptResponse?: RepromptResponse | undefined;
|
|
@@ -1345,6 +1436,62 @@ export declare namespace PreProcessingTrace {
|
|
|
1345
1436
|
}
|
|
1346
1437
|
const visit: <T>(value: PreProcessingTrace, visitor: Visitor<T>) => T;
|
|
1347
1438
|
}
|
|
1439
|
+
export interface RoutingClassifierModelInvocationOutput {
|
|
1440
|
+
traceId?: string | undefined;
|
|
1441
|
+
rawResponse?: RawResponse | undefined;
|
|
1442
|
+
metadata?: Metadata | undefined;
|
|
1443
|
+
}
|
|
1444
|
+
export type RoutingClassifierTrace =
|
|
1445
|
+
| RoutingClassifierTrace.InvocationInputMember
|
|
1446
|
+
| RoutingClassifierTrace.ModelInvocationInputMember
|
|
1447
|
+
| RoutingClassifierTrace.ModelInvocationOutputMember
|
|
1448
|
+
| RoutingClassifierTrace.ObservationMember
|
|
1449
|
+
| RoutingClassifierTrace.$UnknownMember;
|
|
1450
|
+
export declare namespace RoutingClassifierTrace {
|
|
1451
|
+
interface InvocationInputMember {
|
|
1452
|
+
invocationInput: InvocationInput;
|
|
1453
|
+
observation?: never;
|
|
1454
|
+
modelInvocationInput?: never;
|
|
1455
|
+
modelInvocationOutput?: never;
|
|
1456
|
+
$unknown?: never;
|
|
1457
|
+
}
|
|
1458
|
+
interface ObservationMember {
|
|
1459
|
+
invocationInput?: never;
|
|
1460
|
+
observation: Observation;
|
|
1461
|
+
modelInvocationInput?: never;
|
|
1462
|
+
modelInvocationOutput?: never;
|
|
1463
|
+
$unknown?: never;
|
|
1464
|
+
}
|
|
1465
|
+
interface ModelInvocationInputMember {
|
|
1466
|
+
invocationInput?: never;
|
|
1467
|
+
observation?: never;
|
|
1468
|
+
modelInvocationInput: ModelInvocationInput;
|
|
1469
|
+
modelInvocationOutput?: never;
|
|
1470
|
+
$unknown?: never;
|
|
1471
|
+
}
|
|
1472
|
+
interface ModelInvocationOutputMember {
|
|
1473
|
+
invocationInput?: never;
|
|
1474
|
+
observation?: never;
|
|
1475
|
+
modelInvocationInput?: never;
|
|
1476
|
+
modelInvocationOutput: RoutingClassifierModelInvocationOutput;
|
|
1477
|
+
$unknown?: never;
|
|
1478
|
+
}
|
|
1479
|
+
interface $UnknownMember {
|
|
1480
|
+
invocationInput?: never;
|
|
1481
|
+
observation?: never;
|
|
1482
|
+
modelInvocationInput?: never;
|
|
1483
|
+
modelInvocationOutput?: never;
|
|
1484
|
+
$unknown: [string, any];
|
|
1485
|
+
}
|
|
1486
|
+
interface Visitor<T> {
|
|
1487
|
+
invocationInput: (value: InvocationInput) => T;
|
|
1488
|
+
observation: (value: Observation) => T;
|
|
1489
|
+
modelInvocationInput: (value: ModelInvocationInput) => T;
|
|
1490
|
+
modelInvocationOutput: (value: RoutingClassifierModelInvocationOutput) => T;
|
|
1491
|
+
_: (name: string, value: any) => T;
|
|
1492
|
+
}
|
|
1493
|
+
const visit: <T>(value: RoutingClassifierTrace, visitor: Visitor<T>) => T;
|
|
1494
|
+
}
|
|
1348
1495
|
export type Trace =
|
|
1349
1496
|
| Trace.CustomOrchestrationTraceMember
|
|
1350
1497
|
| Trace.FailureTraceMember
|
|
@@ -1352,6 +1499,7 @@ export type Trace =
|
|
|
1352
1499
|
| Trace.OrchestrationTraceMember
|
|
1353
1500
|
| Trace.PostProcessingTraceMember
|
|
1354
1501
|
| Trace.PreProcessingTraceMember
|
|
1502
|
+
| Trace.RoutingClassifierTraceMember
|
|
1355
1503
|
| Trace.$UnknownMember;
|
|
1356
1504
|
export declare namespace Trace {
|
|
1357
1505
|
interface GuardrailTraceMember {
|
|
@@ -1359,6 +1507,7 @@ export declare namespace Trace {
|
|
|
1359
1507
|
preProcessingTrace?: never;
|
|
1360
1508
|
orchestrationTrace?: never;
|
|
1361
1509
|
postProcessingTrace?: never;
|
|
1510
|
+
routingClassifierTrace?: never;
|
|
1362
1511
|
failureTrace?: never;
|
|
1363
1512
|
customOrchestrationTrace?: never;
|
|
1364
1513
|
$unknown?: never;
|
|
@@ -1368,6 +1517,7 @@ export declare namespace Trace {
|
|
|
1368
1517
|
preProcessingTrace: PreProcessingTrace;
|
|
1369
1518
|
orchestrationTrace?: never;
|
|
1370
1519
|
postProcessingTrace?: never;
|
|
1520
|
+
routingClassifierTrace?: never;
|
|
1371
1521
|
failureTrace?: never;
|
|
1372
1522
|
customOrchestrationTrace?: never;
|
|
1373
1523
|
$unknown?: never;
|
|
@@ -1377,6 +1527,7 @@ export declare namespace Trace {
|
|
|
1377
1527
|
preProcessingTrace?: never;
|
|
1378
1528
|
orchestrationTrace: OrchestrationTrace;
|
|
1379
1529
|
postProcessingTrace?: never;
|
|
1530
|
+
routingClassifierTrace?: never;
|
|
1380
1531
|
failureTrace?: never;
|
|
1381
1532
|
customOrchestrationTrace?: never;
|
|
1382
1533
|
$unknown?: never;
|
|
@@ -1386,6 +1537,17 @@ export declare namespace Trace {
|
|
|
1386
1537
|
preProcessingTrace?: never;
|
|
1387
1538
|
orchestrationTrace?: never;
|
|
1388
1539
|
postProcessingTrace: PostProcessingTrace;
|
|
1540
|
+
routingClassifierTrace?: never;
|
|
1541
|
+
failureTrace?: never;
|
|
1542
|
+
customOrchestrationTrace?: never;
|
|
1543
|
+
$unknown?: never;
|
|
1544
|
+
}
|
|
1545
|
+
interface RoutingClassifierTraceMember {
|
|
1546
|
+
guardrailTrace?: never;
|
|
1547
|
+
preProcessingTrace?: never;
|
|
1548
|
+
orchestrationTrace?: never;
|
|
1549
|
+
postProcessingTrace?: never;
|
|
1550
|
+
routingClassifierTrace: RoutingClassifierTrace;
|
|
1389
1551
|
failureTrace?: never;
|
|
1390
1552
|
customOrchestrationTrace?: never;
|
|
1391
1553
|
$unknown?: never;
|
|
@@ -1395,6 +1557,7 @@ export declare namespace Trace {
|
|
|
1395
1557
|
preProcessingTrace?: never;
|
|
1396
1558
|
orchestrationTrace?: never;
|
|
1397
1559
|
postProcessingTrace?: never;
|
|
1560
|
+
routingClassifierTrace?: never;
|
|
1398
1561
|
failureTrace: FailureTrace;
|
|
1399
1562
|
customOrchestrationTrace?: never;
|
|
1400
1563
|
$unknown?: never;
|
|
@@ -1404,6 +1567,7 @@ export declare namespace Trace {
|
|
|
1404
1567
|
preProcessingTrace?: never;
|
|
1405
1568
|
orchestrationTrace?: never;
|
|
1406
1569
|
postProcessingTrace?: never;
|
|
1570
|
+
routingClassifierTrace?: never;
|
|
1407
1571
|
failureTrace?: never;
|
|
1408
1572
|
customOrchestrationTrace: CustomOrchestrationTrace;
|
|
1409
1573
|
$unknown?: never;
|
|
@@ -1413,6 +1577,7 @@ export declare namespace Trace {
|
|
|
1413
1577
|
preProcessingTrace?: never;
|
|
1414
1578
|
orchestrationTrace?: never;
|
|
1415
1579
|
postProcessingTrace?: never;
|
|
1580
|
+
routingClassifierTrace?: never;
|
|
1416
1581
|
failureTrace?: never;
|
|
1417
1582
|
customOrchestrationTrace?: never;
|
|
1418
1583
|
$unknown: [string, any];
|
|
@@ -1422,6 +1587,7 @@ export declare namespace Trace {
|
|
|
1422
1587
|
preProcessingTrace: (value: PreProcessingTrace) => T;
|
|
1423
1588
|
orchestrationTrace: (value: OrchestrationTrace) => T;
|
|
1424
1589
|
postProcessingTrace: (value: PostProcessingTrace) => T;
|
|
1590
|
+
routingClassifierTrace: (value: RoutingClassifierTrace) => T;
|
|
1425
1591
|
failureTrace: (value: FailureTrace) => T;
|
|
1426
1592
|
customOrchestrationTrace: (value: CustomOrchestrationTrace) => T;
|
|
1427
1593
|
_: (name: string, value: any) => T;
|
|
@@ -1434,6 +1600,8 @@ export interface TracePart {
|
|
|
1434
1600
|
agentId?: string | undefined;
|
|
1435
1601
|
agentAliasId?: string | undefined;
|
|
1436
1602
|
agentVersion?: string | undefined;
|
|
1603
|
+
callerChain?: Caller[] | undefined;
|
|
1604
|
+
collaboratorName?: string | undefined;
|
|
1437
1605
|
}
|
|
1438
1606
|
export type ResponseStream =
|
|
1439
1607
|
| ResponseStream.AccessDeniedExceptionMember
|
|
@@ -2979,6 +3147,7 @@ export interface SessionState {
|
|
|
2979
3147
|
invocationId?: string | undefined;
|
|
2980
3148
|
files?: InputFile[] | undefined;
|
|
2981
3149
|
knowledgeBaseConfigurations?: KnowledgeBaseConfiguration[] | undefined;
|
|
3150
|
+
conversationHistory?: ConversationHistory | undefined;
|
|
2982
3151
|
}
|
|
2983
3152
|
export interface InvokeAgentRequest {
|
|
2984
3153
|
sessionState?: SessionState | undefined;
|
|
@@ -2990,6 +3159,7 @@ export interface InvokeAgentRequest {
|
|
|
2990
3159
|
inputText?: string | undefined;
|
|
2991
3160
|
memoryId?: string | undefined;
|
|
2992
3161
|
streamingConfigurations?: StreamingConfigurations | undefined;
|
|
3162
|
+
sourceArn?: string | undefined;
|
|
2993
3163
|
}
|
|
2994
3164
|
export declare const ActionGroupInvocationInputFilterSensitiveLog: (
|
|
2995
3165
|
obj: ActionGroupInvocationInput
|
|
@@ -3007,6 +3177,37 @@ export declare const FunctionSchemaFilterSensitiveLog: (
|
|
|
3007
3177
|
export declare const AgentActionGroupFilterSensitiveLog: (
|
|
3008
3178
|
obj: AgentActionGroup
|
|
3009
3179
|
) => any;
|
|
3180
|
+
export declare const ApiResultFilterSensitiveLog: (obj: ApiResult) => any;
|
|
3181
|
+
export declare const InvocationResultMemberFilterSensitiveLog: (
|
|
3182
|
+
obj: InvocationResultMember
|
|
3183
|
+
) => any;
|
|
3184
|
+
export declare const ReturnControlResultsFilterSensitiveLog: (
|
|
3185
|
+
obj: ReturnControlResults
|
|
3186
|
+
) => any;
|
|
3187
|
+
export declare const AgentCollaboratorInputPayloadFilterSensitiveLog: (
|
|
3188
|
+
obj: AgentCollaboratorInputPayload
|
|
3189
|
+
) => any;
|
|
3190
|
+
export declare const AgentCollaboratorInvocationInputFilterSensitiveLog: (
|
|
3191
|
+
obj: AgentCollaboratorInvocationInput
|
|
3192
|
+
) => any;
|
|
3193
|
+
export declare const ApiInvocationInputFilterSensitiveLog: (
|
|
3194
|
+
obj: ApiInvocationInput
|
|
3195
|
+
) => any;
|
|
3196
|
+
export declare const FunctionInvocationInputFilterSensitiveLog: (
|
|
3197
|
+
obj: FunctionInvocationInput
|
|
3198
|
+
) => any;
|
|
3199
|
+
export declare const InvocationInputMemberFilterSensitiveLog: (
|
|
3200
|
+
obj: InvocationInputMember
|
|
3201
|
+
) => any;
|
|
3202
|
+
export declare const ReturnControlPayloadFilterSensitiveLog: (
|
|
3203
|
+
obj: ReturnControlPayload
|
|
3204
|
+
) => any;
|
|
3205
|
+
export declare const AgentCollaboratorOutputPayloadFilterSensitiveLog: (
|
|
3206
|
+
obj: AgentCollaboratorOutputPayload
|
|
3207
|
+
) => any;
|
|
3208
|
+
export declare const AgentCollaboratorInvocationOutputFilterSensitiveLog: (
|
|
3209
|
+
obj: AgentCollaboratorInvocationOutput
|
|
3210
|
+
) => any;
|
|
3010
3211
|
export declare const FlowInputContentFilterSensitiveLog: (
|
|
3011
3212
|
obj: FlowInputContent
|
|
3012
3213
|
) => any;
|
|
@@ -3051,6 +3252,11 @@ export declare const FlowResponseStreamFilterSensitiveLog: (
|
|
|
3051
3252
|
export declare const InvokeFlowResponseFilterSensitiveLog: (
|
|
3052
3253
|
obj: InvokeFlowResponse
|
|
3053
3254
|
) => any;
|
|
3255
|
+
export declare const ContentBlockFilterSensitiveLog: (obj: ContentBlock) => any;
|
|
3256
|
+
export declare const MessageFilterSensitiveLog: (obj: Message) => any;
|
|
3257
|
+
export declare const ConversationHistoryFilterSensitiveLog: (
|
|
3258
|
+
obj: ConversationHistory
|
|
3259
|
+
) => any;
|
|
3054
3260
|
export declare const ByteContentFileFilterSensitiveLog: (
|
|
3055
3261
|
obj: ByteContentFile
|
|
3056
3262
|
) => any;
|
|
@@ -3074,10 +3280,6 @@ export declare const VectorSearchBedrockRerankingConfigurationFilterSensitiveLog
|
|
|
3074
3280
|
export declare const VectorSearchRerankingConfigurationFilterSensitiveLog: (
|
|
3075
3281
|
obj: VectorSearchRerankingConfiguration
|
|
3076
3282
|
) => any;
|
|
3077
|
-
export declare const ApiResultFilterSensitiveLog: (obj: ApiResult) => any;
|
|
3078
|
-
export declare const InvocationResultMemberFilterSensitiveLog: (
|
|
3079
|
-
obj: InvocationResultMember
|
|
3080
|
-
) => any;
|
|
3081
3283
|
export declare const TextResponsePartFilterSensitiveLog: (
|
|
3082
3284
|
obj: TextResponsePart
|
|
3083
3285
|
) => any;
|
|
@@ -3098,15 +3300,6 @@ export declare const AttributionFilterSensitiveLog: (obj: Attribution) => any;
|
|
|
3098
3300
|
export declare const PayloadPartFilterSensitiveLog: (obj: PayloadPart) => any;
|
|
3099
3301
|
export declare const OutputFileFilterSensitiveLog: (obj: OutputFile) => any;
|
|
3100
3302
|
export declare const FilePartFilterSensitiveLog: (obj: FilePart) => any;
|
|
3101
|
-
export declare const ApiInvocationInputFilterSensitiveLog: (
|
|
3102
|
-
obj: ApiInvocationInput
|
|
3103
|
-
) => any;
|
|
3104
|
-
export declare const InvocationInputMemberFilterSensitiveLog: (
|
|
3105
|
-
obj: InvocationInputMember
|
|
3106
|
-
) => any;
|
|
3107
|
-
export declare const ReturnControlPayloadFilterSensitiveLog: (
|
|
3108
|
-
obj: ReturnControlPayload
|
|
3109
|
-
) => any;
|
|
3110
3303
|
export declare const CustomOrchestrationTraceEventFilterSensitiveLog: (
|
|
3111
3304
|
obj: CustomOrchestrationTraceEvent
|
|
3112
3305
|
) => any;
|
|
@@ -3197,6 +3390,12 @@ export declare const PreProcessingModelInvocationOutputFilterSensitiveLog: (
|
|
|
3197
3390
|
export declare const PreProcessingTraceFilterSensitiveLog: (
|
|
3198
3391
|
obj: PreProcessingTrace
|
|
3199
3392
|
) => any;
|
|
3393
|
+
export declare const RoutingClassifierModelInvocationOutputFilterSensitiveLog: (
|
|
3394
|
+
obj: RoutingClassifierModelInvocationOutput
|
|
3395
|
+
) => any;
|
|
3396
|
+
export declare const RoutingClassifierTraceFilterSensitiveLog: (
|
|
3397
|
+
obj: RoutingClassifierTrace
|
|
3398
|
+
) => any;
|
|
3200
3399
|
export declare const TraceFilterSensitiveLog: (obj: Trace) => any;
|
|
3201
3400
|
export declare const TracePartFilterSensitiveLog: (obj: TracePart) => any;
|
|
3202
3401
|
export declare const ResponseStreamFilterSensitiveLog: (
|
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.705.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",
|