Class SystemOneRuntimeHints

java.lang.Object
org.springframework.ai.systemone.aot.SystemOneRuntimeHints
All Implemented Interfaces:
org.springframework.aot.hint.RuntimeHintsRegistrar

public class SystemOneRuntimeHints extends Object implements org.springframework.aot.hint.RuntimeHintsRegistrar
Registers runtime hints for the TypeSafe SDK types that the System One decision models send and receive as JSON.

The SDK ships no native image metadata, and scanning its package misses types such as JsonContent that use @JsonValue and @JsonCreator only, so the types are listed here. Every decision model built on the SDK, such as the Ollama one, gets these hints through its dependency on this module.

Since:
2.1.0
Author:
Thomas Vitale, Christian Tzolov
  • Constructor Details

    • SystemOneRuntimeHints

      public SystemOneRuntimeHints()
  • Method Details

    • registerHints

      public void registerHints(org.springframework.aot.hint.RuntimeHints hints, @Nullable ClassLoader classLoader)
      Specified by:
      registerHints in interface org.springframework.aot.hint.RuntimeHintsRegistrar