@aws-sdk/client-bedrock-agentcore 3.1136.0 → 3.1138.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 +35 -10
- package/dist-es/models/enums.js +11 -0
- package/dist-es/schemas/schemas_0.js +20 -9
- package/dist-types/BedrockAgentCore.d.ts +141 -135
- package/dist-types/commands/DeleteMemoryRecordCommand.d.ts +1 -2
- package/dist-types/commands/InvokeHarnessCommand.d.ts +9 -1
- package/dist-types/models/enums.d.ts +27 -0
- package/dist-types/models/models_0.d.ts +66 -22
- package/dist-types/models/models_1.d.ts +20 -0
- package/dist-types/schemas/schemas_0.d.ts +1 -0
- package/dist-types/ts3.4/BedrockAgentCore.d.ts +138 -134
- package/dist-types/ts3.4/commands/DeleteMemoryRecordCommand.d.ts +1 -2
- package/dist-types/ts3.4/models/enums.d.ts +13 -0
- package/dist-types/ts3.4/models/models_0.d.ts +35 -5
- package/dist-types/ts3.4/models/models_1.d.ts +5 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
- package/package.json +8 -8
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import { DeleteMemoryRecordInput } from "../models/
|
|
3
|
-
import { DeleteMemoryRecordOutput } from "../models/models_1";
|
|
2
|
+
import { DeleteMemoryRecordInput, DeleteMemoryRecordOutput } from "../models/models_1";
|
|
4
3
|
export { __MetadataBearer };
|
|
5
4
|
export interface DeleteMemoryRecordCommandInput extends DeleteMemoryRecordInput {}
|
|
6
5
|
export interface DeleteMemoryRecordCommandOutput
|
|
@@ -268,9 +268,22 @@ export declare const HarnessToolType: {
|
|
|
268
268
|
readonly REMOTE_MCP: "remote_mcp";
|
|
269
269
|
};
|
|
270
270
|
export type HarnessToolType = (typeof HarnessToolType)[keyof typeof HarnessToolType];
|
|
271
|
+
export declare const HarnessHookDecision: {
|
|
272
|
+
readonly ALLOW: "allow";
|
|
273
|
+
readonly DENY: "deny";
|
|
274
|
+
};
|
|
275
|
+
export type HarnessHookDecision = (typeof HarnessHookDecision)[keyof typeof HarnessHookDecision];
|
|
276
|
+
export declare const HarnessHookEventType: {
|
|
277
|
+
readonly AFTER_INVOCATION: "after_invocation";
|
|
278
|
+
readonly AFTER_TOOL_CALL: "after_tool_call";
|
|
279
|
+
readonly BEFORE_INVOCATION: "before_invocation";
|
|
280
|
+
readonly BEFORE_TOOL_CALL: "before_tool_call";
|
|
281
|
+
};
|
|
282
|
+
export type HarnessHookEventType = (typeof HarnessHookEventType)[keyof typeof HarnessHookEventType];
|
|
271
283
|
export declare const HarnessStopReason: {
|
|
272
284
|
readonly CONTENT_FILTERED: "content_filtered";
|
|
273
285
|
readonly END_TURN: "end_turn";
|
|
286
|
+
readonly HOOK_STOPPED: "hook_stopped";
|
|
274
287
|
readonly INTERRUPTED: "interrupted";
|
|
275
288
|
readonly MALFORMED_MODEL_OUTPUT: "malformed_model_output";
|
|
276
289
|
readonly MALFORMED_TOOL_USE: "malformed_tool_use";
|
|
@@ -15,6 +15,8 @@ import {
|
|
|
15
15
|
ExtractionMode,
|
|
16
16
|
HarnessBedrockApiFormat,
|
|
17
17
|
HarnessConversationRole,
|
|
18
|
+
HarnessHookDecision,
|
|
19
|
+
HarnessHookEventType,
|
|
18
20
|
HarnessOpenAiApiFormat,
|
|
19
21
|
HarnessStopReason,
|
|
20
22
|
HarnessToolType,
|
|
@@ -2380,6 +2382,7 @@ export interface HarnessLiteLlmModelConfig {
|
|
|
2380
2382
|
export interface HarnessOpenAiModelConfig {
|
|
2381
2383
|
modelId: string | undefined;
|
|
2382
2384
|
apiKeyArn: string | undefined;
|
|
2385
|
+
apiBase?: string | undefined;
|
|
2383
2386
|
maxTokens?: number | undefined;
|
|
2384
2387
|
temperature?: number | undefined;
|
|
2385
2388
|
topP?: number | undefined;
|
|
@@ -2852,6 +2855,13 @@ export interface HarnessContentBlockStartEvent {
|
|
|
2852
2855
|
export interface HarnessContentBlockStopEvent {
|
|
2853
2856
|
contentBlockIndex: number | undefined;
|
|
2854
2857
|
}
|
|
2858
|
+
export interface HarnessHookEvent {
|
|
2859
|
+
hookEventId: string | undefined;
|
|
2860
|
+
name: string | undefined;
|
|
2861
|
+
type: HarnessHookEventType | undefined;
|
|
2862
|
+
decision?: HarnessHookDecision | undefined;
|
|
2863
|
+
reason?: string | undefined;
|
|
2864
|
+
}
|
|
2855
2865
|
export interface HarnessMessageStartEvent {
|
|
2856
2866
|
role: HarnessConversationRole | undefined;
|
|
2857
2867
|
}
|
|
@@ -2876,6 +2886,7 @@ export type InvokeHarnessStreamOutput =
|
|
|
2876
2886
|
| InvokeHarnessStreamOutput.ContentBlockDeltaMember
|
|
2877
2887
|
| InvokeHarnessStreamOutput.ContentBlockStartMember
|
|
2878
2888
|
| InvokeHarnessStreamOutput.ContentBlockStopMember
|
|
2889
|
+
| InvokeHarnessStreamOutput.HookEventMember
|
|
2879
2890
|
| InvokeHarnessStreamOutput.InternalServerExceptionMember
|
|
2880
2891
|
| InvokeHarnessStreamOutput.MessageStartMember
|
|
2881
2892
|
| InvokeHarnessStreamOutput.MessageStopMember
|
|
@@ -2894,6 +2905,7 @@ export declare namespace InvokeHarnessStreamOutput {
|
|
|
2894
2905
|
internalServerException?: never;
|
|
2895
2906
|
validationException?: never;
|
|
2896
2907
|
runtimeClientError?: never;
|
|
2908
|
+
hookEvent?: never;
|
|
2897
2909
|
$unknown?: never;
|
|
2898
2910
|
}
|
|
2899
2911
|
interface ContentBlockStartMember {
|
|
@@ -2906,6 +2918,7 @@ export declare namespace InvokeHarnessStreamOutput {
|
|
|
2906
2918
|
internalServerException?: never;
|
|
2907
2919
|
validationException?: never;
|
|
2908
2920
|
runtimeClientError?: never;
|
|
2921
|
+
hookEvent?: never;
|
|
2909
2922
|
$unknown?: never;
|
|
2910
2923
|
}
|
|
2911
2924
|
interface ContentBlockDeltaMember {
|
|
@@ -2918,6 +2931,7 @@ export declare namespace InvokeHarnessStreamOutput {
|
|
|
2918
2931
|
internalServerException?: never;
|
|
2919
2932
|
validationException?: never;
|
|
2920
2933
|
runtimeClientError?: never;
|
|
2934
|
+
hookEvent?: never;
|
|
2921
2935
|
$unknown?: never;
|
|
2922
2936
|
}
|
|
2923
2937
|
interface ContentBlockStopMember {
|
|
@@ -2930,6 +2944,7 @@ export declare namespace InvokeHarnessStreamOutput {
|
|
|
2930
2944
|
internalServerException?: never;
|
|
2931
2945
|
validationException?: never;
|
|
2932
2946
|
runtimeClientError?: never;
|
|
2947
|
+
hookEvent?: never;
|
|
2933
2948
|
$unknown?: never;
|
|
2934
2949
|
}
|
|
2935
2950
|
interface MessageStopMember {
|
|
@@ -2942,6 +2957,7 @@ export declare namespace InvokeHarnessStreamOutput {
|
|
|
2942
2957
|
internalServerException?: never;
|
|
2943
2958
|
validationException?: never;
|
|
2944
2959
|
runtimeClientError?: never;
|
|
2960
|
+
hookEvent?: never;
|
|
2945
2961
|
$unknown?: never;
|
|
2946
2962
|
}
|
|
2947
2963
|
interface MetadataMember {
|
|
@@ -2954,6 +2970,7 @@ export declare namespace InvokeHarnessStreamOutput {
|
|
|
2954
2970
|
internalServerException?: never;
|
|
2955
2971
|
validationException?: never;
|
|
2956
2972
|
runtimeClientError?: never;
|
|
2973
|
+
hookEvent?: never;
|
|
2957
2974
|
$unknown?: never;
|
|
2958
2975
|
}
|
|
2959
2976
|
interface InternalServerExceptionMember {
|
|
@@ -2966,6 +2983,7 @@ export declare namespace InvokeHarnessStreamOutput {
|
|
|
2966
2983
|
internalServerException: InternalServerException;
|
|
2967
2984
|
validationException?: never;
|
|
2968
2985
|
runtimeClientError?: never;
|
|
2986
|
+
hookEvent?: never;
|
|
2969
2987
|
$unknown?: never;
|
|
2970
2988
|
}
|
|
2971
2989
|
interface ValidationExceptionMember {
|
|
@@ -2978,6 +2996,7 @@ export declare namespace InvokeHarnessStreamOutput {
|
|
|
2978
2996
|
internalServerException?: never;
|
|
2979
2997
|
validationException: ValidationException;
|
|
2980
2998
|
runtimeClientError?: never;
|
|
2999
|
+
hookEvent?: never;
|
|
2981
3000
|
$unknown?: never;
|
|
2982
3001
|
}
|
|
2983
3002
|
interface RuntimeClientErrorMember {
|
|
@@ -2990,6 +3009,20 @@ export declare namespace InvokeHarnessStreamOutput {
|
|
|
2990
3009
|
internalServerException?: never;
|
|
2991
3010
|
validationException?: never;
|
|
2992
3011
|
runtimeClientError: RuntimeClientError;
|
|
3012
|
+
hookEvent?: never;
|
|
3013
|
+
$unknown?: never;
|
|
3014
|
+
}
|
|
3015
|
+
interface HookEventMember {
|
|
3016
|
+
messageStart?: never;
|
|
3017
|
+
contentBlockStart?: never;
|
|
3018
|
+
contentBlockDelta?: never;
|
|
3019
|
+
contentBlockStop?: never;
|
|
3020
|
+
messageStop?: never;
|
|
3021
|
+
metadata?: never;
|
|
3022
|
+
internalServerException?: never;
|
|
3023
|
+
validationException?: never;
|
|
3024
|
+
runtimeClientError?: never;
|
|
3025
|
+
hookEvent: HarnessHookEvent;
|
|
2993
3026
|
$unknown?: never;
|
|
2994
3027
|
}
|
|
2995
3028
|
interface $UnknownMember {
|
|
@@ -3002,6 +3035,7 @@ export declare namespace InvokeHarnessStreamOutput {
|
|
|
3002
3035
|
internalServerException?: never;
|
|
3003
3036
|
validationException?: never;
|
|
3004
3037
|
runtimeClientError?: never;
|
|
3038
|
+
hookEvent?: never;
|
|
3005
3039
|
$unknown: [string, any];
|
|
3006
3040
|
}
|
|
3007
3041
|
interface Visitor<T> {
|
|
@@ -3014,6 +3048,7 @@ export declare namespace InvokeHarnessStreamOutput {
|
|
|
3014
3048
|
internalServerException: (value: InternalServerException) => T;
|
|
3015
3049
|
validationException: (value: ValidationException) => T;
|
|
3016
3050
|
runtimeClientError: (value: RuntimeClientError) => T;
|
|
3051
|
+
hookEvent: (value: HarnessHookEvent) => T;
|
|
3017
3052
|
_: (name: string, value: any) => T;
|
|
3018
3053
|
}
|
|
3019
3054
|
}
|
|
@@ -3253,8 +3288,3 @@ export interface DeleteEventInput {
|
|
|
3253
3288
|
export interface DeleteEventOutput {
|
|
3254
3289
|
eventId: string | undefined;
|
|
3255
3290
|
}
|
|
3256
|
-
export interface DeleteMemoryRecordInput {
|
|
3257
|
-
memoryId: string | undefined;
|
|
3258
|
-
memoryRecordId: string | undefined;
|
|
3259
|
-
namespace?: string | undefined;
|
|
3260
|
-
}
|
|
@@ -28,6 +28,11 @@ import {
|
|
|
28
28
|
MemoryRecordMetadataValue,
|
|
29
29
|
MetadataValue,
|
|
30
30
|
} from "./models_0";
|
|
31
|
+
export interface DeleteMemoryRecordInput {
|
|
32
|
+
memoryId: string | undefined;
|
|
33
|
+
memoryRecordId: string | undefined;
|
|
34
|
+
namespace?: string | undefined;
|
|
35
|
+
}
|
|
31
36
|
export interface DeleteMemoryRecordOutput {
|
|
32
37
|
memoryRecordId: string | undefined;
|
|
33
38
|
}
|
|
@@ -170,6 +170,7 @@ export declare var HarnessContentBlockDeltaEvent$: StaticStructureSchema;
|
|
|
170
170
|
export declare var HarnessContentBlockStartEvent$: StaticStructureSchema;
|
|
171
171
|
export declare var HarnessContentBlockStopEvent$: StaticStructureSchema;
|
|
172
172
|
export declare var HarnessGeminiModelConfig$: StaticStructureSchema;
|
|
173
|
+
export declare var HarnessHookEvent$: StaticStructureSchema;
|
|
173
174
|
export declare var HarnessInlineFunctionConfig$: StaticStructureSchema;
|
|
174
175
|
export declare var HarnessLiteLlmModelConfig$: StaticStructureSchema;
|
|
175
176
|
export declare var HarnessMessage$: StaticStructureSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-agentcore",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1138.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Bedrock Agentcore Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-bedrock-agentcore",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@aws-sdk/core": "^3.978.
|
|
50
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
51
|
-
"@aws-sdk/types": "^3.974.
|
|
52
|
-
"@smithy/core": "^3.
|
|
53
|
-
"@smithy/fetch-http-handler": "^5.
|
|
54
|
-
"@smithy/node-http-handler": "^4.
|
|
55
|
-
"@smithy/types": "^4.
|
|
49
|
+
"@aws-sdk/core": "^3.978.1",
|
|
50
|
+
"@aws-sdk/credential-provider-node": "^3.972.84",
|
|
51
|
+
"@aws-sdk/types": "^3.974.6",
|
|
52
|
+
"@smithy/core": "^3.35.0",
|
|
53
|
+
"@smithy/fetch-http-handler": "^5.8.0",
|
|
54
|
+
"@smithy/node-http-handler": "^4.12.1",
|
|
55
|
+
"@smithy/types": "^4.19.0",
|
|
56
56
|
"tslib": "^2.6.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|