Share via


TextSummarizer Class

Definition

Represents a specialized lanugage model capable of summarizing text input.

public ref class TextSummarizer sealed
/// [Windows.Foundation.Metadata.Activatable(Microsoft.Windows.AI.Text.ITextSummarizerFactory, 131072, "Microsoft.Windows.AI.Text.TextIntelligenceContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.AI.Text.TextIntelligenceContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TextSummarizer final
[Windows.Foundation.Metadata.Activatable(typeof(Microsoft.Windows.AI.Text.ITextSummarizerFactory), 131072, "Microsoft.Windows.AI.Text.TextIntelligenceContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.AI.Text.TextIntelligenceContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TextSummarizer
function TextSummarizer(languageModel)
Public NotInheritable Class TextSummarizer
Inheritance
Object Platform::Object IInspectable TextSummarizer
Attributes

Constructors

Name Description
TextSummarizer(LanguageModel)

Initializes a new instance of a TextSummarizer object.

Methods

Name Description
IsPromptLargerThanContext(ConversationItem[], ConversationSummaryOptions, UInt64)

Returns whether the text of a conversation is too large for the context window.

IsPromptLargerThanContext(String, UInt64)

Returns whether the text input is too large for the context window.

SummarizeAsync(String)

Asynchronously summarizes the text input.

SummarizeConversationAsync(IVectorView<ConversationItem>, ConversationSummaryOptions)

Asynchronously summarizes the text of a conversation.

SummarizeParagraphAsync(String)

Asynchronously summarizes a paragraph of text input.

Applies to