Class NeutralOptions

java.lang.Object
com.agentforge4j.llm.NeutralOptions

public final class NeutralOptions extends Object
Small builder for the canonical dotted provider-option map emitted by LlmClientConfigurationAdapter implementations. Null values are skipped (so optional/unset properties become absent options that the provider factory defaults or rejects), keeping the backing map free of the nulls that LlmProviderOptions.of(String, Map) would reject.
  • Constructor Details

    • NeutralOptions

      public NeutralOptions()
  • Method Details

    • create

      public static NeutralOptions create()
      Returns:
      a new builder
    • string

      public NeutralOptions string(String key, String value)
      Adds a string option when value is non-null.
      Parameters:
      key - the canonical option key
      value - the value, or null to skip
      Returns:
      this
    • duration

      public NeutralOptions duration(String key, Duration value)
      Adds a Duration option (ISO-8601) when value is non-null.
      Parameters:
      key - the canonical option key
      value - the value, or null to skip
      Returns:
      this
    • number

      public NeutralOptions number(String key, Number value)
      Adds a numeric option when value is non-null.
      Parameters:
      key - the canonical option key
      value - the value, or null to skip
      Returns:
      this
    • toMap

      public Map<String,String> toMap()
      Returns:
      the assembled option map