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.

Contains the content of a document.

Inheritance Hierarchy

System.Object
  Amazon.BedrockRuntime.Model.DocumentSource

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

Syntax

C#
public class DocumentSource

The DocumentSource type exposes the following members

Constructors

NameDescription
Public Method DocumentSource()

Properties

NameTypeDescription
Public Property Bytes System.IO.MemoryStream

Gets and sets the property Bytes.

The raw bytes for the document. If you use an Amazon Web Services SDK, you don't need to encode the bytes in base64.

Public Property Content System.Collections.Generic.List<Amazon.BedrockRuntime.Model.DocumentContentBlock>

Gets and sets the property Content.

The structured content of the document source, which may include various content blocks such as text, images, or other document elements.

Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.

Public Property S3Location Amazon.BedrockRuntime.Model.S3Location

Gets and sets the property S3Location.

The location of a document object in an Amazon S3 bucket. To see which models support S3 uploads, see Supported models and features for Converse.

Public Property Text System.String

Gets and sets the property Text.

The text content of the document source.

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