Record Class FakeLlmClientProperties
java.lang.Object
java.lang.Record
com.agentforge4j.starter.llmclient.fake.FakeLlmClientProperties
- Record Components:
enabled- opt-in toggle evaluated by FakeProviderAutoConfigurationttl- stale-run time-to-live for the leak guard;nulldisables TTL eviction (the default) — a registered run is held untilderegistermaxRuns- 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 aWARNlog
@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 Summary
ConstructorsConstructorDescriptionFakeLlmClientProperties(Boolean enabled, Duration ttl, int maxRuns) Creates an instance of aFakeLlmClientPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmaxRuns()Returns the value of themaxRunsrecord component.final StringtoString()Returns a string representation of this record class.ttl()Returns the value of thettlrecord component.
-
Constructor Details
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
ttl
Returns the value of thettlrecord component.- Returns:
- the value of the
ttlrecord component
-
maxRuns
public int maxRuns()Returns the value of themaxRunsrecord component.- Returns:
- the value of the
maxRunsrecord component
-