ExtractionDocumentTextElement(TextContent, String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ExtractionDocumentTextElement class.
public ExtractionDocumentTextElement(Microsoft.Extensions.AI.TextContent content, string? role = default);
new Microsoft.Extensions.Documents.ExtractionDocumentTextElement : Microsoft.Extensions.AI.TextContent * string -> Microsoft.Extensions.Documents.ExtractionDocumentTextElement
Public Sub New (content As TextContent, Optional role As String = Nothing)
Parameters
- content
- TextContent
The text payload, without a required formatting convention.
- role
- String
The optional semantic role, or null when unspecified.