AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
A block of content for a message that you pass to, or receive from, a model with the Converse or ConverseStream API operations.
Namespace: Amazon.BedrockRuntime.Model
Assembly: AWSSDK.BedrockRuntime.dll
Version: 3.x.y.z
public class ContentBlock
The ContentBlock type exposes the following members
Name | Description | |
---|---|---|
![]() |
ContentBlock() |
Name | Type | Description | |
---|---|---|---|
![]() |
CachePoint | Amazon.BedrockRuntime.Model.CachePointBlock |
Gets and sets the property CachePoint. CachePoint to include in the message. |
![]() |
CitationsContent | Amazon.BedrockRuntime.Model.CitationsContentBlock |
Gets and sets the property CitationsContent. A content block that contains both generated text and associated citation information, providing traceability between the response and source documents. |
![]() |
Document | Amazon.BedrockRuntime.Model.DocumentBlock |
Gets and sets the property Document. A document to include in the message. |
![]() |
GuardContent | Amazon.BedrockRuntime.Model.GuardrailConverseContentBlock |
Gets and sets the property GuardContent.
Contains the content to assess with the guardrail. If you don't specify For more information, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide. |
![]() |
Image | Amazon.BedrockRuntime.Model.ImageBlock |
Gets and sets the property Image. Image to include in the message. This field is only supported by Anthropic Claude 3 models. |
![]() |
ReasoningContent | Amazon.BedrockRuntime.Model.ReasoningContentBlock |
Gets and sets the property ReasoningContent. Contains content regarding the reasoning that is carried out by the model. Reasoning refers to a Chain of Thought (CoT) that the model generates to enhance the accuracy of its final response. |
![]() |
Text | System.String |
Gets and sets the property Text. Text to include in the message. |
![]() |
ToolResult | Amazon.BedrockRuntime.Model.ToolResultBlock |
Gets and sets the property ToolResult. The result for a tool request that a model makes. |
![]() |
ToolUse | Amazon.BedrockRuntime.Model.ToolUseBlock |
Gets and sets the property ToolUse. Information about a tool use request from a model. |
![]() |
Video | Amazon.BedrockRuntime.Model.VideoBlock |
Gets and sets the property Video. Video to include in the message. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.7.2 and newer