Package dev.agenor.autoconfigure
Record Class AgenorProperties.Llm
java.lang.Object
java.lang.Record
dev.agenor.autoconfigure.AgenorProperties.Llm
- Record Components:
provider- LLM provider to activate (none,openai,anthropic,ollama); defaultnoneapiKey- API key for cloud providers (required foropenaiandanthropic); use${ENV_VAR}for injectionmodel- model name override; falls back to provider default if nullbaseUrl- base URL for self-hosted providers (Ollama); defaulthttp://localhost:11434
- Enclosing class:
AgenorProperties
public static record AgenorProperties.Llm(String provider, String apiKey, String model, String baseUrl)
extends Record
LLM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiKey()Returns the value of theapiKeyrecord component.baseUrl()Returns the value of thebaseUrlrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.provider()Returns the value of theproviderrecord component.final StringtoString()Returns a string representation of this record class.
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
apiKey
Returns the value of theapiKeyrecord component.- Returns:
- the value of the
apiKeyrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
baseUrl
Returns the value of thebaseUrlrecord component.- Returns:
- the value of the
baseUrlrecord component
-