@aws-sdk/client-bedrock-agentcore 3.940.0 → 3.946.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 +207 -537
- package/dist-cjs/runtimeConfig.browser.js +2 -2
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-es/BedrockAgentCore.js +2 -0
- package/dist-es/BedrockAgentCoreClient.js +2 -2
- 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/runtimeConfig.browser.js +2 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/schemas/schemas_0.js +183 -538
- package/dist-types/BedrockAgentCore.d.ts +8 -1
- package/dist-types/BedrockAgentCoreClient.d.ts +14 -13
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +2 -2
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +2 -2
- package/dist-types/commands/BatchCreateMemoryRecordsCommand.d.ts +3 -3
- package/dist-types/commands/BatchDeleteMemoryRecordsCommand.d.ts +3 -3
- package/dist-types/commands/BatchUpdateMemoryRecordsCommand.d.ts +3 -3
- package/dist-types/commands/CompleteResourceTokenAuthCommand.d.ts +3 -3
- package/dist-types/commands/CreateEventCommand.d.ts +3 -3
- package/dist-types/commands/DeleteEventCommand.d.ts +3 -3
- package/dist-types/commands/DeleteMemoryRecordCommand.d.ts +3 -3
- package/dist-types/commands/EvaluateCommand.d.ts +137 -0
- package/dist-types/commands/GetAgentCardCommand.d.ts +3 -3
- package/dist-types/commands/GetBrowserSessionCommand.d.ts +4 -4
- package/dist-types/commands/GetCodeInterpreterSessionCommand.d.ts +4 -4
- package/dist-types/commands/GetEventCommand.d.ts +3 -3
- package/dist-types/commands/GetMemoryRecordCommand.d.ts +8 -3
- package/dist-types/commands/GetResourceApiKeyCommand.d.ts +3 -3
- package/dist-types/commands/GetResourceOauth2TokenCommand.d.ts +3 -3
- package/dist-types/commands/GetWorkloadAccessTokenCommand.d.ts +3 -3
- package/dist-types/commands/GetWorkloadAccessTokenForJWTCommand.d.ts +3 -3
- package/dist-types/commands/GetWorkloadAccessTokenForUserIdCommand.d.ts +3 -3
- package/dist-types/commands/InvokeAgentRuntimeCommand.d.ts +2 -2
- package/dist-types/commands/InvokeCodeInterpreterCommand.d.ts +4 -4
- package/dist-types/commands/ListActorsCommand.d.ts +3 -3
- package/dist-types/commands/ListBrowserSessionsCommand.d.ts +4 -4
- package/dist-types/commands/ListCodeInterpreterSessionsCommand.d.ts +4 -4
- package/dist-types/commands/ListEventsCommand.d.ts +3 -3
- package/dist-types/commands/ListMemoryExtractionJobsCommand.d.ts +3 -3
- package/dist-types/commands/ListMemoryRecordsCommand.d.ts +8 -3
- package/dist-types/commands/ListSessionsCommand.d.ts +3 -3
- package/dist-types/commands/RetrieveMemoryRecordsCommand.d.ts +21 -3
- package/dist-types/commands/StartBrowserSessionCommand.d.ts +4 -4
- package/dist-types/commands/StartCodeInterpreterSessionCommand.d.ts +4 -4
- package/dist-types/commands/StartMemoryExtractionJobCommand.d.ts +3 -3
- package/dist-types/commands/StopBrowserSessionCommand.d.ts +4 -4
- package/dist-types/commands/StopCodeInterpreterSessionCommand.d.ts +4 -4
- package/dist-types/commands/StopRuntimeSessionCommand.d.ts +3 -3
- package/dist-types/commands/UpdateBrowserStreamCommand.d.ts +3 -3
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +13 -1
- package/dist-types/endpoint/endpointResolver.d.ts +5 -2
- package/dist-types/extensionConfiguration.d.ts +4 -4
- package/dist-types/models/BedrockAgentCoreServiceException.d.ts +1 -1
- package/dist-types/models/errors.d.ts +13 -1
- package/dist-types/models/models_0.d.ts +275 -0
- package/dist-types/pagination/Interfaces.d.ts +1 -1
- package/dist-types/pagination/ListActorsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEventsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMemoryExtractionJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMemoryRecordsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSessionsPaginator.d.ts +1 -1
- package/dist-types/pagination/RetrieveMemoryRecordsPaginator.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/runtimeConfig.shared.d.ts +1 -1
- package/dist-types/runtimeExtensions.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +18 -1
- package/dist-types/ts3.4/BedrockAgentCore.d.ts +17 -0
- package/dist-types/ts3.4/BedrockAgentCoreClient.d.ts +9 -3
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
- 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/BedrockAgentCoreServiceException.d.ts +1 -1
- 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 +13 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Paginator } from "@smithy/types";
|
|
1
|
+
import type { Paginator } from "@smithy/types";
|
|
2
2
|
import { ListMemoryExtractionJobsCommandInput, ListMemoryExtractionJobsCommandOutput } from "../commands/ListMemoryExtractionJobsCommand";
|
|
3
3
|
import { BedrockAgentCorePaginationConfiguration } from "./Interfaces";
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Paginator } from "@smithy/types";
|
|
1
|
+
import type { Paginator } from "@smithy/types";
|
|
2
2
|
import { ListMemoryRecordsCommandInput, ListMemoryRecordsCommandOutput } from "../commands/ListMemoryRecordsCommand";
|
|
3
3
|
import { BedrockAgentCorePaginationConfiguration } from "./Interfaces";
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Paginator } from "@smithy/types";
|
|
1
|
+
import type { Paginator } from "@smithy/types";
|
|
2
2
|
import { ListSessionsCommandInput, ListSessionsCommandOutput } from "../commands/ListSessionsCommand";
|
|
3
3
|
import { BedrockAgentCorePaginationConfiguration } from "./Interfaces";
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Paginator } from "@smithy/types";
|
|
1
|
+
import type { Paginator } from "@smithy/types";
|
|
2
2
|
import { RetrieveMemoryRecordsCommandInput, RetrieveMemoryRecordsCommandOutput } from "../commands/RetrieveMemoryRecordsCommand";
|
|
3
3
|
import { BedrockAgentCorePaginationConfiguration } from "./Interfaces";
|
|
4
4
|
/**
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { StaticErrorSchema, StaticListSchema, StaticMapSchema, StaticOperationSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
|
|
1
|
+
import type { StaticErrorSchema, StaticListSchema, StaticMapSchema, StaticOperationSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
|
|
2
2
|
export declare var AccessTokenType: StaticSimpleSchema;
|
|
3
3
|
export declare var ApiKeyType: StaticSimpleSchema;
|
|
4
4
|
export declare var AuthorizationUrlType: StaticSimpleSchema;
|
|
5
5
|
export declare var Body: StaticSimpleSchema;
|
|
6
6
|
export declare var CustomRequestValueType: StaticSimpleSchema;
|
|
7
7
|
export declare var Document: StaticSimpleSchema;
|
|
8
|
+
export declare var EvaluationExplanation: StaticSimpleSchema;
|
|
8
9
|
export declare var ResponseStream: StaticSimpleSchema;
|
|
9
10
|
export declare var SensitiveString: StaticSimpleSchema;
|
|
10
11
|
export declare var State: StaticSimpleSchema;
|
|
@@ -37,6 +38,10 @@ export declare var DeleteEventInput: StaticStructureSchema;
|
|
|
37
38
|
export declare var DeleteEventOutput: StaticStructureSchema;
|
|
38
39
|
export declare var DeleteMemoryRecordInput: StaticStructureSchema;
|
|
39
40
|
export declare var DeleteMemoryRecordOutput: StaticStructureSchema;
|
|
41
|
+
export declare var DuplicateIdException: StaticErrorSchema;
|
|
42
|
+
export declare var EvaluateRequest: StaticStructureSchema;
|
|
43
|
+
export declare var EvaluateResponse: StaticStructureSchema;
|
|
44
|
+
export declare var EvaluationResultContent: StaticStructureSchema;
|
|
40
45
|
export declare var Event: StaticStructureSchema;
|
|
41
46
|
export declare var EventMetadataFilterExpression: StaticStructureSchema;
|
|
42
47
|
export declare var ExtractionJob: StaticStructureSchema;
|
|
@@ -85,6 +90,7 @@ export declare var ListMemoryRecordsOutput: StaticStructureSchema;
|
|
|
85
90
|
export declare var ListSessionsInput: StaticStructureSchema;
|
|
86
91
|
export declare var ListSessionsOutput: StaticStructureSchema;
|
|
87
92
|
export declare var LiveViewStream: StaticStructureSchema;
|
|
93
|
+
export declare var MemoryMetadataFilterExpression: StaticStructureSchema;
|
|
88
94
|
export declare var MemoryRecord: StaticStructureSchema;
|
|
89
95
|
export declare var MemoryRecordCreateInput: StaticStructureSchema;
|
|
90
96
|
export declare var MemoryRecordDeleteInput: StaticStructureSchema;
|
|
@@ -101,6 +107,7 @@ export declare var SearchCriteria: StaticStructureSchema;
|
|
|
101
107
|
export declare var ServiceException: StaticErrorSchema;
|
|
102
108
|
export declare var ServiceQuotaExceededException: StaticErrorSchema;
|
|
103
109
|
export declare var SessionSummary: StaticStructureSchema;
|
|
110
|
+
export declare var SpanContext: StaticStructureSchema;
|
|
104
111
|
export declare var StartBrowserSessionRequest: StaticStructureSchema;
|
|
105
112
|
export declare var StartBrowserSessionResponse: StaticStructureSchema;
|
|
106
113
|
export declare var StartCodeInterpreterSessionRequest: StaticStructureSchema;
|
|
@@ -115,6 +122,7 @@ export declare var StopRuntimeSessionRequest: StaticStructureSchema;
|
|
|
115
122
|
export declare var StopRuntimeSessionResponse: StaticStructureSchema;
|
|
116
123
|
export declare var ThrottledException: StaticErrorSchema;
|
|
117
124
|
export declare var ThrottlingException: StaticErrorSchema;
|
|
125
|
+
export declare var TokenUsage: StaticStructureSchema;
|
|
118
126
|
export declare var ToolArguments: StaticStructureSchema;
|
|
119
127
|
export declare var ToolResultStructuredContent: StaticStructureSchema;
|
|
120
128
|
export declare var UnauthorizedException: StaticErrorSchema;
|
|
@@ -129,10 +137,12 @@ export declare var ActorSummaryList: StaticListSchema;
|
|
|
129
137
|
export declare var BrowserSessionSummaries: StaticListSchema;
|
|
130
138
|
export declare var CodeInterpreterSessionSummaries: StaticListSchema;
|
|
131
139
|
export declare var ContentBlockList: StaticListSchema;
|
|
140
|
+
export declare var EvaluationResults: StaticListSchema;
|
|
132
141
|
export declare var EventList: StaticListSchema;
|
|
133
142
|
export declare var EventMetadataFilterList: StaticListSchema;
|
|
134
143
|
export declare var ExtractionJobMetadataList: StaticListSchema;
|
|
135
144
|
export declare var InputContentBlockList: StaticListSchema;
|
|
145
|
+
export declare var MemoryMetadataFilterList: StaticListSchema;
|
|
136
146
|
export declare var MemoryRecordsCreateInputList: StaticListSchema;
|
|
137
147
|
export declare var MemoryRecordsDeleteInputList: StaticListSchema;
|
|
138
148
|
export declare var MemoryRecordsOutputList: StaticListSchema;
|
|
@@ -143,12 +153,18 @@ export declare var NamespacesList: number;
|
|
|
143
153
|
export declare var PayloadTypeList: StaticListSchema;
|
|
144
154
|
export declare var ScopesListType: number;
|
|
145
155
|
export declare var SessionSummaryList: StaticListSchema;
|
|
156
|
+
export declare var SpanIds: number;
|
|
157
|
+
export declare var Spans: StaticListSchema;
|
|
146
158
|
export declare var StringList: number;
|
|
159
|
+
export declare var TraceIds: number;
|
|
147
160
|
export declare var ValidationExceptionFieldList: StaticListSchema;
|
|
148
161
|
export declare var CustomRequestParametersType: StaticMapSchema;
|
|
149
162
|
export declare var MetadataMap: StaticMapSchema;
|
|
150
163
|
export declare var CodeInterpreterStreamOutput: StaticStructureSchema;
|
|
151
164
|
export declare var Content: StaticStructureSchema;
|
|
165
|
+
export declare var Context: StaticStructureSchema;
|
|
166
|
+
export declare var EvaluationInput: StaticStructureSchema;
|
|
167
|
+
export declare var EvaluationTarget: StaticStructureSchema;
|
|
152
168
|
export declare var ExtractionJobMessages: StaticStructureSchema;
|
|
153
169
|
export declare var LeftExpression: StaticStructureSchema;
|
|
154
170
|
export declare var MemoryContent: StaticStructureSchema;
|
|
@@ -164,6 +180,7 @@ export declare var CompleteResourceTokenAuth: StaticOperationSchema;
|
|
|
164
180
|
export declare var CreateEvent: StaticOperationSchema;
|
|
165
181
|
export declare var DeleteEvent: StaticOperationSchema;
|
|
166
182
|
export declare var DeleteMemoryRecord: StaticOperationSchema;
|
|
183
|
+
export declare var Evaluate: StaticOperationSchema;
|
|
167
184
|
export declare var GetAgentCard: StaticOperationSchema;
|
|
168
185
|
export declare var GetBrowserSession: StaticOperationSchema;
|
|
169
186
|
export declare var GetCodeInterpreterSession: StaticOperationSchema;
|
|
@@ -28,6 +28,10 @@ import {
|
|
|
28
28
|
DeleteMemoryRecordCommandInput,
|
|
29
29
|
DeleteMemoryRecordCommandOutput,
|
|
30
30
|
} from "./commands/DeleteMemoryRecordCommand";
|
|
31
|
+
import {
|
|
32
|
+
EvaluateCommandInput,
|
|
33
|
+
EvaluateCommandOutput,
|
|
34
|
+
} from "./commands/EvaluateCommand";
|
|
31
35
|
import {
|
|
32
36
|
GetAgentCardCommandInput,
|
|
33
37
|
GetAgentCardCommandOutput,
|
|
@@ -228,6 +232,19 @@ export interface BedrockAgentCore {
|
|
|
228
232
|
options: __HttpHandlerOptions,
|
|
229
233
|
cb: (err: any, data?: DeleteMemoryRecordCommandOutput) => void
|
|
230
234
|
): void;
|
|
235
|
+
evaluate(
|
|
236
|
+
args: EvaluateCommandInput,
|
|
237
|
+
options?: __HttpHandlerOptions
|
|
238
|
+
): Promise<EvaluateCommandOutput>;
|
|
239
|
+
evaluate(
|
|
240
|
+
args: EvaluateCommandInput,
|
|
241
|
+
cb: (err: any, data?: EvaluateCommandOutput) => void
|
|
242
|
+
): void;
|
|
243
|
+
evaluate(
|
|
244
|
+
args: EvaluateCommandInput,
|
|
245
|
+
options: __HttpHandlerOptions,
|
|
246
|
+
cb: (err: any, data?: EvaluateCommandOutput) => void
|
|
247
|
+
): void;
|
|
231
248
|
getAgentCard(
|
|
232
249
|
args: GetAgentCardCommandInput,
|
|
233
250
|
options?: __HttpHandlerOptions
|
|
@@ -24,13 +24,12 @@ import {
|
|
|
24
24
|
} from "@smithy/middleware-retry";
|
|
25
25
|
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
26
26
|
import {
|
|
27
|
-
Client as __Client,
|
|
28
27
|
DefaultsMode as __DefaultsMode,
|
|
29
28
|
SmithyConfiguration as __SmithyConfiguration,
|
|
30
29
|
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
30
|
+
Client as __Client,
|
|
31
31
|
} from "@smithy/smithy-client";
|
|
32
32
|
import {
|
|
33
|
-
AwsCredentialIdentityProvider,
|
|
34
33
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
35
34
|
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
36
35
|
ChecksumConstructor as __ChecksumConstructor,
|
|
@@ -44,10 +43,11 @@ import {
|
|
|
44
43
|
HttpResponse,
|
|
45
44
|
Logger as __Logger,
|
|
46
45
|
Provider as __Provider,
|
|
47
|
-
Provider,
|
|
48
46
|
SdkStreamMixinInjector as __SdkStreamMixinInjector,
|
|
49
47
|
StreamCollector as __StreamCollector,
|
|
50
48
|
UrlParser as __UrlParser,
|
|
49
|
+
AwsCredentialIdentityProvider,
|
|
50
|
+
Provider,
|
|
51
51
|
UserAgent as __UserAgent,
|
|
52
52
|
} from "@smithy/types";
|
|
53
53
|
import {
|
|
@@ -82,6 +82,10 @@ import {
|
|
|
82
82
|
DeleteMemoryRecordCommandInput,
|
|
83
83
|
DeleteMemoryRecordCommandOutput,
|
|
84
84
|
} from "./commands/DeleteMemoryRecordCommand";
|
|
85
|
+
import {
|
|
86
|
+
EvaluateCommandInput,
|
|
87
|
+
EvaluateCommandOutput,
|
|
88
|
+
} from "./commands/EvaluateCommand";
|
|
85
89
|
import {
|
|
86
90
|
GetAgentCardCommandInput,
|
|
87
91
|
GetAgentCardCommandOutput,
|
|
@@ -205,6 +209,7 @@ export type ServiceInputTypes =
|
|
|
205
209
|
| CreateEventCommandInput
|
|
206
210
|
| DeleteEventCommandInput
|
|
207
211
|
| DeleteMemoryRecordCommandInput
|
|
212
|
+
| EvaluateCommandInput
|
|
208
213
|
| GetAgentCardCommandInput
|
|
209
214
|
| GetBrowserSessionCommandInput
|
|
210
215
|
| GetCodeInterpreterSessionCommandInput
|
|
@@ -240,6 +245,7 @@ export type ServiceOutputTypes =
|
|
|
240
245
|
| CreateEventCommandOutput
|
|
241
246
|
| DeleteEventCommandOutput
|
|
242
247
|
| DeleteMemoryRecordCommandOutput
|
|
248
|
+
| EvaluateCommandOutput
|
|
243
249
|
| GetAgentCardCommandOutput
|
|
244
250
|
| GetBrowserSessionCommandOutput
|
|
245
251
|
| GetCodeInterpreterSessionCommandOutput
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
BedrockAgentCoreClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../BedrockAgentCoreClient";
|
|
8
|
+
import { EvaluateRequest, EvaluateResponse } from "../models/models_0";
|
|
9
|
+
export { __MetadataBearer };
|
|
10
|
+
export { $Command };
|
|
11
|
+
export interface EvaluateCommandInput extends EvaluateRequest {}
|
|
12
|
+
export interface EvaluateCommandOutput
|
|
13
|
+
extends EvaluateResponse,
|
|
14
|
+
__MetadataBearer {}
|
|
15
|
+
declare const EvaluateCommand_base: {
|
|
16
|
+
new (
|
|
17
|
+
input: EvaluateCommandInput
|
|
18
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
19
|
+
EvaluateCommandInput,
|
|
20
|
+
EvaluateCommandOutput,
|
|
21
|
+
BedrockAgentCoreClientResolvedConfig,
|
|
22
|
+
ServiceInputTypes,
|
|
23
|
+
ServiceOutputTypes
|
|
24
|
+
>;
|
|
25
|
+
new (
|
|
26
|
+
input: EvaluateCommandInput
|
|
27
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
28
|
+
EvaluateCommandInput,
|
|
29
|
+
EvaluateCommandOutput,
|
|
30
|
+
BedrockAgentCoreClientResolvedConfig,
|
|
31
|
+
ServiceInputTypes,
|
|
32
|
+
ServiceOutputTypes
|
|
33
|
+
>;
|
|
34
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
35
|
+
};
|
|
36
|
+
export declare class EvaluateCommand extends EvaluateCommand_base {
|
|
37
|
+
protected static __types: {
|
|
38
|
+
api: {
|
|
39
|
+
input: EvaluateRequest;
|
|
40
|
+
output: EvaluateResponse;
|
|
41
|
+
};
|
|
42
|
+
sdk: {
|
|
43
|
+
input: EvaluateCommandInput;
|
|
44
|
+
output: EvaluateCommandOutput;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -5,6 +5,7 @@ export * from "./CompleteResourceTokenAuthCommand";
|
|
|
5
5
|
export * from "./CreateEventCommand";
|
|
6
6
|
export * from "./DeleteEventCommand";
|
|
7
7
|
export * from "./DeleteMemoryRecordCommand";
|
|
8
|
+
export * from "./EvaluateCommand";
|
|
8
9
|
export * from "./GetAgentCardCommand";
|
|
9
10
|
export * from "./GetBrowserSessionCommand";
|
|
10
11
|
export * from "./GetCodeInterpreterSessionCommand";
|
|
@@ -63,6 +63,13 @@ export declare class UnauthorizedException extends __BaseException {
|
|
|
63
63
|
opts: __ExceptionOptionType<UnauthorizedException, __BaseException>
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
|
+
export declare class DuplicateIdException extends __BaseException {
|
|
67
|
+
readonly name: "DuplicateIdException";
|
|
68
|
+
readonly $fault: "client";
|
|
69
|
+
constructor(
|
|
70
|
+
opts: __ExceptionOptionType<DuplicateIdException, __BaseException>
|
|
71
|
+
);
|
|
72
|
+
}
|
|
66
73
|
export declare class ServiceException extends __BaseException {
|
|
67
74
|
readonly name: "ServiceException";
|
|
68
75
|
readonly $fault: "server";
|
|
@@ -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.946.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",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
12
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
|
|
13
13
|
"extract:docs": "api-extractor run --local",
|
|
14
|
-
"generate:client": "node ../../scripts/generate-clients/single-service --solo bedrock-agentcore"
|
|
14
|
+
"generate:client": "node ../../scripts/generate-clients/single-service --solo bedrock-agentcore",
|
|
15
|
+
"test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
|
|
15
16
|
},
|
|
16
17
|
"main": "./dist-cjs/index.js",
|
|
17
18
|
"types": "./dist-types/index.d.ts",
|
|
@@ -20,19 +21,19 @@
|
|
|
20
21
|
"dependencies": {
|
|
21
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/core": "3.946.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.946.0",
|
|
25
26
|
"@aws-sdk/middleware-host-header": "3.936.0",
|
|
26
27
|
"@aws-sdk/middleware-logger": "3.936.0",
|
|
27
28
|
"@aws-sdk/middleware-recursion-detection": "3.936.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.946.0",
|
|
29
30
|
"@aws-sdk/region-config-resolver": "3.936.0",
|
|
30
31
|
"@aws-sdk/types": "3.936.0",
|
|
31
32
|
"@aws-sdk/util-endpoints": "3.936.0",
|
|
32
33
|
"@aws-sdk/util-user-agent-browser": "3.936.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.946.0",
|
|
34
35
|
"@smithy/config-resolver": "^4.4.3",
|
|
35
|
-
"@smithy/core": "^3.18.
|
|
36
|
+
"@smithy/core": "^3.18.7",
|
|
36
37
|
"@smithy/eventstream-serde-browser": "^4.2.5",
|
|
37
38
|
"@smithy/eventstream-serde-config-resolver": "^4.3.5",
|
|
38
39
|
"@smithy/eventstream-serde-node": "^4.2.5",
|
|
@@ -40,21 +41,21 @@
|
|
|
40
41
|
"@smithy/hash-node": "^4.2.5",
|
|
41
42
|
"@smithy/invalid-dependency": "^4.2.5",
|
|
42
43
|
"@smithy/middleware-content-length": "^4.2.5",
|
|
43
|
-
"@smithy/middleware-endpoint": "^4.3.
|
|
44
|
-
"@smithy/middleware-retry": "^4.4.
|
|
44
|
+
"@smithy/middleware-endpoint": "^4.3.14",
|
|
45
|
+
"@smithy/middleware-retry": "^4.4.14",
|
|
45
46
|
"@smithy/middleware-serde": "^4.2.6",
|
|
46
47
|
"@smithy/middleware-stack": "^4.2.5",
|
|
47
48
|
"@smithy/node-config-provider": "^4.3.5",
|
|
48
49
|
"@smithy/node-http-handler": "^4.4.5",
|
|
49
50
|
"@smithy/protocol-http": "^5.3.5",
|
|
50
|
-
"@smithy/smithy-client": "^4.9.
|
|
51
|
+
"@smithy/smithy-client": "^4.9.10",
|
|
51
52
|
"@smithy/types": "^4.9.0",
|
|
52
53
|
"@smithy/url-parser": "^4.2.5",
|
|
53
54
|
"@smithy/util-base64": "^4.3.0",
|
|
54
55
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
55
56
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
56
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
57
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
57
|
+
"@smithy/util-defaults-mode-browser": "^4.3.13",
|
|
58
|
+
"@smithy/util-defaults-mode-node": "^4.2.16",
|
|
58
59
|
"@smithy/util-endpoints": "^3.2.5",
|
|
59
60
|
"@smithy/util-middleware": "^4.2.5",
|
|
60
61
|
"@smithy/util-retry": "^4.2.5",
|