@aws-sdk/client-bedrock-runtime 3.1076.0 → 3.1078.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 +28 -134
- package/dist-es/commandBuilder.js +14 -0
- package/dist-es/commands/ApplyGuardrailCommand.js +2 -14
- package/dist-es/commands/ConverseCommand.js +2 -14
- package/dist-es/commands/ConverseStreamCommand.js +2 -18
- package/dist-es/commands/CountTokensCommand.js +2 -14
- package/dist-es/commands/GetAsyncInvokeCommand.js +2 -14
- package/dist-es/commands/InvokeGuardrailChecksCommand.js +2 -14
- package/dist-es/commands/InvokeModelCommand.js +2 -14
- package/dist-es/commands/InvokeModelWithBidirectionalStreamCommand.js +2 -27
- package/dist-es/commands/InvokeModelWithResponseStreamCommand.js +2 -18
- package/dist-es/commands/ListAsyncInvokesCommand.js +2 -14
- package/dist-es/commands/StartAsyncInvokeCommand.js +2 -14
- package/dist-es/index.js +1 -0
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-types/commandBuilder.d.ts +22 -0
- package/dist-types/commands/ApplyGuardrailCommand.d.ts +3 -8
- package/dist-types/commands/ConverseCommand.d.ts +3 -8
- package/dist-types/commands/ConverseStreamCommand.d.ts +3 -8
- package/dist-types/commands/CountTokensCommand.d.ts +3 -8
- package/dist-types/commands/GetAsyncInvokeCommand.d.ts +3 -8
- package/dist-types/commands/InvokeGuardrailChecksCommand.d.ts +3 -8
- package/dist-types/commands/InvokeModelCommand.d.ts +3 -8
- package/dist-types/commands/InvokeModelWithBidirectionalStreamCommand.d.ts +3 -8
- package/dist-types/commands/InvokeModelWithResponseStreamCommand.d.ts +3 -8
- package/dist-types/commands/ListAsyncInvokesCommand.d.ts +3 -8
- package/dist-types/commands/StartAsyncInvokeCommand.d.ts +3 -8
- package/dist-types/index.d.ts +1 -0
- 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 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +52 -0
- package/dist-types/ts3.4/commands/ApplyGuardrailCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ConverseCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ConverseStreamCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/CountTokensCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GetAsyncInvokeCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/InvokeGuardrailChecksCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/InvokeModelCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/InvokeModelWithBidirectionalStreamCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/InvokeModelWithResponseStreamCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ListAsyncInvokesCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/StartAsyncInvokeCommand.d.ts +7 -16
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/package.json +13 -15
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import type { BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockRuntimeClient";
|
|
4
2
|
import type { ConverseStreamRequest, ConverseStreamResponse } from "../models/models_0";
|
|
5
3
|
/**
|
|
6
4
|
* @public
|
|
7
5
|
*/
|
|
8
6
|
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
7
|
/**
|
|
11
8
|
* @public
|
|
12
9
|
*
|
|
@@ -22,11 +19,9 @@ export interface ConverseStreamCommandInput extends ConverseStreamRequest {
|
|
|
22
19
|
export interface ConverseStreamCommandOutput extends ConverseStreamResponse, __MetadataBearer {
|
|
23
20
|
}
|
|
24
21
|
declare const ConverseStreamCommand_base: {
|
|
25
|
-
new (input: ConverseStreamCommandInput): import("@smithy/core/client").CommandImpl<ConverseStreamCommandInput, ConverseStreamCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (input: ConverseStreamCommandInput): import("@smithy/core/client").CommandImpl<ConverseStreamCommandInput, ConverseStreamCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
22
|
+
new (input: ConverseStreamCommandInput): import("@smithy/core/client").CommandImpl<ConverseStreamCommandInput, ConverseStreamCommandOutput, import("..").BedrockRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: ConverseStreamCommandInput): import("@smithy/core/client").CommandImpl<ConverseStreamCommandInput, ConverseStreamCommandOutput, import("..").BedrockRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
25
|
};
|
|
31
26
|
/**
|
|
32
27
|
* <p>Sends messages to the specified Amazon Bedrock model and returns the response in a stream. <code>ConverseStream</code> provides a consistent API that works with all Amazon Bedrock models that support messages. This allows you to write code once and use it with different models. Should a model have unique inference parameters, you can also pass those unique parameters to the model. </p> <p>To find out if a model supports streaming, call <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetFoundationModel.html">GetFoundationModel</a> and check the <code>responseStreamingSupported</code> field in the response.</p> <note> <p>The CLI doesn't support streaming operations in Amazon Bedrock, including <code>ConverseStream</code>.</p> </note> <p>Amazon Bedrock doesn't store any text, images, or documents that you provide as content. The data is only used to generate the response.</p> <p>You can submit a prompt by including it in the <code>messages</code> field, specifying the <code>modelId</code> of a foundation model or inference profile to run inference on it, and including any other fields that are relevant to your use case.</p> <p>You can also submit a prompt from Prompt management by specifying the ARN of the prompt version and including a map of variables to values in the <code>promptVariables</code> field. You can append more messages to the prompt by using the <code>messages</code> field. If you use a prompt from Prompt management, you can't include the following fields in the request: <code>additionalModelRequestFields</code>, <code>inferenceConfig</code>, <code>system</code>, or <code>toolConfig</code>. Instead, these fields must be defined through Prompt management. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-use.html">Use a prompt from Prompt management</a>.</p> <p>For information about the Converse API, see <i>Use the Converse API</i> in the <i>Amazon Bedrock User Guide</i>. To use a guardrail, see <i>Use a guardrail with the Converse API</i> in the <i>Amazon Bedrock User Guide</i>. To use a tool with a model, see <i>Tool use (Function calling)</i> in the <i>Amazon Bedrock User Guide</i> </p> <p>For example code, see <i>Conversation streaming example</i> in the <i>Amazon Bedrock User Guide</i>. </p> <p>This operation requires permission for the <code>bedrock:InvokeModelWithResponseStream</code> action.</p> <important> <p>To deny all inference access to resources that you specify in the modelId field, you need to deny access to the <code>bedrock:InvokeModel</code> and <code>bedrock:InvokeModelWithResponseStream</code> actions. Doing this also denies access to the resource through the base inference actions (<a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModel.html">InvokeModel</a> and <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModelWithResponseStream.html">InvokeModelWithResponseStream</a>). For more information see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/security_iam_id-based-policy-examples.html#security_iam_id-based-policy-examples-deny-inference">Deny access for inference on specific models</a>. </p> </important> <p>For troubleshooting some of the common errors you might encounter when using the <code>ConverseStream</code> API, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html">Troubleshooting Amazon Bedrock API Error Codes</a> in the Amazon Bedrock User Guide</p>
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import type { BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockRuntimeClient";
|
|
4
2
|
import type { CountTokensRequest, CountTokensResponse } from "../models/models_0";
|
|
5
3
|
/**
|
|
6
4
|
* @public
|
|
7
5
|
*/
|
|
8
6
|
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
7
|
/**
|
|
11
8
|
* @public
|
|
12
9
|
*
|
|
@@ -22,11 +19,9 @@ export interface CountTokensCommandInput extends CountTokensRequest {
|
|
|
22
19
|
export interface CountTokensCommandOutput extends CountTokensResponse, __MetadataBearer {
|
|
23
20
|
}
|
|
24
21
|
declare const CountTokensCommand_base: {
|
|
25
|
-
new (input: CountTokensCommandInput): import("@smithy/core/client").CommandImpl<CountTokensCommandInput, CountTokensCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (input: CountTokensCommandInput): import("@smithy/core/client").CommandImpl<CountTokensCommandInput, CountTokensCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
22
|
+
new (input: CountTokensCommandInput): import("@smithy/core/client").CommandImpl<CountTokensCommandInput, CountTokensCommandOutput, import("..").BedrockRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: CountTokensCommandInput): import("@smithy/core/client").CommandImpl<CountTokensCommandInput, CountTokensCommandOutput, import("..").BedrockRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
25
|
};
|
|
31
26
|
/**
|
|
32
27
|
* <p>Returns the token count for a given inference request. This operation helps you estimate token usage before sending requests to foundation models by returning the token count that would be used if the same input were sent to the model in an inference request.</p> <p>Token counting is model-specific because different models use different tokenization strategies. The token count returned by this operation will match the token count that would be charged if the same input were sent to the model in an <code>InvokeModel</code> or <code>Converse</code> request.</p> <p>You can use this operation to:</p> <ul> <li> <p>Estimate costs before sending inference requests.</p> </li> <li> <p>Optimize prompts to fit within token limits.</p> </li> <li> <p>Plan for token usage in your applications.</p> </li> </ul> <p>This operation accepts the same input formats as <code>InvokeModel</code> and <code>Converse</code>, allowing you to count tokens for both raw text inputs and structured conversation formats.</p> <p>The following operations are related to <code>CountTokens</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/API/API_runtime_InvokeModel.html">InvokeModel</a> - Sends inference requests to foundation models</p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/API/API_runtime_Converse.html">Converse</a> - Sends conversation-based inference requests to foundation models</p> </li> </ul>
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import type { BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockRuntimeClient";
|
|
4
2
|
import type { GetAsyncInvokeRequest, GetAsyncInvokeResponse } from "../models/models_0";
|
|
5
3
|
/**
|
|
6
4
|
* @public
|
|
7
5
|
*/
|
|
8
6
|
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
7
|
/**
|
|
11
8
|
* @public
|
|
12
9
|
*
|
|
@@ -22,11 +19,9 @@ export interface GetAsyncInvokeCommandInput extends GetAsyncInvokeRequest {
|
|
|
22
19
|
export interface GetAsyncInvokeCommandOutput extends GetAsyncInvokeResponse, __MetadataBearer {
|
|
23
20
|
}
|
|
24
21
|
declare const GetAsyncInvokeCommand_base: {
|
|
25
|
-
new (input: GetAsyncInvokeCommandInput): import("@smithy/core/client").CommandImpl<GetAsyncInvokeCommandInput, GetAsyncInvokeCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (input: GetAsyncInvokeCommandInput): import("@smithy/core/client").CommandImpl<GetAsyncInvokeCommandInput, GetAsyncInvokeCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
22
|
+
new (input: GetAsyncInvokeCommandInput): import("@smithy/core/client").CommandImpl<GetAsyncInvokeCommandInput, GetAsyncInvokeCommandOutput, import("..").BedrockRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetAsyncInvokeCommandInput): import("@smithy/core/client").CommandImpl<GetAsyncInvokeCommandInput, GetAsyncInvokeCommandOutput, import("..").BedrockRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
25
|
};
|
|
31
26
|
/**
|
|
32
27
|
* <p>Retrieve information about an asynchronous invocation.</p>
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import type { BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockRuntimeClient";
|
|
4
2
|
import type { InvokeGuardrailChecksRequest, InvokeGuardrailChecksResponse } from "../models/models_0";
|
|
5
3
|
/**
|
|
6
4
|
* @public
|
|
7
5
|
*/
|
|
8
6
|
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
7
|
/**
|
|
11
8
|
* @public
|
|
12
9
|
*
|
|
@@ -22,11 +19,9 @@ export interface InvokeGuardrailChecksCommandInput extends InvokeGuardrailChecks
|
|
|
22
19
|
export interface InvokeGuardrailChecksCommandOutput extends InvokeGuardrailChecksResponse, __MetadataBearer {
|
|
23
20
|
}
|
|
24
21
|
declare const InvokeGuardrailChecksCommand_base: {
|
|
25
|
-
new (input: InvokeGuardrailChecksCommandInput): import("@smithy/core/client").CommandImpl<InvokeGuardrailChecksCommandInput, InvokeGuardrailChecksCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (input: InvokeGuardrailChecksCommandInput): import("@smithy/core/client").CommandImpl<InvokeGuardrailChecksCommandInput, InvokeGuardrailChecksCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
22
|
+
new (input: InvokeGuardrailChecksCommandInput): import("@smithy/core/client").CommandImpl<InvokeGuardrailChecksCommandInput, InvokeGuardrailChecksCommandOutput, import("..").BedrockRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: InvokeGuardrailChecksCommandInput): import("@smithy/core/client").CommandImpl<InvokeGuardrailChecksCommandInput, InvokeGuardrailChecksCommandOutput, import("..").BedrockRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
25
|
};
|
|
31
26
|
/**
|
|
32
27
|
* <p>Evaluates messages against inline guardrail checks. You specify the check configurations directly in the request, and Amazon Bedrock returns per-check results with severity or confidence scores.</p>
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import { Uint8ArrayBlobAdapter } from "@smithy/core/serde";
|
|
3
2
|
import type { BlobPayloadInputTypes, MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
|
-
import type { BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockRuntimeClient";
|
|
5
3
|
import type { InvokeModelRequest, InvokeModelResponse } from "../models/models_0";
|
|
6
4
|
/**
|
|
7
5
|
* @public
|
|
8
6
|
*/
|
|
9
7
|
export type { __MetadataBearer };
|
|
10
|
-
export { $Command };
|
|
11
8
|
/**
|
|
12
9
|
* @public
|
|
13
10
|
*/
|
|
@@ -35,11 +32,9 @@ export type InvokeModelCommandOutputType = Omit<InvokeModelResponse, "body"> & {
|
|
|
35
32
|
export interface InvokeModelCommandOutput extends InvokeModelCommandOutputType, __MetadataBearer {
|
|
36
33
|
}
|
|
37
34
|
declare const InvokeModelCommand_base: {
|
|
38
|
-
new (input: InvokeModelCommandInput): import("@smithy/core/client").CommandImpl<InvokeModelCommandInput, InvokeModelCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
39
|
-
new (input: InvokeModelCommandInput): import("@smithy/core/client").CommandImpl<InvokeModelCommandInput, InvokeModelCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
40
|
-
getEndpointParameterInstructions():
|
|
41
|
-
[x: string]: unknown;
|
|
42
|
-
};
|
|
35
|
+
new (input: InvokeModelCommandInput): import("@smithy/core/client").CommandImpl<InvokeModelCommandInput, InvokeModelCommandOutput, import("..").BedrockRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
36
|
+
new (input: InvokeModelCommandInput): import("@smithy/core/client").CommandImpl<InvokeModelCommandInput, InvokeModelCommandOutput, import("..").BedrockRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
37
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
43
38
|
};
|
|
44
39
|
/**
|
|
45
40
|
* <p>Invokes the specified Amazon Bedrock model to run inference using the prompt and inference parameters provided in the request body. You use model inference to generate text, images, and embeddings.</p> <p>For example code, see <i>Invoke model code examples</i> in the <i>Amazon Bedrock User Guide</i>. </p> <p>This operation requires permission for the <code>bedrock:InvokeModel</code> action.</p> <important> <p>To deny all inference access to resources that you specify in the modelId field, you need to deny access to the <code>bedrock:InvokeModel</code> and <code>bedrock:InvokeModelWithResponseStream</code> actions. Doing this also denies access to the resource through the Converse API actions (<a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html">Converse</a> and <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html">ConverseStream</a>). For more information see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/security_iam_id-based-policy-examples.html#security_iam_id-based-policy-examples-deny-inference">Deny access for inference on specific models</a>. </p> </important> <p>For troubleshooting some of the common errors you might encounter when using the <code>InvokeModel</code> API, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html">Troubleshooting Amazon Bedrock API Error Codes</a> in the Amazon Bedrock User Guide</p>
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import type { BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockRuntimeClient";
|
|
4
2
|
import type { InvokeModelWithBidirectionalStreamRequest, InvokeModelWithBidirectionalStreamResponse } from "../models/models_0";
|
|
5
3
|
/**
|
|
6
4
|
* @public
|
|
7
5
|
*/
|
|
8
6
|
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
7
|
/**
|
|
11
8
|
* @public
|
|
12
9
|
*
|
|
@@ -22,11 +19,9 @@ export interface InvokeModelWithBidirectionalStreamCommandInput extends InvokeMo
|
|
|
22
19
|
export interface InvokeModelWithBidirectionalStreamCommandOutput extends InvokeModelWithBidirectionalStreamResponse, __MetadataBearer {
|
|
23
20
|
}
|
|
24
21
|
declare const InvokeModelWithBidirectionalStreamCommand_base: {
|
|
25
|
-
new (input: InvokeModelWithBidirectionalStreamCommandInput): import("@smithy/core/client").CommandImpl<InvokeModelWithBidirectionalStreamCommandInput, InvokeModelWithBidirectionalStreamCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (input: InvokeModelWithBidirectionalStreamCommandInput): import("@smithy/core/client").CommandImpl<InvokeModelWithBidirectionalStreamCommandInput, InvokeModelWithBidirectionalStreamCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
22
|
+
new (input: InvokeModelWithBidirectionalStreamCommandInput): import("@smithy/core/client").CommandImpl<InvokeModelWithBidirectionalStreamCommandInput, InvokeModelWithBidirectionalStreamCommandOutput, import("..").BedrockRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: InvokeModelWithBidirectionalStreamCommandInput): import("@smithy/core/client").CommandImpl<InvokeModelWithBidirectionalStreamCommandInput, InvokeModelWithBidirectionalStreamCommandOutput, import("..").BedrockRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
25
|
};
|
|
31
26
|
/**
|
|
32
27
|
* <p>Invoke the specified Amazon Bedrock model to run inference using the bidirectional stream. The response is returned in a stream that remains open for 8 minutes. A single session can contain multiple prompts and responses from the model. The prompts to the model are provided as audio files and the model's responses are spoken back to the user and transcribed.</p> <p>It is possible for users to interrupt the model's response with a new prompt, which will halt the response speech. The model will retain contextual awareness of the conversation while pivoting to respond to the new prompt.</p>
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import type { BlobPayloadInputTypes, MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import type { BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockRuntimeClient";
|
|
4
2
|
import type { InvokeModelWithResponseStreamRequest, InvokeModelWithResponseStreamResponse } from "../models/models_0";
|
|
5
3
|
/**
|
|
6
4
|
* @public
|
|
7
5
|
*/
|
|
8
6
|
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
7
|
/**
|
|
11
8
|
* @public
|
|
12
9
|
*/
|
|
@@ -28,11 +25,9 @@ export interface InvokeModelWithResponseStreamCommandInput extends InvokeModelWi
|
|
|
28
25
|
export interface InvokeModelWithResponseStreamCommandOutput extends InvokeModelWithResponseStreamResponse, __MetadataBearer {
|
|
29
26
|
}
|
|
30
27
|
declare const InvokeModelWithResponseStreamCommand_base: {
|
|
31
|
-
new (input: InvokeModelWithResponseStreamCommandInput): import("@smithy/core/client").CommandImpl<InvokeModelWithResponseStreamCommandInput, InvokeModelWithResponseStreamCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
32
|
-
new (input: InvokeModelWithResponseStreamCommandInput): import("@smithy/core/client").CommandImpl<InvokeModelWithResponseStreamCommandInput, InvokeModelWithResponseStreamCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
33
|
-
getEndpointParameterInstructions():
|
|
34
|
-
[x: string]: unknown;
|
|
35
|
-
};
|
|
28
|
+
new (input: InvokeModelWithResponseStreamCommandInput): import("@smithy/core/client").CommandImpl<InvokeModelWithResponseStreamCommandInput, InvokeModelWithResponseStreamCommandOutput, import("..").BedrockRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
29
|
+
new (input: InvokeModelWithResponseStreamCommandInput): import("@smithy/core/client").CommandImpl<InvokeModelWithResponseStreamCommandInput, InvokeModelWithResponseStreamCommandOutput, import("..").BedrockRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
30
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
36
31
|
};
|
|
37
32
|
/**
|
|
38
33
|
* <p>Invoke the specified Amazon Bedrock model to run inference using the prompt and inference parameters provided in the request body. The response is returned in a stream.</p> <p>To see if a model supports streaming, call <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetFoundationModel.html">GetFoundationModel</a> and check the <code>responseStreamingSupported</code> field in the response.</p> <note> <p>The CLI doesn't support streaming operations in Amazon Bedrock, including <code>InvokeModelWithResponseStream</code>.</p> </note> <p>For example code, see <i>Invoke model with streaming code example</i> in the <i>Amazon Bedrock User Guide</i>. </p> <p>This operation requires permissions to perform the <code>bedrock:InvokeModelWithResponseStream</code> action. </p> <important> <p>To deny all inference access to resources that you specify in the modelId field, you need to deny access to the <code>bedrock:InvokeModel</code> and <code>bedrock:InvokeModelWithResponseStream</code> actions. Doing this also denies access to the resource through the Converse API actions (<a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html">Converse</a> and <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html">ConverseStream</a>). For more information see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/security_iam_id-based-policy-examples.html#security_iam_id-based-policy-examples-deny-inference">Deny access for inference on specific models</a>. </p> </important> <p>For troubleshooting some of the common errors you might encounter when using the <code>InvokeModelWithResponseStream</code> API, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html">Troubleshooting Amazon Bedrock API Error Codes</a> in the Amazon Bedrock User Guide</p>
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import type { BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockRuntimeClient";
|
|
4
2
|
import type { ListAsyncInvokesRequest, ListAsyncInvokesResponse } from "../models/models_0";
|
|
5
3
|
/**
|
|
6
4
|
* @public
|
|
7
5
|
*/
|
|
8
6
|
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
7
|
/**
|
|
11
8
|
* @public
|
|
12
9
|
*
|
|
@@ -22,11 +19,9 @@ export interface ListAsyncInvokesCommandInput extends ListAsyncInvokesRequest {
|
|
|
22
19
|
export interface ListAsyncInvokesCommandOutput extends ListAsyncInvokesResponse, __MetadataBearer {
|
|
23
20
|
}
|
|
24
21
|
declare const ListAsyncInvokesCommand_base: {
|
|
25
|
-
new (input: ListAsyncInvokesCommandInput): import("@smithy/core/client").CommandImpl<ListAsyncInvokesCommandInput, ListAsyncInvokesCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (...[input]: [] | [ListAsyncInvokesCommandInput]): import("@smithy/core/client").CommandImpl<ListAsyncInvokesCommandInput, ListAsyncInvokesCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
22
|
+
new (input: ListAsyncInvokesCommandInput): import("@smithy/core/client").CommandImpl<ListAsyncInvokesCommandInput, ListAsyncInvokesCommandOutput, import("..").BedrockRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (...[input]: [] | [ListAsyncInvokesCommandInput]): import("@smithy/core/client").CommandImpl<ListAsyncInvokesCommandInput, ListAsyncInvokesCommandOutput, import("..").BedrockRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
25
|
};
|
|
31
26
|
/**
|
|
32
27
|
* <p>Lists asynchronous invocations.</p>
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import type { BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockRuntimeClient";
|
|
4
2
|
import type { StartAsyncInvokeRequest, StartAsyncInvokeResponse } from "../models/models_0";
|
|
5
3
|
/**
|
|
6
4
|
* @public
|
|
7
5
|
*/
|
|
8
6
|
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
7
|
/**
|
|
11
8
|
* @public
|
|
12
9
|
*
|
|
@@ -22,11 +19,9 @@ export interface StartAsyncInvokeCommandInput extends StartAsyncInvokeRequest {
|
|
|
22
19
|
export interface StartAsyncInvokeCommandOutput extends StartAsyncInvokeResponse, __MetadataBearer {
|
|
23
20
|
}
|
|
24
21
|
declare const StartAsyncInvokeCommand_base: {
|
|
25
|
-
new (input: StartAsyncInvokeCommandInput): import("@smithy/core/client").CommandImpl<StartAsyncInvokeCommandInput, StartAsyncInvokeCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (input: StartAsyncInvokeCommandInput): import("@smithy/core/client").CommandImpl<StartAsyncInvokeCommandInput, StartAsyncInvokeCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
22
|
+
new (input: StartAsyncInvokeCommandInput): import("@smithy/core/client").CommandImpl<StartAsyncInvokeCommandInput, StartAsyncInvokeCommandOutput, import("..").BedrockRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: StartAsyncInvokeCommandInput): import("@smithy/core/client").CommandImpl<StartAsyncInvokeCommandInput, StartAsyncInvokeCommandOutput, import("..").BedrockRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
25
|
};
|
|
31
26
|
/**
|
|
32
27
|
* <p>Starts an asynchronous invocation.</p> <p>This operation requires permission for the <code>bedrock:InvokeModel</code> action.</p> <important> <p>To deny all inference access to resources that you specify in the modelId field, you need to deny access to the <code>bedrock:InvokeModel</code> and <code>bedrock:InvokeModelWithResponseStream</code> actions. Doing this also denies access to the resource through the Converse API actions (<a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html">Converse</a> and <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html">ConverseStream</a>). For more information see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/security_iam_id-based-policy-examples.html#security_iam_id-based-policy-examples-deny-inference">Deny access for inference on specific models</a>. </p> </important>
|
package/dist-types/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export type { ClientInputEndpointParameters } from "./endpoint/EndpointParameter
|
|
|
9
9
|
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
10
10
|
export type { BedrockRuntimeExtensionConfiguration } from "./extensionConfiguration";
|
|
11
11
|
export * from "./commands";
|
|
12
|
+
export { Command as $Command } from "@smithy/core/client";
|
|
12
13
|
export * from "./schemas/schemas_0";
|
|
13
14
|
export * from "./pagination";
|
|
14
15
|
export * from "./models/enums";
|
|
@@ -15,7 +15,6 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
15
15
|
region: string | import("@smithy/types").Provider<any>;
|
|
16
16
|
requestHandler: WebSocketRequestHandler;
|
|
17
17
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
18
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
19
18
|
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
20
19
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
21
20
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
@@ -26,6 +25,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
26
25
|
[setting: string]: unknown;
|
|
27
26
|
};
|
|
28
27
|
apiVersion: string;
|
|
28
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
29
29
|
urlParser: import("@smithy/types").UrlParser;
|
|
30
30
|
base64Decoder: import("@smithy/types").Decoder;
|
|
31
31
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -28,7 +28,6 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
28
28
|
region: string | import("@smithy/types").Provider<string>;
|
|
29
29
|
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
30
30
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
31
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
32
31
|
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
33
32
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
34
33
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
@@ -40,6 +39,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
40
39
|
[setting: string]: unknown;
|
|
41
40
|
};
|
|
42
41
|
apiVersion: string;
|
|
42
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
43
43
|
urlParser: import("@smithy/types").UrlParser;
|
|
44
44
|
base64Decoder: import("@smithy/types").Decoder;
|
|
45
45
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -5,7 +5,6 @@ import type { BedrockRuntimeClientConfig } from "./BedrockRuntimeClient";
|
|
|
5
5
|
export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
6
6
|
runtime: string;
|
|
7
7
|
eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
|
|
8
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
9
8
|
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
9
|
updateHttpClientConfig(key: never, value: never): void;
|
|
11
10
|
httpHandlerConfigs(): {};
|
|
@@ -17,6 +16,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
17
16
|
[setting: string]: unknown;
|
|
18
17
|
};
|
|
19
18
|
apiVersion: string;
|
|
19
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
20
20
|
urlParser: import("@smithy/types").UrlParser;
|
|
21
21
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
22
22
|
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
@@ -32,6 +32,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
32
32
|
defaultNamespace?: string;
|
|
33
33
|
};
|
|
34
34
|
serviceId: string;
|
|
35
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
35
36
|
urlParser: import("@smithy/types").UrlParser;
|
|
36
37
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
37
38
|
utf8Encoder: (input: Uint8Array | string) => string;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
BedrockRuntimeClientResolvedConfig,
|
|
4
|
+
ServiceInputTypes,
|
|
5
|
+
ServiceOutputTypes,
|
|
6
|
+
} from "./BedrockRuntimeClient";
|
|
7
|
+
export declare const command: <
|
|
8
|
+
I extends ServiceInputTypes,
|
|
9
|
+
O extends ServiceOutputTypes
|
|
10
|
+
>(
|
|
11
|
+
added: EndpointParameterInstructions,
|
|
12
|
+
plugins: (
|
|
13
|
+
CommandCtor: any,
|
|
14
|
+
clientStack: any,
|
|
15
|
+
config: any,
|
|
16
|
+
options: any
|
|
17
|
+
) => import("@smithy/types").Pluggable<any, any>[],
|
|
18
|
+
op: string,
|
|
19
|
+
$: import("@smithy/types").StaticOperationSchema,
|
|
20
|
+
smithyContext?: Record<string, unknown>
|
|
21
|
+
) => {
|
|
22
|
+
new (input: I): import("@smithy/core/client").CommandImpl<
|
|
23
|
+
I,
|
|
24
|
+
O,
|
|
25
|
+
BedrockRuntimeClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
...[input]: import("@smithy/types").OptionalParameter<I>
|
|
31
|
+
): import("@smithy/core/client").CommandImpl<
|
|
32
|
+
I,
|
|
33
|
+
O,
|
|
34
|
+
BedrockRuntimeClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare const _ep0: EndpointParameterInstructions;
|
|
41
|
+
export declare const _mw0: (
|
|
42
|
+
Command: any,
|
|
43
|
+
cs: any,
|
|
44
|
+
config: any,
|
|
45
|
+
o: any
|
|
46
|
+
) => never[];
|
|
47
|
+
export declare const _mw1: (
|
|
48
|
+
Command: any,
|
|
49
|
+
cs: any,
|
|
50
|
+
config: any,
|
|
51
|
+
o: any
|
|
52
|
+
) => import("@smithy/types").Pluggable<any, any>[];
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import {
|
|
4
|
-
BedrockRuntimeClientResolvedConfig,
|
|
5
|
-
ServiceInputTypes,
|
|
6
|
-
ServiceOutputTypes,
|
|
7
|
-
} from "../BedrockRuntimeClient";
|
|
8
2
|
import {
|
|
9
3
|
ApplyGuardrailRequest,
|
|
10
4
|
ApplyGuardrailResponse,
|
|
11
5
|
} from "../models/models_0";
|
|
12
6
|
export { __MetadataBearer };
|
|
13
|
-
export { $Command };
|
|
14
7
|
export interface ApplyGuardrailCommandInput extends ApplyGuardrailRequest {}
|
|
15
8
|
export interface ApplyGuardrailCommandOutput
|
|
16
9
|
extends ApplyGuardrailResponse,
|
|
@@ -21,22 +14,20 @@ declare const ApplyGuardrailCommand_base: {
|
|
|
21
14
|
): import("@smithy/core/client").CommandImpl<
|
|
22
15
|
ApplyGuardrailCommandInput,
|
|
23
16
|
ApplyGuardrailCommandOutput,
|
|
24
|
-
BedrockRuntimeClientResolvedConfig,
|
|
25
|
-
ServiceInputTypes,
|
|
26
|
-
ServiceOutputTypes
|
|
17
|
+
import("..").BedrockRuntimeClientResolvedConfig,
|
|
18
|
+
import("..").ServiceInputTypes,
|
|
19
|
+
import("..").ServiceOutputTypes
|
|
27
20
|
>;
|
|
28
21
|
new (
|
|
29
22
|
input: ApplyGuardrailCommandInput
|
|
30
23
|
): import("@smithy/core/client").CommandImpl<
|
|
31
24
|
ApplyGuardrailCommandInput,
|
|
32
25
|
ApplyGuardrailCommandOutput,
|
|
33
|
-
BedrockRuntimeClientResolvedConfig,
|
|
34
|
-
ServiceInputTypes,
|
|
35
|
-
ServiceOutputTypes
|
|
26
|
+
import("..").BedrockRuntimeClientResolvedConfig,
|
|
27
|
+
import("..").ServiceInputTypes,
|
|
28
|
+
import("..").ServiceOutputTypes
|
|
36
29
|
>;
|
|
37
|
-
getEndpointParameterInstructions():
|
|
38
|
-
[x: string]: unknown;
|
|
39
|
-
};
|
|
30
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
40
31
|
};
|
|
41
32
|
export declare class ApplyGuardrailCommand extends ApplyGuardrailCommand_base {
|
|
42
33
|
protected static __types: {
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import {
|
|
4
|
-
BedrockRuntimeClientResolvedConfig,
|
|
5
|
-
ServiceInputTypes,
|
|
6
|
-
ServiceOutputTypes,
|
|
7
|
-
} from "../BedrockRuntimeClient";
|
|
8
2
|
import { ConverseRequest, ConverseResponse } from "../models/models_0";
|
|
9
3
|
export { __MetadataBearer };
|
|
10
|
-
export { $Command };
|
|
11
4
|
export interface ConverseCommandInput extends ConverseRequest {}
|
|
12
5
|
export interface ConverseCommandOutput
|
|
13
6
|
extends ConverseResponse,
|
|
@@ -16,20 +9,18 @@ declare const ConverseCommand_base: {
|
|
|
16
9
|
new (input: ConverseCommandInput): import("@smithy/core/client").CommandImpl<
|
|
17
10
|
ConverseCommandInput,
|
|
18
11
|
ConverseCommandOutput,
|
|
19
|
-
BedrockRuntimeClientResolvedConfig,
|
|
20
|
-
ServiceInputTypes,
|
|
21
|
-
ServiceOutputTypes
|
|
12
|
+
import("..").BedrockRuntimeClientResolvedConfig,
|
|
13
|
+
import("..").ServiceInputTypes,
|
|
14
|
+
import("..").ServiceOutputTypes
|
|
22
15
|
>;
|
|
23
16
|
new (input: ConverseCommandInput): import("@smithy/core/client").CommandImpl<
|
|
24
17
|
ConverseCommandInput,
|
|
25
18
|
ConverseCommandOutput,
|
|
26
|
-
BedrockRuntimeClientResolvedConfig,
|
|
27
|
-
ServiceInputTypes,
|
|
28
|
-
ServiceOutputTypes
|
|
19
|
+
import("..").BedrockRuntimeClientResolvedConfig,
|
|
20
|
+
import("..").ServiceInputTypes,
|
|
21
|
+
import("..").ServiceOutputTypes
|
|
29
22
|
>;
|
|
30
|
-
getEndpointParameterInstructions():
|
|
31
|
-
[x: string]: unknown;
|
|
32
|
-
};
|
|
23
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
33
24
|
};
|
|
34
25
|
export declare class ConverseCommand extends ConverseCommand_base {
|
|
35
26
|
protected static __types: {
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import {
|
|
4
|
-
BedrockRuntimeClientResolvedConfig,
|
|
5
|
-
ServiceInputTypes,
|
|
6
|
-
ServiceOutputTypes,
|
|
7
|
-
} from "../BedrockRuntimeClient";
|
|
8
2
|
import {
|
|
9
3
|
ConverseStreamRequest,
|
|
10
4
|
ConverseStreamResponse,
|
|
11
5
|
} from "../models/models_0";
|
|
12
6
|
export { __MetadataBearer };
|
|
13
|
-
export { $Command };
|
|
14
7
|
export interface ConverseStreamCommandInput extends ConverseStreamRequest {}
|
|
15
8
|
export interface ConverseStreamCommandOutput
|
|
16
9
|
extends ConverseStreamResponse,
|
|
@@ -21,22 +14,20 @@ declare const ConverseStreamCommand_base: {
|
|
|
21
14
|
): import("@smithy/core/client").CommandImpl<
|
|
22
15
|
ConverseStreamCommandInput,
|
|
23
16
|
ConverseStreamCommandOutput,
|
|
24
|
-
BedrockRuntimeClientResolvedConfig,
|
|
25
|
-
ServiceInputTypes,
|
|
26
|
-
ServiceOutputTypes
|
|
17
|
+
import("..").BedrockRuntimeClientResolvedConfig,
|
|
18
|
+
import("..").ServiceInputTypes,
|
|
19
|
+
import("..").ServiceOutputTypes
|
|
27
20
|
>;
|
|
28
21
|
new (
|
|
29
22
|
input: ConverseStreamCommandInput
|
|
30
23
|
): import("@smithy/core/client").CommandImpl<
|
|
31
24
|
ConverseStreamCommandInput,
|
|
32
25
|
ConverseStreamCommandOutput,
|
|
33
|
-
BedrockRuntimeClientResolvedConfig,
|
|
34
|
-
ServiceInputTypes,
|
|
35
|
-
ServiceOutputTypes
|
|
26
|
+
import("..").BedrockRuntimeClientResolvedConfig,
|
|
27
|
+
import("..").ServiceInputTypes,
|
|
28
|
+
import("..").ServiceOutputTypes
|
|
36
29
|
>;
|
|
37
|
-
getEndpointParameterInstructions():
|
|
38
|
-
[x: string]: unknown;
|
|
39
|
-
};
|
|
30
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
40
31
|
};
|
|
41
32
|
export declare class ConverseStreamCommand extends ConverseStreamCommand_base {
|
|
42
33
|
protected static __types: {
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import {
|
|
4
|
-
BedrockRuntimeClientResolvedConfig,
|
|
5
|
-
ServiceInputTypes,
|
|
6
|
-
ServiceOutputTypes,
|
|
7
|
-
} from "../BedrockRuntimeClient";
|
|
8
2
|
import { CountTokensRequest, CountTokensResponse } from "../models/models_0";
|
|
9
3
|
export { __MetadataBearer };
|
|
10
|
-
export { $Command };
|
|
11
4
|
export interface CountTokensCommandInput extends CountTokensRequest {}
|
|
12
5
|
export interface CountTokensCommandOutput
|
|
13
6
|
extends CountTokensResponse,
|
|
@@ -18,22 +11,20 @@ declare const CountTokensCommand_base: {
|
|
|
18
11
|
): import("@smithy/core/client").CommandImpl<
|
|
19
12
|
CountTokensCommandInput,
|
|
20
13
|
CountTokensCommandOutput,
|
|
21
|
-
BedrockRuntimeClientResolvedConfig,
|
|
22
|
-
ServiceInputTypes,
|
|
23
|
-
ServiceOutputTypes
|
|
14
|
+
import("..").BedrockRuntimeClientResolvedConfig,
|
|
15
|
+
import("..").ServiceInputTypes,
|
|
16
|
+
import("..").ServiceOutputTypes
|
|
24
17
|
>;
|
|
25
18
|
new (
|
|
26
19
|
input: CountTokensCommandInput
|
|
27
20
|
): import("@smithy/core/client").CommandImpl<
|
|
28
21
|
CountTokensCommandInput,
|
|
29
22
|
CountTokensCommandOutput,
|
|
30
|
-
BedrockRuntimeClientResolvedConfig,
|
|
31
|
-
ServiceInputTypes,
|
|
32
|
-
ServiceOutputTypes
|
|
23
|
+
import("..").BedrockRuntimeClientResolvedConfig,
|
|
24
|
+
import("..").ServiceInputTypes,
|
|
25
|
+
import("..").ServiceOutputTypes
|
|
33
26
|
>;
|
|
34
|
-
getEndpointParameterInstructions():
|
|
35
|
-
[x: string]: unknown;
|
|
36
|
-
};
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
37
28
|
};
|
|
38
29
|
export declare class CountTokensCommand extends CountTokensCommand_base {
|
|
39
30
|
protected static __types: {
|