Record Class AiModelDiscovery
java.lang.Object
java.lang.Record
com.shaft.pilot.ai.AiModelDiscovery
Safe result of a provider model-discovery request.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumModel-discovery outcome without provider response details. -
Constructor Summary
ConstructorsConstructorDescriptionAiModelDiscovery(AiModelDiscovery.Status status, List<String> models) Creates an instance of aAiModelDiscoveryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static booleanisSafeModelId(String value) Returns whether a provider-supplied model identifier is safe to expose to clients.models()Returns the value of themodelsrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.static AiModelDiscovery
-
Constructor Details
-
AiModelDiscovery
Creates an instance of aAiModelDiscoveryrecord class.- Parameters:
status- the value for thestatusrecord componentmodels- the value for themodelsrecord component
-
-
Method Details
-
isSafeModelId
Returns whether a provider-supplied model identifier is safe to expose to clients. -
toString
-
hashCode
-
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). -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
models