Interface StateJsonCodecFactory
- All Known Implementing Classes:
Jackson3StateJsonCodecFactory
public interface StateJsonCodecFactory
A factory for a JSON codec that writes and reads type information, discovered through
ServiceHelper.
Implement this to supply the codec used for state that can hold arbitrary values - agent state being the case in LangChain4j - so that such state is read and written by the same JSON library as everything else.
- See Also:
-
Method Summary
-
Method Details
-
create
- 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.
-