Skip to main content
All docs
V24.2

SummarizeBehavior() Constructor

Initializes a new instance of the SummarizeBehavior class.

Namespace: DevExpress.AIIntegration.Wpf

Assembly: DevExpress.AIIntegration.Wpf.v24.2.dll

NuGet Package: DevExpress.AIIntegration.Wpf

Declaration

public SummarizeBehavior()

Remarks

SummarizeBehavior supports the following summarization modes:

  1. Abstractive Summarization

    Generates a summary by understanding the context of the original text and rephrasing it in a new, concise form. The AI essentially “writes” a new summary based on its understanding, which may include new sentences that were not present in the original text.

  2. Extractive Summarization

    Selects and extracts key sentences or phrases from the original text. The AI identifies the most important parts of the content and combines them into a summary without altering the original wording.

The following example activates the AI-powered “Summarize” extension in a TextEdit control:

<dx:ThemedWindow
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
    xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm" 
    xmlns:dxai="http://schemas.devexpress.com/winfx/2008/xaml/ai"
    x:Class="AIAssistant.MainWindow"
    Title="MainWindow" Height="800" Width="800">
    <Grid>
        <dxe:TextEdit TextWrapping="Wrap" AcceptsReturn="True" VerticalContentAlignment="Top">
            <dxmvvm:Interaction.Behaviors>
                <dxai:SummarizeBehavior x:Name="Summarize" SummarizationMode = "Extractive"/>
            </dxmvvm:Interaction.Behaviors>
        </dxe:TextEdit>
    </Grid>
</dx:ThemedWindow>

Read the following help topic section for additional information: AI Assistant Extensions - Summarize.

See Also