Class: Aws::BedrockRuntime::Types::DocumentBlock

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-bedrockruntime/types.rb

Overview

A document to include in a message.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#formatString

The format of a document, or its extension.

Returns:

  • (String)


702
703
704
705
706
707
708
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 702

class DocumentBlock < Struct.new(
  :format,
  :name,
  :source)
  SENSITIVE = []
  include Aws::Structure
end

#nameString

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

<note markdown=“1”> 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.

</note>

Returns:

  • (String)


702
703
704
705
706
707
708
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 702

class DocumentBlock < Struct.new(
  :format,
  :name,
  :source)
  SENSITIVE = []
  include Aws::Structure
end

#sourceTypes::DocumentSource

Contains the content of the document.



702
703
704
705
706
707
708
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 702

class DocumentBlock < Struct.new(
  :format,
  :name,
  :source)
  SENSITIVE = []
  include Aws::Structure
end