@aws-sdk/client-bedrock-runtime 3.583.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.
@@ -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 {}
@@ -1,2 +1,4 @@
1
+ export * from "./ConverseCommand";
2
+ export * from "./ConverseStreamCommand";
1
3
  export * from "./InvokeModelCommand";
2
4
  export * from "./InvokeModelWithResponseStreamCommand";