GenaiClassSummaryGenerationDefinition class

The GenaiClassSummaryGenerationDefinition class is a subclass of the ReplicableClassDefinition class. The class defines custom summary generation attributes for a document class.

The following are the property templates of the GenaiClassSummaryGenerationDefinition class:
Table 1. GenaiClassSummaryGenerationDefinition class properties
Property Data type Description
GenaiSummaryPromptClass Object The property contains the object reference of the document subclass for which you want to define a summary prompt template.
GenaiLLMDocSummaryPromptTemplate String The property defines the custom summary prompt template.
GenaiMaxSummaryWords Integer The property defines the maximum number of words that can be included in the summary that watsonx.ai generates.
For more information, see the topic Creating a summary prompt template for a document class External link opens a new window or tab.