Enum Class ModelSource

java.lang.Object
java.lang.Enum<ModelSource>
com.agentforge4j.runtime.llm.ModelSource
All Implemented Interfaces:
Serializable, Comparable<ModelSource>, Constable

public enum ModelSource extends Enum<ModelSource>
How the concrete model for an LLM call was determined, recorded as audit metadata on AgentInvocationResult and the LLM_CALL_COMPLETED event.
  • Enum Constant Details

    • PIN

      public static final ModelSource PIN
      A raw model pin on the selected ProviderPreference was used verbatim. Pins always win over tiers.
    • TIER

      public static final ModelSource TIER
      A declared capability tier was resolved to a concrete model via the configured ModelTierResolver.
    • PROVIDER_DEFAULT

      public static final ModelSource PROVIDER_DEFAULT
      Neither a pin nor a tier applied; the request carried no model and the provider's own default was used.
  • Method Details

    • values

      public static ModelSource[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ModelSource valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null