AWS SDK Version 4 for .NET
API Reference

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.

Inheritance Hierarchy

System.Object
  Amazon.BedrockRuntime.Model.ContentBlock

Namespace: Amazon.BedrockRuntime.Model
Assembly: AWSSDK.BedrockRuntime.dll
Version: 3.x.y.z

Syntax

C#
public class ContentBlock

The ContentBlock type exposes the following members

Constructors

NameDescription
Public Method ContentBlock()

Properties

NameTypeDescription
Public Property CachePoint Amazon.BedrockRuntime.Model.CachePointBlock

Gets and sets the property CachePoint.

CachePoint to include in the message.

Public Property 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.

Public Property Document Amazon.BedrockRuntime.Model.DocumentBlock

Gets and sets the property Document.

A document to include in the message.

Public Property GuardContent Amazon.BedrockRuntime.Model.GuardrailConverseContentBlock

Gets and sets the property GuardContent.

Contains the content to assess with the guardrail. If you don't specify guardContent in a call to the Converse API, the guardrail (if passed in the Converse API) assesses the entire message.

For more information, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide.

Public Property 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.

Public Property 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.

Public Property Text System.String

Gets and sets the property Text.

Text to include in the message.

Public Property ToolResult Amazon.BedrockRuntime.Model.ToolResultBlock

Gets and sets the property ToolResult.

The result for a tool request that a model makes.

Public Property ToolUse Amazon.BedrockRuntime.Model.ToolUseBlock

Gets and sets the property ToolUse.

Information about a tool use request from a model.

Public Property Video Amazon.BedrockRuntime.Model.VideoBlock

Gets and sets the property Video.

Video to include in the message.

Version Information

.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