Package-level declarations

Types

Link copied to clipboard

The request is denied because you do not have sufficient permissions to perform the requested action. For troubleshooting this error, see AccessDeniedException in the Amazon Bedrock User Guide

Link copied to clipboard

The model must request at least one tool (no text is generated). For example, {"any" : {}}.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Asynchronous invocation output data settings.

Link copied to clipboard

Asynchronous invocation output data settings.

Link copied to clipboard
sealed class AsyncInvokeStatus
Link copied to clipboard

A summary of an asynchronous invocation.

Link copied to clipboard

The Model automatically decides if a tool should be called or whether to generate text instead. For example, {"auto" : {}}.

Link copied to clipboard

Base class for all service related exceptions thrown by the BedrockRuntime client

Link copied to clipboard

Payload content for the bidirectional input. The input is an audio stream.

Link copied to clipboard

Output from the bidirectional stream. The output is speech and a text transcription.

Link copied to clipboard

Defines a section of content to be cached for reuse in subsequent API calls.

Link copied to clipboard
sealed class CachePointType
Link copied to clipboard
class Citation

Contains information about a citation that references a specific source document. Citations provide traceability between the model's generated response and the source documents that informed that response.

Link copied to clipboard

Contains the generated text content that corresponds to or is supported by a citation from a source document.

Link copied to clipboard
sealed class CitationLocation

Specifies the precise location within a source document where cited content can be found. This can include character-level positions, page numbers, or document chunks depending on the document type and indexing method.

Link copied to clipboard

Configuration settings for enabling and controlling document citations in Converse API responses. When enabled, the model can include citation information that links generated content back to specific source documents.

Link copied to clipboard

A content block that contains both generated text and associated citation information. This block type is returned when document citations are enabled, providing traceability between the generated content and the source documents that informed the response.

Link copied to clipboard

Contains incremental updates to citation information during streaming responses. This allows clients to build up citation data progressively as the response is generated.

Link copied to clipboard

Contains the actual text content from a source document that is being cited or referenced in the model's response.

Link copied to clipboard

Contains incremental updates to the source content text during streaming responses, allowing clients to build up the cited content progressively.

Link copied to clipboard

Error occurred because of a conflict while performing an operation.

Link copied to clipboard
sealed class ContentBlock

A block of content for a message that you pass to, or receive from, a model with the Converse or ConverseStream API operations.

Link copied to clipboard
sealed class ContentBlockDelta

A block of content in a streaming response.

Link copied to clipboard

The content block delta event.

Link copied to clipboard
sealed class ContentBlockStart

Content block start information.

Link copied to clipboard

Content block start event.

Link copied to clipboard

A content block stop event.

Link copied to clipboard
sealed class ConversationRole
Link copied to clipboard

Metrics for a call to Converse.

Link copied to clipboard
sealed class ConverseOutput

The output from a call to Converse.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A conversation stream metadata event.

Link copied to clipboard

Metrics for the stream.

Link copied to clipboard

The messages output stream

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The trace object in a response from ConverseStream. Currently, you can only trace guardrails.

Link copied to clipboard

The trace object in a response from Converse. Currently, you can only trace guardrails.

Link copied to clipboard

A document to include in a message.

Link copied to clipboard

Specifies a character-level location within a document, providing precise positioning information for cited content using start and end character indices.

Link copied to clipboard

Specifies a chunk-level location within a document, providing positioning information for cited content using logical document segments or chunks.

Link copied to clipboard

Contains the actual content of a document that can be processed by the model and potentially cited in the response.

Link copied to clipboard
sealed class DocumentFormat
Link copied to clipboard

Specifies a page-level location within a document, providing positioning information for cited content using page numbers.

Link copied to clipboard
sealed class DocumentSource

Contains the content of a document.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed class GuardrailAction
Link copied to clipboard

A behavior assessment of the guardrail policies used in a call to the Converse API.

Link copied to clipboard

Configuration information for a guardrail that you use with the Converse operation.

Link copied to clipboard

The content block to be evaluated by the guardrail.

Link copied to clipboard

The content filter for a guardrail.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

An assessment of a content policy for a guardrail.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The details for the guardrails contextual grounding filter.

The policy assessment details for the guardrails contextual grounding filter.

Link copied to clipboard

A content block for selective guarding with the Converse or ConverseStream API operations.

Link copied to clipboard

An image block that contains images that you want to assess with a guardrail.

Link copied to clipboard
Link copied to clipboard

The image source (image bytes) of the guardrail converse image source.

Link copied to clipboard

A text block that contains text that you want to assess with a guardrail. For more information, see GuardrailConverseContentBlock.

Link copied to clipboard

The action of the guardrail coverage details.

Link copied to clipboard

A custom word configured in a guardrail.

Link copied to clipboard

Contain an image which user wants guarded. This block is accepted by the guardrails independent API.

Link copied to clipboard

The details of the guardrail image coverage.

Link copied to clipboard
Link copied to clipboard

The image source (image bytes) of the guardrail image source. Object used in independent api.

Link copied to clipboard

The invocation metrics for the guardrail.

Link copied to clipboard

A managed word configured in a guardrail.

Link copied to clipboard
Link copied to clipboard

The output content produced by the guardrail.

Link copied to clipboard
Link copied to clipboard

A Personally Identifiable Information (PII) entity configured in a guardrail.

Link copied to clipboard
Link copied to clipboard

A Regex filter configured in a guardrail.

The assessment for aPersonally Identifiable Information (PII) policy.

Link copied to clipboard

Configuration information for a guardrail that you use with the ConverseStream action.

Link copied to clipboard
Link copied to clipboard

The text block to be evaluated by the guardrail.

Link copied to clipboard

The guardrail coverage for the text characters.

Link copied to clipboard

Information about a topic guardrail.

Link copied to clipboard
Link copied to clipboard

A behavior assessment of a topic policy.

Link copied to clipboard
sealed class GuardrailTopicType
Link copied to clipboard
sealed class GuardrailTrace
Link copied to clipboard

A Top level guardrail trace object. For more information, see ConverseTrace.

Link copied to clipboard

The details on the use of the guardrail.

Link copied to clipboard
Link copied to clipboard

The word policy assessment.

Link copied to clipboard

Image content for a message.

Link copied to clipboard
sealed class ImageFormat
Link copied to clipboard
sealed class ImageSource

The source for an image.

Link copied to clipboard

Base inference parameters to pass to a model in a call to Converse or ConverseStream. For more information, see Inference parameters for foundation models.

Link copied to clipboard

An internal server error occurred. For troubleshooting this error, see InternalFailure in the Amazon Bedrock User Guide

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Payload content, the speech chunk, for the bidirectional input of the invocation step.

Link copied to clipboard

Output from the bidirectional stream that was used for model invocation.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class Message

A message input, or returned from, a call to Converse or ConverseStream.

Link copied to clipboard

The start of a message.

Link copied to clipboard

The stop event for a message.

Link copied to clipboard

The request failed due to an error while processing the model.

Link copied to clipboard

The model specified in the request is not ready to serve inference requests. The AWS SDK will automatically retry the operation up to 5 times. For information about configuring automatic retries, see Retry behavior in the AWS SDKs and Tools reference guide.

Link copied to clipboard

An error occurred while streaming the response. Retry your request.

Link copied to clipboard

The request took too long to process. Processing time exceeded the model timeout length.

Link copied to clipboard

Payload content included in the response.

Link copied to clipboard
Link copied to clipboard

Performance settings for a model.

Link copied to clipboard

A prompt router trace.

Link copied to clipboard

Contains a map of variables in a prompt from Prompt management to an object containing the values to fill in for them when running model invocation. For more information, see How Prompt management works.

Link copied to clipboard

Contains content regarding the reasoning that is carried out by the model with respect to the content in the content block. Reasoning refers to a Chain of Thought (CoT) that the model generates to enhance the accuracy of its final response.

Link copied to clipboard

Contains content regarding the reasoning that is carried out by the model with respect to the content in the content block. Reasoning refers to a Chain of Thought (CoT) that the model generates to enhance the accuracy of its final response.

Link copied to clipboard

Contains the reasoning that the model used to return the output.

Link copied to clipboard

The specified resource ARN was not found. For troubleshooting this error, see ResourceNotFound in the Amazon Bedrock User Guide

Link copied to clipboard
sealed class ResponseStream

Definition of content in the response stream.

Link copied to clipboard

A storage location in an Amazon S3 bucket.

Link copied to clipboard

Your request exceeds the service quota for your account. You can view your quotas at Viewing service quotas. You can resubmit your request later.

Link copied to clipboard

The service isn't currently available. For troubleshooting this error, see ServiceUnavailable in the Amazon Bedrock User Guide

Link copied to clipboard
Link copied to clipboard
sealed class SortOrder
Link copied to clipboard

The model must request a specific tool. For example, {"tool" : {"name" : "Your tool name"}}.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed class StopReason
Link copied to clipboard
sealed class SystemContentBlock

A system content block.

Link copied to clipboard
class Tag

A tag.

Link copied to clipboard

Your request was denied due to exceeding the account quotas for Amazon Bedrock. For troubleshooting this error, see ThrottlingException in the Amazon Bedrock User Guide

Link copied to clipboard

The tokens used in a message API inference call.

Link copied to clipboard
sealed class Tool

Information about a tool that you can use with the Converse API. For more information, see Tool use (function calling) in the Amazon Bedrock User Guide.

Link copied to clipboard
sealed class ToolChoice

Determines which tools the model should request in a call to Converse or ConverseStream. ToolChoice is only supported by Anthropic Claude 3 models and by Mistral AI Mistral Large.

Link copied to clipboard

Configuration information for the tools that you pass to a model. For more information, see Tool use (function calling) in the Amazon Bedrock User Guide.

Link copied to clipboard
sealed class ToolInputSchema

The schema for the tool. The top level schema type must be object.

Link copied to clipboard

A tool result block that contains the results for a tool request that the model previously made.

Link copied to clipboard

The tool result content block.

Link copied to clipboard
sealed class ToolResultStatus
Link copied to clipboard

The specification for the tool.

Link copied to clipboard

A tool use content block. Contains information about a tool that the model is requesting be run., The model uses the result from the tool to generate a response.

Link copied to clipboard

The delta for a tool use block.

Link copied to clipboard

The start of a tool use block.

Link copied to clipboard
sealed class Trace
Link copied to clipboard

The input fails to satisfy the constraints specified by Amazon Bedrock. For troubleshooting this error, see ValidationError in the Amazon Bedrock User Guide

Link copied to clipboard

A video block.

Link copied to clipboard
sealed class VideoFormat
Link copied to clipboard
sealed class VideoSource

A video source. You can upload a smaller video as a base64-encoded string as long as the encoded file is less than 25MB. You can also transfer videos up to 1GB in size from an S3 bucket.