@aws-sdk/client-bedrock-runtime 3.582.0 → 3.587.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 +23 -7
- package/dist-cjs/index.js +653 -31
- package/dist-es/BedrockRuntime.js +4 -0
- package/dist-es/commands/ConverseCommand.js +24 -0
- package/dist-es/commands/ConverseStreamCommand.js +29 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +187 -16
- package/dist-es/protocols/Aws_restJson1.js +381 -6
- package/dist-types/BedrockRuntime.d.ts +14 -0
- package/dist-types/BedrockRuntimeClient.d.ts +4 -2
- package/dist-types/commands/ConverseCommand.d.ts +208 -0
- package/dist-types/commands/ConverseStreamCommand.d.ts +221 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +1413 -108
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/BedrockRuntime.d.ts +34 -0
- package/dist-types/ts3.4/BedrockRuntimeClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/ConverseCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ConverseStreamCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +602 -33
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +18 -18
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
2
|
import { EventStreamSerdeContext as __EventStreamSerdeContext, SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
+
import { ConverseCommandInput, ConverseCommandOutput } from "../commands/ConverseCommand";
|
|
4
|
+
import { ConverseStreamCommandInput, ConverseStreamCommandOutput } from "../commands/ConverseStreamCommand";
|
|
3
5
|
import { InvokeModelCommandInput, InvokeModelCommandOutput } from "../commands/InvokeModelCommand";
|
|
4
6
|
import { InvokeModelWithResponseStreamCommandInput, InvokeModelWithResponseStreamCommandOutput } from "../commands/InvokeModelWithResponseStreamCommand";
|
|
7
|
+
/**
|
|
8
|
+
* serializeAws_restJson1ConverseCommand
|
|
9
|
+
*/
|
|
10
|
+
export declare const se_ConverseCommand: (input: ConverseCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
11
|
+
/**
|
|
12
|
+
* serializeAws_restJson1ConverseStreamCommand
|
|
13
|
+
*/
|
|
14
|
+
export declare const se_ConverseStreamCommand: (input: ConverseStreamCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
5
15
|
/**
|
|
6
16
|
* serializeAws_restJson1InvokeModelCommand
|
|
7
17
|
*/
|
|
@@ -10,6 +20,14 @@ export declare const se_InvokeModelCommand: (input: InvokeModelCommandInput, con
|
|
|
10
20
|
* serializeAws_restJson1InvokeModelWithResponseStreamCommand
|
|
11
21
|
*/
|
|
12
22
|
export declare const se_InvokeModelWithResponseStreamCommand: (input: InvokeModelWithResponseStreamCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
23
|
+
/**
|
|
24
|
+
* deserializeAws_restJson1ConverseCommand
|
|
25
|
+
*/
|
|
26
|
+
export declare const de_ConverseCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ConverseCommandOutput>;
|
|
27
|
+
/**
|
|
28
|
+
* deserializeAws_restJson1ConverseStreamCommand
|
|
29
|
+
*/
|
|
30
|
+
export declare const de_ConverseStreamCommand: (output: __HttpResponse, context: __SerdeContext & __EventStreamSerdeContext) => Promise<ConverseStreamCommandOutput>;
|
|
13
31
|
/**
|
|
14
32
|
* deserializeAws_restJson1InvokeModelCommand
|
|
15
33
|
*/
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
2
|
import { BedrockRuntimeClient } from "./BedrockRuntimeClient";
|
|
3
|
+
import {
|
|
4
|
+
ConverseCommandInput,
|
|
5
|
+
ConverseCommandOutput,
|
|
6
|
+
} from "./commands/ConverseCommand";
|
|
7
|
+
import {
|
|
8
|
+
ConverseStreamCommandInput,
|
|
9
|
+
ConverseStreamCommandOutput,
|
|
10
|
+
} from "./commands/ConverseStreamCommand";
|
|
3
11
|
import {
|
|
4
12
|
InvokeModelCommandInput,
|
|
5
13
|
InvokeModelCommandOutput,
|
|
@@ -9,6 +17,32 @@ import {
|
|
|
9
17
|
InvokeModelWithResponseStreamCommandOutput,
|
|
10
18
|
} from "./commands/InvokeModelWithResponseStreamCommand";
|
|
11
19
|
export interface BedrockRuntime {
|
|
20
|
+
converse(
|
|
21
|
+
args: ConverseCommandInput,
|
|
22
|
+
options?: __HttpHandlerOptions
|
|
23
|
+
): Promise<ConverseCommandOutput>;
|
|
24
|
+
converse(
|
|
25
|
+
args: ConverseCommandInput,
|
|
26
|
+
cb: (err: any, data?: ConverseCommandOutput) => void
|
|
27
|
+
): void;
|
|
28
|
+
converse(
|
|
29
|
+
args: ConverseCommandInput,
|
|
30
|
+
options: __HttpHandlerOptions,
|
|
31
|
+
cb: (err: any, data?: ConverseCommandOutput) => void
|
|
32
|
+
): void;
|
|
33
|
+
converseStream(
|
|
34
|
+
args: ConverseStreamCommandInput,
|
|
35
|
+
options?: __HttpHandlerOptions
|
|
36
|
+
): Promise<ConverseStreamCommandOutput>;
|
|
37
|
+
converseStream(
|
|
38
|
+
args: ConverseStreamCommandInput,
|
|
39
|
+
cb: (err: any, data?: ConverseStreamCommandOutput) => void
|
|
40
|
+
): void;
|
|
41
|
+
converseStream(
|
|
42
|
+
args: ConverseStreamCommandInput,
|
|
43
|
+
options: __HttpHandlerOptions,
|
|
44
|
+
cb: (err: any, data?: ConverseStreamCommandOutput) => void
|
|
45
|
+
): void;
|
|
12
46
|
invokeModel(
|
|
13
47
|
args: InvokeModelCommandInput,
|
|
14
48
|
options?: __HttpHandlerOptions
|
|
@@ -50,6 +50,14 @@ import {
|
|
|
50
50
|
HttpAuthSchemeInputConfig,
|
|
51
51
|
HttpAuthSchemeResolvedConfig,
|
|
52
52
|
} from "./auth/httpAuthSchemeProvider";
|
|
53
|
+
import {
|
|
54
|
+
ConverseCommandInput,
|
|
55
|
+
ConverseCommandOutput,
|
|
56
|
+
} from "./commands/ConverseCommand";
|
|
57
|
+
import {
|
|
58
|
+
ConverseStreamCommandInput,
|
|
59
|
+
ConverseStreamCommandOutput,
|
|
60
|
+
} from "./commands/ConverseStreamCommand";
|
|
53
61
|
import {
|
|
54
62
|
InvokeModelCommandInput,
|
|
55
63
|
InvokeModelCommandOutput,
|
|
@@ -66,9 +74,13 @@ import {
|
|
|
66
74
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
67
75
|
export { __Client };
|
|
68
76
|
export type ServiceInputTypes =
|
|
77
|
+
| ConverseCommandInput
|
|
78
|
+
| ConverseStreamCommandInput
|
|
69
79
|
| InvokeModelCommandInput
|
|
70
80
|
| InvokeModelWithResponseStreamCommandInput;
|
|
71
81
|
export type ServiceOutputTypes =
|
|
82
|
+
| ConverseCommandOutput
|
|
83
|
+
| ConverseStreamCommandOutput
|
|
72
84
|
| InvokeModelCommandOutput
|
|
73
85
|
| InvokeModelWithResponseStreamCommandOutput;
|
|
74
86
|
export interface ClientDefaults
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
BedrockRuntimeClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../BedrockRuntimeClient";
|
|
8
|
+
import { ConverseRequest, ConverseResponse } from "../models/models_0";
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
export interface ConverseCommandInput extends ConverseRequest {}
|
|
11
|
+
export interface ConverseCommandOutput
|
|
12
|
+
extends ConverseResponse,
|
|
13
|
+
__MetadataBearer {}
|
|
14
|
+
declare const ConverseCommand_base: {
|
|
15
|
+
new (
|
|
16
|
+
input: ConverseCommandInput
|
|
17
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
18
|
+
ConverseCommandInput,
|
|
19
|
+
ConverseCommandOutput,
|
|
20
|
+
BedrockRuntimeClientResolvedConfig,
|
|
21
|
+
ServiceInputTypes,
|
|
22
|
+
ServiceOutputTypes
|
|
23
|
+
>;
|
|
24
|
+
new (
|
|
25
|
+
__0_0: ConverseCommandInput
|
|
26
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
27
|
+
ConverseCommandInput,
|
|
28
|
+
ConverseCommandOutput,
|
|
29
|
+
BedrockRuntimeClientResolvedConfig,
|
|
30
|
+
ServiceInputTypes,
|
|
31
|
+
ServiceOutputTypes
|
|
32
|
+
>;
|
|
33
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
34
|
+
};
|
|
35
|
+
export declare class ConverseCommand extends ConverseCommand_base {}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
BedrockRuntimeClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../BedrockRuntimeClient";
|
|
8
|
+
import {
|
|
9
|
+
ConverseStreamRequest,
|
|
10
|
+
ConverseStreamResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer, $Command };
|
|
13
|
+
export interface ConverseStreamCommandInput extends ConverseStreamRequest {}
|
|
14
|
+
export interface ConverseStreamCommandOutput
|
|
15
|
+
extends ConverseStreamResponse,
|
|
16
|
+
__MetadataBearer {}
|
|
17
|
+
declare const ConverseStreamCommand_base: {
|
|
18
|
+
new (
|
|
19
|
+
input: ConverseStreamCommandInput
|
|
20
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
21
|
+
ConverseStreamCommandInput,
|
|
22
|
+
ConverseStreamCommandOutput,
|
|
23
|
+
BedrockRuntimeClientResolvedConfig,
|
|
24
|
+
ServiceInputTypes,
|
|
25
|
+
ServiceOutputTypes
|
|
26
|
+
>;
|
|
27
|
+
new (
|
|
28
|
+
__0_0: ConverseStreamCommandInput
|
|
29
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
30
|
+
ConverseStreamCommandInput,
|
|
31
|
+
ConverseStreamCommandOutput,
|
|
32
|
+
BedrockRuntimeClientResolvedConfig,
|
|
33
|
+
ServiceInputTypes,
|
|
34
|
+
ServiceOutputTypes
|
|
35
|
+
>;
|
|
36
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
37
|
+
};
|
|
38
|
+
export declare class ConverseStreamCommand extends ConverseStreamCommand_base {}
|