Class Jackson3StateJsonCodecFactory

java.lang.Object
dev.langchain4j.jackson3.Jackson3StateJsonCodecFactory
All Implemented Interfaces:
StateJsonCodecFactory, PrioritizedFactory

public class Jackson3StateJsonCodecFactory extends Object implements StateJsonCodecFactory, PrioritizedFactory
  • Constructor Details

    • Jackson3StateJsonCodecFactory

      public Jackson3StateJsonCodecFactory()
  • Method Details

    • priority

      public int priority()
      Specified by:
      priority in interface PrioritizedFactory
    • create

      public Json.JsonCodec create(TypeAllowlist allowlist, ClassLoader classLoader)
      Specified by:
      create in interface StateJsonCodecFactory
      Parameters:
      allowlist - decides which types the returned codec may instantiate while reading.
      classLoader - resolves the type names found in the document, or null to leave that to the JSON library. An application whose domain types are not visible to the class loader that loaded LangChain4j has to say which one is.