Package com.embabel.common.ai.converters
Class JacksonOutputConverter
-
- All Implemented Interfaces:
-
org.springframework.ai.converter.FormatProvider,org.springframework.ai.converter.StructuredOutputConverter,org.springframework.core.convert.converter.Converter
public class JacksonOutputConverter<T extends Object> implements StructuredOutputConverter<T>
A Kotlin version of org.springframework.ai.converter.BeanOutputConverter that allows for customization of the used schema via postProcessSchema
-
-
Field Summary
Fields Modifier and Type Field Description private final StringjsonSchemaprivate final ObjectMapperobjectMapper
-
Constructor Summary
Constructors Constructor Description JacksonOutputConverter(Class<T> clazz, ObjectMapper objectMapper)JacksonOutputConverter(ParameterizedTypeReference<T> typeReference, ObjectMapper objectMapper)
-
Method Summary
Modifier and Type Method Description final StringgetJsonSchema()final ObjectMappergetObjectMapper()Tconvert(String text)StringgetFormat()-
-
Method Detail
-
getJsonSchema
final String getJsonSchema()
-
getObjectMapper
final ObjectMapper getObjectMapper()
-
-
-
-