Class JsonGuardrailsUtils

java.lang.Object
io.quarkiverse.langchain4j.guardrails.JsonGuardrailsUtils

@Deprecated(forRemoval=true) @ApplicationScoped public class JsonGuardrailsUtils extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    deserialize(String json, com.fasterxml.jackson.core.type.TypeReference<T> expectedOutputType)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    <T> T
    deserialize(String json, Class<T> expectedOutputClass)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    trimNonJson(String llmResponse)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • trimNonJson

      public String trimNonJson(String llmResponse)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • deserialize

      public <T> T deserialize(String json, Class<T> expectedOutputClass)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • deserialize

      public <T> T deserialize(String json, com.fasterxml.jackson.core.type.TypeReference<T> expectedOutputType)
      Deprecated, for removal: This API element is subject to removal in a future version.