DocumentBlock
A document to include in a message.
Contents
- format
-
The format of a document, or its extension.
Type: String
Valid Values:
pdf | csv | doc | docx | xls | xlsx | html | txt | md
Required: Yes
- 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
Note
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.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 200.
Required: Yes
-
- source
-
Contains the content of the document.
Type: DocumentSource object
Note: This object is a Union. Only one member of this object can be specified or returned.
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: