@aws-sdk/client-bedrock-agentcore 3.940.0 → 3.943.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 +8 -0
- package/dist-cjs/index.js +132 -14
- package/dist-es/BedrockAgentCore.js +2 -0
- package/dist-es/commands/EvaluateCommand.js +16 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/errors.js +12 -0
- package/dist-es/schemas/schemas_0.js +108 -15
- package/dist-types/BedrockAgentCore.d.ts +7 -0
- package/dist-types/BedrockAgentCoreClient.d.ts +3 -2
- package/dist-types/commands/EvaluateCommand.d.ts +137 -0
- package/dist-types/commands/GetBrowserSessionCommand.d.ts +1 -1
- package/dist-types/commands/GetCodeInterpreterSessionCommand.d.ts +1 -1
- package/dist-types/commands/GetMemoryRecordCommand.d.ts +5 -0
- package/dist-types/commands/InvokeCodeInterpreterCommand.d.ts +1 -1
- package/dist-types/commands/ListBrowserSessionsCommand.d.ts +1 -1
- package/dist-types/commands/ListCodeInterpreterSessionsCommand.d.ts +1 -1
- package/dist-types/commands/ListMemoryRecordsCommand.d.ts +5 -0
- package/dist-types/commands/RetrieveMemoryRecordsCommand.d.ts +18 -0
- package/dist-types/commands/StartBrowserSessionCommand.d.ts +1 -1
- package/dist-types/commands/StartCodeInterpreterSessionCommand.d.ts +1 -1
- package/dist-types/commands/StopBrowserSessionCommand.d.ts +1 -1
- package/dist-types/commands/StopCodeInterpreterSessionCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/errors.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +275 -0
- package/dist-types/schemas/schemas_0.d.ts +17 -0
- package/dist-types/ts3.4/BedrockAgentCore.d.ts +17 -0
- package/dist-types/ts3.4/BedrockAgentCoreClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/EvaluateCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/errors.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +96 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +17 -0
- package/package.json +5 -5
|
@@ -276,6 +276,94 @@ export interface CompleteResourceTokenAuthRequest {
|
|
|
276
276
|
sessionUri: string | undefined;
|
|
277
277
|
}
|
|
278
278
|
export interface CompleteResourceTokenAuthResponse {}
|
|
279
|
+
export type EvaluationInput =
|
|
280
|
+
| EvaluationInput.SessionSpansMember
|
|
281
|
+
| EvaluationInput.$UnknownMember;
|
|
282
|
+
export declare namespace EvaluationInput {
|
|
283
|
+
interface SessionSpansMember {
|
|
284
|
+
sessionSpans: __DocumentType[];
|
|
285
|
+
$unknown?: never;
|
|
286
|
+
}
|
|
287
|
+
interface $UnknownMember {
|
|
288
|
+
sessionSpans?: never;
|
|
289
|
+
$unknown: [string, any];
|
|
290
|
+
}
|
|
291
|
+
interface Visitor<T> {
|
|
292
|
+
sessionSpans: (value: __DocumentType[]) => T;
|
|
293
|
+
_: (name: string, value: any) => T;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
export type EvaluationTarget =
|
|
297
|
+
| EvaluationTarget.SpanIdsMember
|
|
298
|
+
| EvaluationTarget.TraceIdsMember
|
|
299
|
+
| EvaluationTarget.$UnknownMember;
|
|
300
|
+
export declare namespace EvaluationTarget {
|
|
301
|
+
interface SpanIdsMember {
|
|
302
|
+
spanIds: string[];
|
|
303
|
+
traceIds?: never;
|
|
304
|
+
$unknown?: never;
|
|
305
|
+
}
|
|
306
|
+
interface TraceIdsMember {
|
|
307
|
+
spanIds?: never;
|
|
308
|
+
traceIds: string[];
|
|
309
|
+
$unknown?: never;
|
|
310
|
+
}
|
|
311
|
+
interface $UnknownMember {
|
|
312
|
+
spanIds?: never;
|
|
313
|
+
traceIds?: never;
|
|
314
|
+
$unknown: [string, any];
|
|
315
|
+
}
|
|
316
|
+
interface Visitor<T> {
|
|
317
|
+
spanIds: (value: string[]) => T;
|
|
318
|
+
traceIds: (value: string[]) => T;
|
|
319
|
+
_: (name: string, value: any) => T;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
export interface EvaluateRequest {
|
|
323
|
+
evaluatorId: string | undefined;
|
|
324
|
+
evaluationInput: EvaluationInput | undefined;
|
|
325
|
+
evaluationTarget?: EvaluationTarget | undefined;
|
|
326
|
+
}
|
|
327
|
+
export interface SpanContext {
|
|
328
|
+
sessionId: string | undefined;
|
|
329
|
+
traceId?: string | undefined;
|
|
330
|
+
spanId?: string | undefined;
|
|
331
|
+
}
|
|
332
|
+
export type Context = Context.SpanContextMember | Context.$UnknownMember;
|
|
333
|
+
export declare namespace Context {
|
|
334
|
+
interface SpanContextMember {
|
|
335
|
+
spanContext: SpanContext;
|
|
336
|
+
$unknown?: never;
|
|
337
|
+
}
|
|
338
|
+
interface $UnknownMember {
|
|
339
|
+
spanContext?: never;
|
|
340
|
+
$unknown: [string, any];
|
|
341
|
+
}
|
|
342
|
+
interface Visitor<T> {
|
|
343
|
+
spanContext: (value: SpanContext) => T;
|
|
344
|
+
_: (name: string, value: any) => T;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
export interface TokenUsage {
|
|
348
|
+
inputTokens?: number | undefined;
|
|
349
|
+
outputTokens?: number | undefined;
|
|
350
|
+
totalTokens?: number | undefined;
|
|
351
|
+
}
|
|
352
|
+
export interface EvaluationResultContent {
|
|
353
|
+
evaluatorArn: string | undefined;
|
|
354
|
+
evaluatorId: string | undefined;
|
|
355
|
+
evaluatorName: string | undefined;
|
|
356
|
+
explanation?: string | undefined;
|
|
357
|
+
context: Context | undefined;
|
|
358
|
+
value?: number | undefined;
|
|
359
|
+
label?: string | undefined;
|
|
360
|
+
tokenUsage?: TokenUsage | undefined;
|
|
361
|
+
errorMessage?: string | undefined;
|
|
362
|
+
errorCode?: string | undefined;
|
|
363
|
+
}
|
|
364
|
+
export interface EvaluateResponse {
|
|
365
|
+
evaluationResults: EvaluationResultContent[] | undefined;
|
|
366
|
+
}
|
|
279
367
|
export interface GetResourceApiKeyRequest {
|
|
280
368
|
workloadIdentityToken: string | undefined;
|
|
281
369
|
resourceCredentialProviderName: string | undefined;
|
|
@@ -691,6 +779,7 @@ export interface MemoryRecord {
|
|
|
691
779
|
memoryStrategyId: string | undefined;
|
|
692
780
|
namespaces: string[] | undefined;
|
|
693
781
|
createdAt: Date | undefined;
|
|
782
|
+
metadata?: Record<string, MetadataValue> | undefined;
|
|
694
783
|
}
|
|
695
784
|
export interface GetMemoryRecordOutput {
|
|
696
785
|
memoryRecord: MemoryRecord | undefined;
|
|
@@ -824,6 +913,7 @@ export interface MemoryRecordSummary {
|
|
|
824
913
|
namespaces: string[] | undefined;
|
|
825
914
|
createdAt: Date | undefined;
|
|
826
915
|
score?: number | undefined;
|
|
916
|
+
metadata?: Record<string, MetadataValue> | undefined;
|
|
827
917
|
}
|
|
828
918
|
export interface ListMemoryRecordsOutput {
|
|
829
919
|
memoryRecordSummaries: MemoryRecordSummary[] | undefined;
|
|
@@ -844,10 +934,16 @@ export interface ListSessionsOutput {
|
|
|
844
934
|
sessionSummaries: SessionSummary[] | undefined;
|
|
845
935
|
nextToken?: string | undefined;
|
|
846
936
|
}
|
|
937
|
+
export interface MemoryMetadataFilterExpression {
|
|
938
|
+
left: LeftExpression | undefined;
|
|
939
|
+
operator: OperatorType | undefined;
|
|
940
|
+
right?: RightExpression | undefined;
|
|
941
|
+
}
|
|
847
942
|
export interface SearchCriteria {
|
|
848
943
|
searchQuery: string | undefined;
|
|
849
944
|
memoryStrategyId?: string | undefined;
|
|
850
945
|
topK?: number | undefined;
|
|
946
|
+
metadataFilters?: MemoryMetadataFilterExpression[] | undefined;
|
|
851
947
|
}
|
|
852
948
|
export interface RetrieveMemoryRecordsInput {
|
|
853
949
|
memoryId: string | undefined;
|
|
@@ -12,6 +12,7 @@ export declare var AuthorizationUrlType: StaticSimpleSchema;
|
|
|
12
12
|
export declare var Body: StaticSimpleSchema;
|
|
13
13
|
export declare var CustomRequestValueType: StaticSimpleSchema;
|
|
14
14
|
export declare var Document: StaticSimpleSchema;
|
|
15
|
+
export declare var EvaluationExplanation: StaticSimpleSchema;
|
|
15
16
|
export declare var ResponseStream: StaticSimpleSchema;
|
|
16
17
|
export declare var SensitiveString: StaticSimpleSchema;
|
|
17
18
|
export declare var State: StaticSimpleSchema;
|
|
@@ -44,6 +45,10 @@ export declare var DeleteEventInput: StaticStructureSchema;
|
|
|
44
45
|
export declare var DeleteEventOutput: StaticStructureSchema;
|
|
45
46
|
export declare var DeleteMemoryRecordInput: StaticStructureSchema;
|
|
46
47
|
export declare var DeleteMemoryRecordOutput: StaticStructureSchema;
|
|
48
|
+
export declare var DuplicateIdException: StaticErrorSchema;
|
|
49
|
+
export declare var EvaluateRequest: StaticStructureSchema;
|
|
50
|
+
export declare var EvaluateResponse: StaticStructureSchema;
|
|
51
|
+
export declare var EvaluationResultContent: StaticStructureSchema;
|
|
47
52
|
export declare var Event: StaticStructureSchema;
|
|
48
53
|
export declare var EventMetadataFilterExpression: StaticStructureSchema;
|
|
49
54
|
export declare var ExtractionJob: StaticStructureSchema;
|
|
@@ -92,6 +97,7 @@ export declare var ListMemoryRecordsOutput: StaticStructureSchema;
|
|
|
92
97
|
export declare var ListSessionsInput: StaticStructureSchema;
|
|
93
98
|
export declare var ListSessionsOutput: StaticStructureSchema;
|
|
94
99
|
export declare var LiveViewStream: StaticStructureSchema;
|
|
100
|
+
export declare var MemoryMetadataFilterExpression: StaticStructureSchema;
|
|
95
101
|
export declare var MemoryRecord: StaticStructureSchema;
|
|
96
102
|
export declare var MemoryRecordCreateInput: StaticStructureSchema;
|
|
97
103
|
export declare var MemoryRecordDeleteInput: StaticStructureSchema;
|
|
@@ -108,6 +114,7 @@ export declare var SearchCriteria: StaticStructureSchema;
|
|
|
108
114
|
export declare var ServiceException: StaticErrorSchema;
|
|
109
115
|
export declare var ServiceQuotaExceededException: StaticErrorSchema;
|
|
110
116
|
export declare var SessionSummary: StaticStructureSchema;
|
|
117
|
+
export declare var SpanContext: StaticStructureSchema;
|
|
111
118
|
export declare var StartBrowserSessionRequest: StaticStructureSchema;
|
|
112
119
|
export declare var StartBrowserSessionResponse: StaticStructureSchema;
|
|
113
120
|
export declare var StartCodeInterpreterSessionRequest: StaticStructureSchema;
|
|
@@ -122,6 +129,7 @@ export declare var StopRuntimeSessionRequest: StaticStructureSchema;
|
|
|
122
129
|
export declare var StopRuntimeSessionResponse: StaticStructureSchema;
|
|
123
130
|
export declare var ThrottledException: StaticErrorSchema;
|
|
124
131
|
export declare var ThrottlingException: StaticErrorSchema;
|
|
132
|
+
export declare var TokenUsage: StaticStructureSchema;
|
|
125
133
|
export declare var ToolArguments: StaticStructureSchema;
|
|
126
134
|
export declare var ToolResultStructuredContent: StaticStructureSchema;
|
|
127
135
|
export declare var UnauthorizedException: StaticErrorSchema;
|
|
@@ -136,10 +144,12 @@ export declare var ActorSummaryList: StaticListSchema;
|
|
|
136
144
|
export declare var BrowserSessionSummaries: StaticListSchema;
|
|
137
145
|
export declare var CodeInterpreterSessionSummaries: StaticListSchema;
|
|
138
146
|
export declare var ContentBlockList: StaticListSchema;
|
|
147
|
+
export declare var EvaluationResults: StaticListSchema;
|
|
139
148
|
export declare var EventList: StaticListSchema;
|
|
140
149
|
export declare var EventMetadataFilterList: StaticListSchema;
|
|
141
150
|
export declare var ExtractionJobMetadataList: StaticListSchema;
|
|
142
151
|
export declare var InputContentBlockList: StaticListSchema;
|
|
152
|
+
export declare var MemoryMetadataFilterList: StaticListSchema;
|
|
143
153
|
export declare var MemoryRecordsCreateInputList: StaticListSchema;
|
|
144
154
|
export declare var MemoryRecordsDeleteInputList: StaticListSchema;
|
|
145
155
|
export declare var MemoryRecordsOutputList: StaticListSchema;
|
|
@@ -150,12 +160,18 @@ export declare var NamespacesList: number;
|
|
|
150
160
|
export declare var PayloadTypeList: StaticListSchema;
|
|
151
161
|
export declare var ScopesListType: number;
|
|
152
162
|
export declare var SessionSummaryList: StaticListSchema;
|
|
163
|
+
export declare var SpanIds: number;
|
|
164
|
+
export declare var Spans: StaticListSchema;
|
|
153
165
|
export declare var StringList: number;
|
|
166
|
+
export declare var TraceIds: number;
|
|
154
167
|
export declare var ValidationExceptionFieldList: StaticListSchema;
|
|
155
168
|
export declare var CustomRequestParametersType: StaticMapSchema;
|
|
156
169
|
export declare var MetadataMap: StaticMapSchema;
|
|
157
170
|
export declare var CodeInterpreterStreamOutput: StaticStructureSchema;
|
|
158
171
|
export declare var Content: StaticStructureSchema;
|
|
172
|
+
export declare var Context: StaticStructureSchema;
|
|
173
|
+
export declare var EvaluationInput: StaticStructureSchema;
|
|
174
|
+
export declare var EvaluationTarget: StaticStructureSchema;
|
|
159
175
|
export declare var ExtractionJobMessages: StaticStructureSchema;
|
|
160
176
|
export declare var LeftExpression: StaticStructureSchema;
|
|
161
177
|
export declare var MemoryContent: StaticStructureSchema;
|
|
@@ -171,6 +187,7 @@ export declare var CompleteResourceTokenAuth: StaticOperationSchema;
|
|
|
171
187
|
export declare var CreateEvent: StaticOperationSchema;
|
|
172
188
|
export declare var DeleteEvent: StaticOperationSchema;
|
|
173
189
|
export declare var DeleteMemoryRecord: StaticOperationSchema;
|
|
190
|
+
export declare var Evaluate: StaticOperationSchema;
|
|
174
191
|
export declare var GetAgentCard: StaticOperationSchema;
|
|
175
192
|
export declare var GetBrowserSession: StaticOperationSchema;
|
|
176
193
|
export declare var GetCodeInterpreterSession: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-agentcore",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Agentcore Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.943.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-agentcore",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.943.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.943.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.936.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.936.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.936.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.943.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.936.0",
|
|
30
30
|
"@aws-sdk/types": "3.936.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.936.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.936.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.943.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.3",
|
|
35
35
|
"@smithy/core": "^3.18.5",
|
|
36
36
|
"@smithy/eventstream-serde-browser": "^4.2.5",
|