@aws-sdk/client-bedrock-runtime
Advanced tools
Comparing version 3.705.0 to 3.706.0
@@ -5,2 +5,3 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { ApplyGuardrailRequestFilterSensitiveLog, } from "../models/models_0"; | ||
import { de_ApplyGuardrailCommand, se_ApplyGuardrailCommand } from "../protocols/Aws_restJson1"; | ||
@@ -19,3 +20,3 @@ export { $Command }; | ||
.n("BedrockRuntimeClient", "ApplyGuardrailCommand") | ||
.f(void 0, void 0) | ||
.f(ApplyGuardrailRequestFilterSensitiveLog, void 0) | ||
.ser(se_ApplyGuardrailCommand) | ||
@@ -22,0 +23,0 @@ .de(de_ApplyGuardrailCommand) |
@@ -5,3 +5,3 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { ConverseRequestFilterSensitiveLog } from "../models/models_0"; | ||
import { ConverseRequestFilterSensitiveLog, ConverseResponseFilterSensitiveLog, } from "../models/models_0"; | ||
import { de_ConverseCommand, se_ConverseCommand } from "../protocols/Aws_restJson1"; | ||
@@ -20,3 +20,3 @@ export { $Command }; | ||
.n("BedrockRuntimeClient", "ConverseCommand") | ||
.f(ConverseRequestFilterSensitiveLog, void 0) | ||
.f(ConverseRequestFilterSensitiveLog, ConverseResponseFilterSensitiveLog) | ||
.ser(se_ConverseCommand) | ||
@@ -23,0 +23,0 @@ .de(de_ConverseCommand) |
@@ -119,2 +119,14 @@ import { SENSITIVE_STRING } from "@smithy/smithy-client"; | ||
} | ||
export const GuardrailImageFormat = { | ||
JPEG: "jpeg", | ||
PNG: "png", | ||
}; | ||
export var GuardrailImageSource; | ||
(function (GuardrailImageSource) { | ||
GuardrailImageSource.visit = (value, visitor) => { | ||
if (value.bytes !== undefined) | ||
return visitor.bytes(value.bytes); | ||
return visitor._(value.$unknown[0], value.$unknown[1]); | ||
}; | ||
})(GuardrailImageSource || (GuardrailImageSource = {})); | ||
export const GuardrailContentQualifier = { | ||
@@ -130,2 +142,4 @@ GROUNDING_SOURCE: "grounding_source", | ||
return visitor.text(value.text); | ||
if (value.image !== undefined) | ||
return visitor.image(value.image); | ||
return visitor._(value.$unknown[0], value.$unknown[1]); | ||
@@ -245,2 +259,14 @@ }; | ||
})(DocumentSource || (DocumentSource = {})); | ||
export const GuardrailConverseImageFormat = { | ||
JPEG: "jpeg", | ||
PNG: "png", | ||
}; | ||
export var GuardrailConverseImageSource; | ||
(function (GuardrailConverseImageSource) { | ||
GuardrailConverseImageSource.visit = (value, visitor) => { | ||
if (value.bytes !== undefined) | ||
return visitor.bytes(value.bytes); | ||
return visitor._(value.$unknown[0], value.$unknown[1]); | ||
}; | ||
})(GuardrailConverseImageSource || (GuardrailConverseImageSource = {})); | ||
export const GuardrailConverseContentQualifier = { | ||
@@ -256,2 +282,4 @@ GROUNDING_SOURCE: "grounding_source", | ||
return visitor.text(value.text); | ||
if (value.image !== undefined) | ||
return visitor.image(value.image); | ||
return visitor._(value.$unknown[0], value.$unknown[1]); | ||
@@ -553,6 +581,76 @@ }; | ||
}); | ||
export const GuardrailImageSourceFilterSensitiveLog = (obj) => { | ||
if (obj.bytes !== undefined) | ||
return { bytes: obj.bytes }; | ||
if (obj.$unknown !== undefined) | ||
return { [obj.$unknown[0]]: "UNKNOWN" }; | ||
}; | ||
export const GuardrailImageBlockFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
...(obj.source && { source: SENSITIVE_STRING }), | ||
}); | ||
export const GuardrailContentBlockFilterSensitiveLog = (obj) => { | ||
if (obj.text !== undefined) | ||
return { text: obj.text }; | ||
if (obj.image !== undefined) | ||
return { image: SENSITIVE_STRING }; | ||
if (obj.$unknown !== undefined) | ||
return { [obj.$unknown[0]]: "UNKNOWN" }; | ||
}; | ||
export const ApplyGuardrailRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
...(obj.content && { content: obj.content.map((item) => GuardrailContentBlockFilterSensitiveLog(item)) }), | ||
}); | ||
export const GuardrailConverseImageSourceFilterSensitiveLog = (obj) => { | ||
if (obj.bytes !== undefined) | ||
return { bytes: obj.bytes }; | ||
if (obj.$unknown !== undefined) | ||
return { [obj.$unknown[0]]: "UNKNOWN" }; | ||
}; | ||
export const GuardrailConverseImageBlockFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
...(obj.source && { source: SENSITIVE_STRING }), | ||
}); | ||
export const GuardrailConverseContentBlockFilterSensitiveLog = (obj) => { | ||
if (obj.text !== undefined) | ||
return { text: obj.text }; | ||
if (obj.image !== undefined) | ||
return { image: SENSITIVE_STRING }; | ||
if (obj.$unknown !== undefined) | ||
return { [obj.$unknown[0]]: "UNKNOWN" }; | ||
}; | ||
export const ContentBlockFilterSensitiveLog = (obj) => { | ||
if (obj.text !== undefined) | ||
return { text: obj.text }; | ||
if (obj.image !== undefined) | ||
return { image: obj.image }; | ||
if (obj.document !== undefined) | ||
return { document: obj.document }; | ||
if (obj.video !== undefined) | ||
return { video: obj.video }; | ||
if (obj.toolUse !== undefined) | ||
return { toolUse: obj.toolUse }; | ||
if (obj.toolResult !== undefined) | ||
return { toolResult: obj.toolResult }; | ||
if (obj.guardContent !== undefined) | ||
return { guardContent: GuardrailConverseContentBlockFilterSensitiveLog(obj.guardContent) }; | ||
if (obj.$unknown !== undefined) | ||
return { [obj.$unknown[0]]: "UNKNOWN" }; | ||
}; | ||
export const MessageFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
...(obj.content && { content: obj.content.map((item) => ContentBlockFilterSensitiveLog(item)) }), | ||
}); | ||
export const SystemContentBlockFilterSensitiveLog = (obj) => { | ||
if (obj.text !== undefined) | ||
return { text: obj.text }; | ||
if (obj.guardContent !== undefined) | ||
return { guardContent: GuardrailConverseContentBlockFilterSensitiveLog(obj.guardContent) }; | ||
if (obj.$unknown !== undefined) | ||
return { [obj.$unknown[0]]: "UNKNOWN" }; | ||
}; | ||
export const ConverseRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
...(obj.messages && { messages: obj.messages.map((item) => item) }), | ||
...(obj.system && { system: obj.system.map((item) => item) }), | ||
...(obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }), | ||
...(obj.system && { system: obj.system.map((item) => SystemContentBlockFilterSensitiveLog(item)) }), | ||
...(obj.toolConfig && { toolConfig: obj.toolConfig }), | ||
@@ -562,6 +660,16 @@ ...(obj.promptVariables && { promptVariables: SENSITIVE_STRING }), | ||
}); | ||
export const ConverseOutputFilterSensitiveLog = (obj) => { | ||
if (obj.message !== undefined) | ||
return { message: MessageFilterSensitiveLog(obj.message) }; | ||
if (obj.$unknown !== undefined) | ||
return { [obj.$unknown[0]]: "UNKNOWN" }; | ||
}; | ||
export const ConverseResponseFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
...(obj.output && { output: ConverseOutputFilterSensitiveLog(obj.output) }), | ||
}); | ||
export const ConverseStreamRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
...(obj.messages && { messages: obj.messages.map((item) => item) }), | ||
...(obj.system && { system: obj.system.map((item) => item) }), | ||
...(obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }), | ||
...(obj.system && { system: obj.system.map((item) => SystemContentBlockFilterSensitiveLog(item)) }), | ||
...(obj.toolConfig && { toolConfig: obj.toolConfig }), | ||
@@ -568,0 +676,0 @@ ...(obj.promptVariables && { promptVariables: SENSITIVE_STRING }), |
@@ -6,3 +6,3 @@ import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core"; | ||
import { BedrockRuntimeServiceException as __BaseException } from "../models/BedrockRuntimeServiceException"; | ||
import { AccessDeniedException, ConflictException, ContentBlock, DocumentSource, ImageSource, InternalServerException, ModelErrorException, ModelNotReadyException, ModelStreamErrorException, ModelTimeoutException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, ThrottlingException, Tool, ToolInputSchema, ToolResultContentBlock, ValidationException, VideoSource, } from "../models/models_0"; | ||
import { AccessDeniedException, ConflictException, ContentBlock, DocumentSource, GuardrailContentBlock, GuardrailConverseContentBlock, GuardrailConverseImageSource, GuardrailImageSource, ImageSource, InternalServerException, ModelErrorException, ModelNotReadyException, ModelStreamErrorException, ModelTimeoutException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, SystemContentBlock, ThrottlingException, Tool, ToolInputSchema, ToolResultContentBlock, ValidationException, VideoSource, } from "../models/models_0"; | ||
export const se_ApplyGuardrailCommand = async (input, context) => { | ||
@@ -18,3 +18,3 @@ const b = rb(input, context); | ||
body = JSON.stringify(take(input, { | ||
content: (_) => _json(_), | ||
content: (_) => se_GuardrailContentBlockList(_, context), | ||
source: [], | ||
@@ -42,3 +42,3 @@ })); | ||
requestMetadata: (_) => _json(_), | ||
system: (_) => _json(_), | ||
system: (_) => se_SystemContentBlocks(_, context), | ||
toolConfig: (_) => se_ToolConfiguration(_, context), | ||
@@ -66,3 +66,3 @@ })); | ||
requestMetadata: (_) => _json(_), | ||
system: (_) => _json(_), | ||
system: (_) => se_SystemContentBlocks(_, context), | ||
toolConfig: (_) => se_ToolConfiguration(_, context), | ||
@@ -680,3 +680,3 @@ })); | ||
document: (value) => ({ document: se_DocumentBlock(value, context) }), | ||
guardContent: (value) => ({ guardContent: _json(value) }), | ||
guardContent: (value) => ({ guardContent: se_GuardrailConverseContentBlock(value, context) }), | ||
image: (value) => ({ image: se_ImageBlock(value, context) }), | ||
@@ -710,2 +710,47 @@ text: (value) => ({ text: value }), | ||
}; | ||
const se_GuardrailContentBlock = (input, context) => { | ||
return GuardrailContentBlock.visit(input, { | ||
image: (value) => ({ image: se_GuardrailImageBlock(value, context) }), | ||
text: (value) => ({ text: _json(value) }), | ||
_: (name, value) => ({ name: value }), | ||
}); | ||
}; | ||
const se_GuardrailContentBlockList = (input, context) => { | ||
return input | ||
.filter((e) => e != null) | ||
.map((entry) => { | ||
return se_GuardrailContentBlock(entry, context); | ||
}); | ||
}; | ||
const se_GuardrailConverseContentBlock = (input, context) => { | ||
return GuardrailConverseContentBlock.visit(input, { | ||
image: (value) => ({ image: se_GuardrailConverseImageBlock(value, context) }), | ||
text: (value) => ({ text: _json(value) }), | ||
_: (name, value) => ({ name: value }), | ||
}); | ||
}; | ||
const se_GuardrailConverseImageBlock = (input, context) => { | ||
return take(input, { | ||
format: [], | ||
source: (_) => se_GuardrailConverseImageSource(_, context), | ||
}); | ||
}; | ||
const se_GuardrailConverseImageSource = (input, context) => { | ||
return GuardrailConverseImageSource.visit(input, { | ||
bytes: (value) => ({ bytes: context.base64Encoder(value) }), | ||
_: (name, value) => ({ name: value }), | ||
}); | ||
}; | ||
const se_GuardrailImageBlock = (input, context) => { | ||
return take(input, { | ||
format: [], | ||
source: (_) => se_GuardrailImageSource(_, context), | ||
}); | ||
}; | ||
const se_GuardrailImageSource = (input, context) => { | ||
return GuardrailImageSource.visit(input, { | ||
bytes: (value) => ({ bytes: context.base64Encoder(value) }), | ||
_: (name, value) => ({ name: value }), | ||
}); | ||
}; | ||
const se_ImageBlock = (input, context) => { | ||
@@ -747,2 +792,16 @@ return take(input, { | ||
}; | ||
const se_SystemContentBlock = (input, context) => { | ||
return SystemContentBlock.visit(input, { | ||
guardContent: (value) => ({ guardContent: se_GuardrailConverseContentBlock(value, context) }), | ||
text: (value) => ({ text: value }), | ||
_: (name, value) => ({ name: value }), | ||
}); | ||
}; | ||
const se_SystemContentBlocks = (input, context) => { | ||
return input | ||
.filter((e) => e != null) | ||
.map((entry) => { | ||
return se_SystemContentBlock(entry, context); | ||
}); | ||
}; | ||
const se_Tool = (input, context) => { | ||
@@ -856,3 +915,3 @@ return Tool.visit(input, { | ||
return { | ||
guardContent: _json(__expectUnion(output.guardContent)), | ||
guardContent: de_GuardrailConverseContentBlock(__expectUnion(output.guardContent), context), | ||
}; | ||
@@ -912,2 +971,3 @@ } | ||
guardrail: (_) => de_GuardrailTraceAssessment(_, context), | ||
promptRouter: _json, | ||
}); | ||
@@ -918,2 +978,3 @@ }; | ||
guardrail: (_) => de_GuardrailTraceAssessment(_, context), | ||
promptRouter: _json, | ||
}); | ||
@@ -993,2 +1054,29 @@ }; | ||
}; | ||
const de_GuardrailConverseContentBlock = (output, context) => { | ||
if (output.image != null) { | ||
return { | ||
image: de_GuardrailConverseImageBlock(output.image, context), | ||
}; | ||
} | ||
if (output.text != null) { | ||
return { | ||
text: _json(output.text), | ||
}; | ||
} | ||
return { $unknown: Object.entries(output)[0] }; | ||
}; | ||
const de_GuardrailConverseImageBlock = (output, context) => { | ||
return take(output, { | ||
format: __expectString, | ||
source: (_) => de_GuardrailConverseImageSource(__expectUnion(_), context), | ||
}); | ||
}; | ||
const de_GuardrailConverseImageSource = (output, context) => { | ||
if (output.bytes != null) { | ||
return { | ||
bytes: context.base64Decoder(output.bytes), | ||
}; | ||
} | ||
return { $unknown: Object.entries(output)[0] }; | ||
}; | ||
const de_GuardrailTraceAssessment = (output, context) => { | ||
@@ -995,0 +1083,0 @@ return take(output, { |
@@ -51,2 +51,8 @@ import { Command as $Command } from "@smithy/smithy-client"; | ||
* }, | ||
* image: { // GuardrailImageBlock | ||
* format: "png" || "jpeg", // required | ||
* source: { // GuardrailImageSource Union: only one key present | ||
* bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") | ||
* }, | ||
* }, | ||
* }, | ||
@@ -150,2 +156,6 @@ * ], | ||
* // }, | ||
* // images: { // GuardrailImageCoverage | ||
* // guarded: Number("int"), | ||
* // total: Number("int"), | ||
* // }, | ||
* // }, | ||
@@ -160,2 +170,6 @@ * // }, | ||
* // }, | ||
* // images: { | ||
* // guarded: Number("int"), | ||
* // total: Number("int"), | ||
* // }, | ||
* // }, | ||
@@ -162,0 +176,0 @@ * // }; |
@@ -136,2 +136,8 @@ import { Command as $Command } from "@smithy/smithy-client"; | ||
* }, | ||
* image: { // GuardrailConverseImageBlock | ||
* format: "png" || "jpeg", // required | ||
* source: { // GuardrailConverseImageSource Union: only one key present | ||
* bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") | ||
* }, | ||
* }, | ||
* }, | ||
@@ -152,2 +158,8 @@ * }, | ||
* }, | ||
* image: { | ||
* format: "png" || "jpeg", // required | ||
* source: {// Union: only one key present | ||
* bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") | ||
* }, | ||
* }, | ||
* }, | ||
@@ -282,2 +294,8 @@ * }, | ||
* // }, | ||
* // image: { // GuardrailConverseImageBlock | ||
* // format: "png" || "jpeg", // required | ||
* // source: { // GuardrailConverseImageSource Union: only one key present | ||
* // bytes: new Uint8Array(), | ||
* // }, | ||
* // }, | ||
* // }, | ||
@@ -381,2 +399,6 @@ * // }, | ||
* // }, | ||
* // images: { // GuardrailImageCoverage | ||
* // guarded: Number("int"), | ||
* // total: Number("int"), | ||
* // }, | ||
* // }, | ||
@@ -465,2 +487,6 @@ * // }, | ||
* // }, | ||
* // images: { | ||
* // guarded: Number("int"), | ||
* // total: Number("int"), | ||
* // }, | ||
* // }, | ||
@@ -472,2 +498,5 @@ * // }, | ||
* // }, | ||
* // promptRouter: { // PromptRouterTrace | ||
* // invokedModelId: "STRING_VALUE", | ||
* // }, | ||
* // }, | ||
@@ -474,0 +503,0 @@ * // performanceConfig: { // PerformanceConfiguration |
@@ -142,2 +142,8 @@ import { Command as $Command } from "@smithy/smithy-client"; | ||
* }, | ||
* image: { // GuardrailConverseImageBlock | ||
* format: "png" || "jpeg", // required | ||
* source: { // GuardrailConverseImageSource Union: only one key present | ||
* bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") | ||
* }, | ||
* }, | ||
* }, | ||
@@ -158,2 +164,8 @@ * }, | ||
* }, | ||
* image: { | ||
* format: "png" || "jpeg", // required | ||
* source: {// Union: only one key present | ||
* bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") | ||
* }, | ||
* }, | ||
* }, | ||
@@ -336,2 +348,6 @@ * }, | ||
* // }, | ||
* // images: { // GuardrailImageCoverage | ||
* // guarded: Number("int"), | ||
* // total: Number("int"), | ||
* // }, | ||
* // }, | ||
@@ -420,2 +436,6 @@ * // }, | ||
* // }, | ||
* // images: { | ||
* // guarded: Number("int"), | ||
* // total: Number("int"), | ||
* // }, | ||
* // }, | ||
@@ -427,2 +447,5 @@ * // }, | ||
* // }, | ||
* // promptRouter: { // PromptRouterTrace | ||
* // invokedModelId: "STRING_VALUE", | ||
* // }, | ||
* // }, | ||
@@ -429,0 +452,0 @@ * // performanceConfig: { // PerformanceConfiguration |
@@ -153,2 +153,30 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; | ||
} | ||
export declare const GuardrailImageFormat: { | ||
readonly JPEG: "jpeg"; | ||
readonly PNG: "png"; | ||
}; | ||
export type GuardrailImageFormat = | ||
(typeof GuardrailImageFormat)[keyof typeof GuardrailImageFormat]; | ||
export type GuardrailImageSource = | ||
| GuardrailImageSource.BytesMember | ||
| GuardrailImageSource.$UnknownMember; | ||
export declare namespace GuardrailImageSource { | ||
interface BytesMember { | ||
bytes: Uint8Array; | ||
$unknown?: never; | ||
} | ||
interface $UnknownMember { | ||
bytes?: never; | ||
$unknown: [string, any]; | ||
} | ||
interface Visitor<T> { | ||
bytes: (value: Uint8Array) => T; | ||
_: (name: string, value: any) => T; | ||
} | ||
const visit: <T>(value: GuardrailImageSource, visitor: Visitor<T>) => T; | ||
} | ||
export interface GuardrailImageBlock { | ||
format: GuardrailImageFormat | undefined; | ||
source: GuardrailImageSource | undefined; | ||
} | ||
export declare const GuardrailContentQualifier: { | ||
@@ -166,2 +194,3 @@ readonly GROUNDING_SOURCE: "grounding_source"; | ||
export type GuardrailContentBlock = | ||
| GuardrailContentBlock.ImageMember | ||
| GuardrailContentBlock.TextMember | ||
@@ -172,6 +201,13 @@ | GuardrailContentBlock.$UnknownMember; | ||
text: GuardrailTextBlock; | ||
image?: never; | ||
$unknown?: never; | ||
} | ||
interface ImageMember { | ||
text?: never; | ||
image: GuardrailImageBlock; | ||
$unknown?: never; | ||
} | ||
interface $UnknownMember { | ||
text?: never; | ||
image?: never; | ||
$unknown: [string, any]; | ||
@@ -181,2 +217,3 @@ } | ||
text: (value: GuardrailTextBlock) => T; | ||
image: (value: GuardrailImageBlock) => T; | ||
_: (name: string, value: any) => T; | ||
@@ -265,2 +302,6 @@ } | ||
} | ||
export interface GuardrailImageCoverage { | ||
guarded?: number | undefined; | ||
total?: number | undefined; | ||
} | ||
export interface GuardrailTextCharactersCoverage { | ||
@@ -272,2 +313,3 @@ guarded?: number | undefined; | ||
textCharacters?: GuardrailTextCharactersCoverage | undefined; | ||
images?: GuardrailImageCoverage | undefined; | ||
} | ||
@@ -459,2 +501,33 @@ export interface GuardrailUsage { | ||
} | ||
export declare const GuardrailConverseImageFormat: { | ||
readonly JPEG: "jpeg"; | ||
readonly PNG: "png"; | ||
}; | ||
export type GuardrailConverseImageFormat = | ||
(typeof GuardrailConverseImageFormat)[keyof typeof GuardrailConverseImageFormat]; | ||
export type GuardrailConverseImageSource = | ||
| GuardrailConverseImageSource.BytesMember | ||
| GuardrailConverseImageSource.$UnknownMember; | ||
export declare namespace GuardrailConverseImageSource { | ||
interface BytesMember { | ||
bytes: Uint8Array; | ||
$unknown?: never; | ||
} | ||
interface $UnknownMember { | ||
bytes?: never; | ||
$unknown: [string, any]; | ||
} | ||
interface Visitor<T> { | ||
bytes: (value: Uint8Array) => T; | ||
_: (name: string, value: any) => T; | ||
} | ||
const visit: <T>( | ||
value: GuardrailConverseImageSource, | ||
visitor: Visitor<T> | ||
) => T; | ||
} | ||
export interface GuardrailConverseImageBlock { | ||
format: GuardrailConverseImageFormat | undefined; | ||
source: GuardrailConverseImageSource | undefined; | ||
} | ||
export declare const GuardrailConverseContentQualifier: { | ||
@@ -472,2 +545,3 @@ readonly GROUNDING_SOURCE: "grounding_source"; | ||
export type GuardrailConverseContentBlock = | ||
| GuardrailConverseContentBlock.ImageMember | ||
| GuardrailConverseContentBlock.TextMember | ||
@@ -478,6 +552,13 @@ | GuardrailConverseContentBlock.$UnknownMember; | ||
text: GuardrailConverseTextBlock; | ||
image?: never; | ||
$unknown?: never; | ||
} | ||
interface ImageMember { | ||
text?: never; | ||
image: GuardrailConverseImageBlock; | ||
$unknown?: never; | ||
} | ||
interface $UnknownMember { | ||
text?: never; | ||
image?: never; | ||
$unknown: [string, any]; | ||
@@ -487,2 +568,3 @@ } | ||
text: (value: GuardrailConverseTextBlock) => T; | ||
image: (value: GuardrailConverseImageBlock) => T; | ||
_: (name: string, value: any) => T; | ||
@@ -951,4 +1033,8 @@ } | ||
} | ||
export interface PromptRouterTrace { | ||
invokedModelId?: string | undefined; | ||
} | ||
export interface ConverseTrace { | ||
guardrail?: GuardrailTraceAssessment | undefined; | ||
promptRouter?: PromptRouterTrace | undefined; | ||
} | ||
@@ -1093,2 +1179,3 @@ export interface TokenUsage { | ||
guardrail?: GuardrailTraceAssessment | undefined; | ||
promptRouter?: PromptRouterTrace | undefined; | ||
} | ||
@@ -1463,5 +1550,37 @@ export interface ConverseStreamMetadataEvent { | ||
) => any; | ||
export declare const GuardrailImageSourceFilterSensitiveLog: ( | ||
obj: GuardrailImageSource | ||
) => any; | ||
export declare const GuardrailImageBlockFilterSensitiveLog: ( | ||
obj: GuardrailImageBlock | ||
) => any; | ||
export declare const GuardrailContentBlockFilterSensitiveLog: ( | ||
obj: GuardrailContentBlock | ||
) => any; | ||
export declare const ApplyGuardrailRequestFilterSensitiveLog: ( | ||
obj: ApplyGuardrailRequest | ||
) => any; | ||
export declare const GuardrailConverseImageSourceFilterSensitiveLog: ( | ||
obj: GuardrailConverseImageSource | ||
) => any; | ||
export declare const GuardrailConverseImageBlockFilterSensitiveLog: ( | ||
obj: GuardrailConverseImageBlock | ||
) => any; | ||
export declare const GuardrailConverseContentBlockFilterSensitiveLog: ( | ||
obj: GuardrailConverseContentBlock | ||
) => any; | ||
export declare const ContentBlockFilterSensitiveLog: (obj: ContentBlock) => any; | ||
export declare const MessageFilterSensitiveLog: (obj: Message) => any; | ||
export declare const SystemContentBlockFilterSensitiveLog: ( | ||
obj: SystemContentBlock | ||
) => any; | ||
export declare const ConverseRequestFilterSensitiveLog: ( | ||
obj: ConverseRequest | ||
) => any; | ||
export declare const ConverseOutputFilterSensitiveLog: ( | ||
obj: ConverseOutput | ||
) => any; | ||
export declare const ConverseResponseFilterSensitiveLog: ( | ||
obj: ConverseResponse | ||
) => any; | ||
export declare const ConverseStreamRequestFilterSensitiveLog: ( | ||
@@ -1468,0 +1587,0 @@ obj: ConverseStreamRequest |
{ | ||
"name": "@aws-sdk/client-bedrock-runtime", | ||
"description": "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native", | ||
"version": "3.705.0", | ||
"version": "3.706.0", | ||
"scripts": { | ||
@@ -6,0 +6,0 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
610955
14533