Class JsonGuardrailsUtils
java.lang.Object
io.quarkiverse.langchain4j.guardrails.JsonGuardrailsUtils
-
Method Summary
Modifier and TypeMethodDescription<T> T
deserialize
(String json, com.fasterxml.jackson.core.type.TypeReference<T> expectedOutputType) <T> T
deserialize
(String json, Class<T> expectedOutputClass) trimNonJson
(String llmResponse)
-
Method Details
-
trimNonJson
-
deserialize
-
deserialize
public <T> T deserialize(String json, com.fasterxml.jackson.core.type.TypeReference<T> expectedOutputType)
-