Uses of Interface
org.springframework.ai.converter.ResponseTextCleaner
Packages that use ResponseTextCleaner
Package
Description
Provides converters for transforming AI model text outputs into structured Java types.
-
Uses of ResponseTextCleaner in org.springframework.ai.converter
Classes in org.springframework.ai.converter that implement ResponseTextCleanerModifier and TypeClassDescriptionclassA compositeResponseTextCleanerthat applies multiple cleaners in sequence.classAResponseTextCleanerthat removes markdown code block formatting from LLM responses.classAResponseTextCleanerthat removes thinking tags from LLM responses.classAResponseTextCleanerthat trims leading and trailing whitespace from text.Methods in org.springframework.ai.converter with parameters of type ResponseTextCleanerModifier and TypeMethodDescriptionCompositeResponseTextCleaner.Builder.addCleaner(ResponseTextCleaner cleaner) Add a cleaner to the pipeline.Constructors in org.springframework.ai.converter with parameters of type ResponseTextCleanerModifierConstructorDescriptionBeanOutputConverter(Class<T> clazz, com.fasterxml.jackson.databind.ObjectMapper objectMapper, ResponseTextCleaner textCleaner) Constructor to initialize with the target type's class, a custom object mapper, and a custom text cleaner.BeanOutputConverter(org.springframework.core.ParameterizedTypeReference<T> typeRef, com.fasterxml.jackson.databind.ObjectMapper objectMapper, ResponseTextCleaner textCleaner) Constructor to initialize with the target class type reference, a custom object mapper, and a custom text cleaner.CompositeResponseTextCleaner(ResponseTextCleaner... cleaners) Creates a composite cleaner with the given cleaners.Constructor parameters in org.springframework.ai.converter with type arguments of type ResponseTextCleanerModifierConstructorDescriptionCompositeResponseTextCleaner(List<ResponseTextCleaner> cleaners) Creates a composite cleaner with the given cleaners.