AWS SDK Version 3 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 document to include in a message.

Inheritance Hierarchy

System.Object
  Amazon.BedrockRuntime.Model.DocumentBlock

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

Syntax

C#
public class DocumentBlock

The DocumentBlock type exposes the following members

Constructors

NameDescription
Public Method DocumentBlock()

Properties

NameTypeDescription
Public Property Citations Amazon.BedrockRuntime.Model.CitationsConfig

Gets and sets the property Citations.

Configuration settings that control how citations should be generated for this specific document.

Public Property Context System.String

Gets and sets the property Context.

Contextual information about how the document should be processed or interpreted by the model when generating citations.

Public Property Format Amazon.BedrockRuntime.DocumentFormat

Gets and sets the property Format.

The format of a document, or its extension.

Public Property Name System.String

Gets and sets the property Name.

A name for the document. The name can only contain the following characters:

  • Alphanumeric characters

  • Whitespace characters (no more than one in a row)

  • Hyphens

  • Parentheses

  • Square brackets

This field is vulnerable to prompt injections, because the model might inadvertently interpret it as instructions. Therefore, we recommend that you specify a neutral name.

Public Property Source Amazon.BedrockRuntime.Model.DocumentSource

Gets and sets the property Source.

Contains the content of the document.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5