Class SerdeJsonCodecFactory

java.lang.Object
io.micronaut.langchain4j.serde.SerdeJsonCodecFactory
All Implemented Interfaces:
dev.langchain4j.spi.json.JsonCodecFactory, dev.langchain4j.spi.PrioritizedFactory

@Internal public final class SerdeJsonCodecFactory extends Object implements dev.langchain4j.spi.json.JsonCodecFactory, dev.langchain4j.spi.PrioritizedFactory
Registers the SerdeJsonCodec as LangChain4j's general purpose JSON codec (dev.langchain4j.internal.Json), ahead of other factories.
Since:
2.4.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The priority of the factory: above the default priority of the factories of other integrations.

    Fields inherited from interface dev.langchain4j.spi.PrioritizedFactory

    DEFAULT_PRIORITY, YIELDS_TO_OTHERS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    dev.langchain4j.internal.Json.JsonCodec
     
    int
     

    Methods inherited from class Object

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

    • CODEC_PRIORITY

      public static final int CODEC_PRIORITY
      The priority of the factory: above the default priority of the factories of other integrations.
      See Also:
  • Constructor Details

    • SerdeJsonCodecFactory

      public SerdeJsonCodecFactory()
  • Method Details

    • create

      public dev.langchain4j.internal.Json.JsonCodec create()
      Specified by:
      create in interface dev.langchain4j.spi.json.JsonCodecFactory
    • priority

      public int priority()
      Specified by:
      priority in interface dev.langchain4j.spi.PrioritizedFactory