Record Class ModelsListResult.ModelsListResultModelsItem.ModelsListResultModelsItemCapabilities.ModelsListResultModelsItemCapabilitiesLimits
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.rpc.ModelsListResult.ModelsListResultModelsItem.ModelsListResultModelsItemCapabilities.ModelsListResultModelsItemCapabilitiesLimits
public static record ModelsListResult.ModelsListResultModelsItem.ModelsListResultModelsItemCapabilities.ModelsListResultModelsItemCapabilitiesLimits(Double maxPromptTokens, Double maxOutputTokens, Double maxContextWindowTokens, ModelsListResult.ModelsListResultModelsItem.ModelsListResultModelsItemCapabilities.ModelsListResultModelsItemCapabilitiesLimits.ModelsListResultModelsItemCapabilitiesLimitsVision vision)
extends Record
Token limits for prompts, outputs, and context window
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordVision-specific limits -
Constructor Summary
ConstructorsConstructorDescriptionModelsListResultModelsItemCapabilitiesLimits(Double maxPromptTokens, Double maxOutputTokens, Double maxContextWindowTokens, ModelsListResult.ModelsListResultModelsItem.ModelsListResultModelsItemCapabilities.ModelsListResultModelsItemCapabilitiesLimits.ModelsListResultModelsItemCapabilitiesLimitsVision vision) Creates an instance of aModelsListResultModelsItemCapabilitiesLimitsrecord 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.Returns the value of themaxContextWindowTokensrecord component.Returns the value of themaxOutputTokensrecord component.Returns the value of themaxPromptTokensrecord component.final StringtoString()Returns a string representation of this record class.vision()Returns the value of thevisionrecord component.
-
Constructor Details
-
ModelsListResultModelsItemCapabilitiesLimits
public ModelsListResultModelsItemCapabilitiesLimits(Double maxPromptTokens, Double maxOutputTokens, Double maxContextWindowTokens, ModelsListResult.ModelsListResultModelsItem.ModelsListResultModelsItemCapabilities.ModelsListResultModelsItemCapabilitiesLimits.ModelsListResultModelsItemCapabilitiesLimitsVision vision) Creates an instance of aModelsListResultModelsItemCapabilitiesLimitsrecord class.- Parameters:
maxPromptTokens- the value for themaxPromptTokensrecord componentmaxOutputTokens- the value for themaxOutputTokensrecord componentmaxContextWindowTokens- the value for themaxContextWindowTokensrecord componentvision- the value for thevisionrecord component
-
-
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). -
maxPromptTokens
Returns the value of themaxPromptTokensrecord component.- Returns:
- the value of the
maxPromptTokensrecord component
-
maxOutputTokens
Returns the value of themaxOutputTokensrecord component.- Returns:
- the value of the
maxOutputTokensrecord component
-
maxContextWindowTokens
Returns the value of themaxContextWindowTokensrecord component.- Returns:
- the value of the
maxContextWindowTokensrecord component
-
vision
Returns the value of thevisionrecord component.- Returns:
- the value of the
visionrecord component
-