@aws-sdk/client-bedrock-runtime 3.1054.0 → 3.1056.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 +1 -0
- package/dist-es/models/enums.js +1 -0
- package/dist-types/commands/ConverseCommand.d.ts +2 -2
- package/dist-types/commands/ConverseStreamCommand.d.ts +2 -2
- package/dist-types/commands/CountTokensCommand.d.ts +1 -1
- package/dist-types/models/enums.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/models/enums.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +11 -11
package/dist-cjs/index.js
CHANGED
package/dist-es/models/enums.js
CHANGED
|
@@ -42,7 +42,7 @@ declare const ConverseCommand_base: {
|
|
|
42
42
|
* modelId: "STRING_VALUE", // required
|
|
43
43
|
* messages: [ // Messages
|
|
44
44
|
* { // Message
|
|
45
|
-
* role: "user" || "assistant", // required
|
|
45
|
+
* role: "user" || "assistant" || "system", // required
|
|
46
46
|
* content: [ // ContentBlocks // required
|
|
47
47
|
* { // ContentBlock Union: only one key present
|
|
48
48
|
* text: "STRING_VALUE",
|
|
@@ -352,7 +352,7 @@ declare const ConverseCommand_base: {
|
|
|
352
352
|
* // { // ConverseResponse
|
|
353
353
|
* // output: { // ConverseOutput Union: only one key present
|
|
354
354
|
* // message: { // Message
|
|
355
|
-
* // role: "user" || "assistant", // required
|
|
355
|
+
* // role: "user" || "assistant" || "system", // required
|
|
356
356
|
* // content: [ // ContentBlocks // required
|
|
357
357
|
* // { // ContentBlock Union: only one key present
|
|
358
358
|
* // text: "STRING_VALUE",
|
|
@@ -42,7 +42,7 @@ declare const ConverseStreamCommand_base: {
|
|
|
42
42
|
* modelId: "STRING_VALUE", // required
|
|
43
43
|
* messages: [ // Messages
|
|
44
44
|
* { // Message
|
|
45
|
-
* role: "user" || "assistant", // required
|
|
45
|
+
* role: "user" || "assistant" || "system", // required
|
|
46
46
|
* content: [ // ContentBlocks // required
|
|
47
47
|
* { // ContentBlock Union: only one key present
|
|
48
48
|
* text: "STRING_VALUE",
|
|
@@ -353,7 +353,7 @@ declare const ConverseStreamCommand_base: {
|
|
|
353
353
|
* // { // ConverseStreamResponse
|
|
354
354
|
* // stream: { // ConverseStreamOutput Union: only one key present
|
|
355
355
|
* // messageStart: { // MessageStartEvent
|
|
356
|
-
* // role: "user" || "assistant", // required
|
|
356
|
+
* // role: "user" || "assistant" || "system", // required
|
|
357
357
|
* // },
|
|
358
358
|
* // contentBlockStart: { // ContentBlockStartEvent
|
|
359
359
|
* // start: { // ContentBlockStart Union: only one key present
|
|
@@ -47,7 +47,7 @@ declare const CountTokensCommand_base: {
|
|
|
47
47
|
* converse: { // ConverseTokensRequest
|
|
48
48
|
* messages: [ // Messages
|
|
49
49
|
* { // Message
|
|
50
|
-
* role: "user" || "assistant", // required
|
|
50
|
+
* role: "user" || "assistant" || "system", // required
|
|
51
51
|
* content: [ // ContentBlocks // required
|
|
52
52
|
* { // ContentBlock Union: only one key present
|
|
53
53
|
* text: "STRING_VALUE",
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
6
6
|
runtime: string;
|
|
7
7
|
eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
|
|
8
8
|
sha256: import("@smithy/types").HashConstructor;
|
|
9
|
-
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/core/
|
|
9
|
+
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/core/transport").HttpRequest, import("@smithy/core/transport").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
|
|
10
10
|
updateHttpClientConfig(key: never, value: never): void;
|
|
11
11
|
httpHandlerConfigs(): {};
|
|
12
12
|
}) | import("@aws-sdk/middleware-websocket").WebSocketFetchHandler;
|
|
@@ -265,6 +265,7 @@ export declare const ToolUseType: {
|
|
|
265
265
|
export type ToolUseType = (typeof ToolUseType)[keyof typeof ToolUseType];
|
|
266
266
|
export declare const ConversationRole: {
|
|
267
267
|
readonly ASSISTANT: "assistant";
|
|
268
|
+
readonly SYSTEM: "system";
|
|
268
269
|
readonly USER: "user";
|
|
269
270
|
};
|
|
270
271
|
export type ConversationRole =
|
|
@@ -13,8 +13,8 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
13
13
|
import("@smithy/types").HttpHandlerOptions
|
|
14
14
|
> &
|
|
15
15
|
import("@smithy/types").RequestHandler<
|
|
16
|
-
import("@smithy/core/
|
|
17
|
-
import("@smithy/core/
|
|
16
|
+
import("@smithy/core/transport").HttpRequest,
|
|
17
|
+
import("@smithy/core/transport").HttpResponse,
|
|
18
18
|
import("@smithy/types").HttpHandlerOptions
|
|
19
19
|
> & {
|
|
20
20
|
updateHttpClientConfig(key: never, value: never): void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1056.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
|
|
@@ -29,21 +29,21 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
31
31
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
32
|
-
"@aws-sdk/core": "^3.974.
|
|
33
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
34
|
-
"@aws-sdk/eventstream-handler-node": "^3.972.
|
|
35
|
-
"@aws-sdk/middleware-eventstream": "^3.972.
|
|
36
|
-
"@aws-sdk/middleware-websocket": "^3.972.
|
|
37
|
-
"@aws-sdk/token-providers": "3.
|
|
32
|
+
"@aws-sdk/core": "^3.974.15",
|
|
33
|
+
"@aws-sdk/credential-provider-node": "^3.972.46",
|
|
34
|
+
"@aws-sdk/eventstream-handler-node": "^3.972.18",
|
|
35
|
+
"@aws-sdk/middleware-eventstream": "^3.972.14",
|
|
36
|
+
"@aws-sdk/middleware-websocket": "^3.972.23",
|
|
37
|
+
"@aws-sdk/token-providers": "3.1056.0",
|
|
38
38
|
"@aws-sdk/types": "^3.973.9",
|
|
39
|
-
"@smithy/core": "^3.24.
|
|
40
|
-
"@smithy/fetch-http-handler": "^5.4.
|
|
41
|
-
"@smithy/node-http-handler": "^4.7.
|
|
39
|
+
"@smithy/core": "^3.24.5",
|
|
40
|
+
"@smithy/fetch-http-handler": "^5.4.5",
|
|
41
|
+
"@smithy/node-http-handler": "^4.7.5",
|
|
42
42
|
"@smithy/types": "^4.14.2",
|
|
43
43
|
"tslib": "^2.6.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@smithy/snapshot-testing": "^2.1.
|
|
46
|
+
"@smithy/snapshot-testing": "^2.1.5",
|
|
47
47
|
"@tsconfig/node20": "20.1.8",
|
|
48
48
|
"@types/node": "^20.14.8",
|
|
49
49
|
"concurrently": "7.0.0",
|