Record Class FakeLlmClientProperties

java.lang.Object
java.lang.Record
com.agentforge4j.starter.llmclient.fake.FakeLlmClientProperties
Record Components:
enabled - opt-in toggle evaluated by FakeProviderAutoConfiguration
ttl - stale-run time-to-live for the leak guard; null disables TTL eviction (the default) — a registered run is held until deregister
maxRuns - optional dev/demo cap on concurrent tracked runs; 0 (the default) disables the cap. Leave off (or high) for verification so an in-flight run is never evicted; when exceeded the least-recently-used run is evicted with a WARN log

@ConfigurationProperties(prefix="agentforge4j.llm.fake") public record FakeLlmClientProperties(Boolean enabled, Duration ttl, int maxRuns) extends Record
Binds agentforge4j.llm.fake.* for the deterministic scripted provider.
  • Constructor Details

    • FakeLlmClientProperties

      public FakeLlmClientProperties(Boolean enabled, Duration ttl, int maxRuns)
      Creates an instance of a FakeLlmClientProperties record class.
      Parameters:
      enabled - the value for the enabled record component
      ttl - the value for the ttl record component
      maxRuns - the value for the maxRuns record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • enabled

      public Boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component
    • ttl

      public Duration ttl()
      Returns the value of the ttl record component.
      Returns:
      the value of the ttl record component
    • maxRuns

      public int maxRuns()
      Returns the value of the maxRuns record component.
      Returns:
      the value of the maxRuns record component