Class ContentFormatTransformer
java.lang.Object
org.springframework.ai.transformer.ContentFormatTransformer
ContentFormatTransformer processes a list of documents by applying a content formatter
to each document.
- Since:
- 1.0.0
- Author:
- Christian Tzolov
-
Constructor Summary
ConstructorDescriptionContentFormatTransformer
(ContentFormatter contentFormatter) Creates a ContentFormatTransformer object with the given ContentFormatter.ContentFormatTransformer
(ContentFormatter contentFormatter, boolean disableTemplateRewrite) The ContentFormatTransformer class is responsible for processing a list of documents by applying a content formatter to each document. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.ai.document.DocumentTransformer
transform
-
Constructor Details
-
ContentFormatTransformer
Creates a ContentFormatTransformer object with the given ContentFormatter.- Parameters:
contentFormatter
- the ContentFormatter to be used for transforming the documents
-
ContentFormatTransformer
The ContentFormatTransformer class is responsible for processing a list of documents by applying a content formatter to each document.- Parameters:
contentFormatter
- The ContentFormatter to be used for transforming the documentsdisableTemplateRewrite
- Flag indicating whether to disable the content-formatter template rewrite
-
-
Method Details