Record Class Model
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.Model
@Generated("copilot-sdk-codegen")
public record Model(String id, String name, ModelCapabilities capabilities, Map<String,Object> metadata, String vendor, ModelPolicy policy, ModelBilling billing, List<String> supportedReasoningEfforts, String defaultReasoningEffort, List<String> supportedContextTiers, ModelPickerCategory modelPickerCategory, ModelPickerPriceCategory modelPickerPriceCategory, ModelWarningText warningText, List<ModelMessage> infoMessages, List<ModelMessage> warningMessages, ModelProviderRef provider)
extends Record
Copilot model metadata, including identifier, display name, capabilities, policy, billing, reasoning efforts, and picker categories.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionModel(String id, String name, ModelCapabilities capabilities, Map<String, Object> metadata, String vendor, ModelPolicy policy, ModelBilling billing, List<String> supportedReasoningEfforts, String defaultReasoningEffort, List<String> supportedContextTiers, ModelPickerCategory modelPickerCategory, ModelPickerPriceCategory modelPickerPriceCategory, ModelWarningText warningText, List<ModelMessage> infoMessages, List<ModelMessage> warningMessages, ModelProviderRef provider) Creates an instance of aModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbilling()Returns the value of thebillingrecord component.Returns the value of thecapabilitiesrecord component.Returns the value of thedefaultReasoningEffortrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theinfoMessagesrecord component.metadata()Returns the value of themetadatarecord component.Returns the value of themodelPickerCategoryrecord component.Returns the value of themodelPickerPriceCategoryrecord component.name()Returns the value of thenamerecord component.policy()Returns the value of thepolicyrecord component.provider()Returns the value of theproviderrecord component.Returns the value of thesupportedContextTiersrecord component.Returns the value of thesupportedReasoningEffortsrecord component.final StringtoString()Returns a string representation of this record class.vendor()Returns the value of thevendorrecord component.Returns the value of thewarningMessagesrecord component.Returns the value of thewarningTextrecord component.
-
Constructor Details
-
Model
public Model(String id, String name, ModelCapabilities capabilities, Map<String, Object> metadata, String vendor, ModelPolicy policy, ModelBilling billing, List<String> supportedReasoningEfforts, String defaultReasoningEffort, List<String> supportedContextTiers, ModelPickerCategory modelPickerCategory, ModelPickerPriceCategory modelPickerPriceCategory, ModelWarningText warningText, List<ModelMessage> infoMessages, List<ModelMessage> warningMessages, ModelProviderRef provider) Creates an instance of aModelrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentcapabilities- the value for thecapabilitiesrecord componentmetadata- the value for themetadatarecord componentvendor- the value for thevendorrecord componentpolicy- the value for thepolicyrecord componentbilling- the value for thebillingrecord componentsupportedReasoningEfforts- the value for thesupportedReasoningEffortsrecord componentdefaultReasoningEffort- the value for thedefaultReasoningEffortrecord componentsupportedContextTiers- the value for thesupportedContextTiersrecord componentmodelPickerCategory- the value for themodelPickerCategoryrecord componentmodelPickerPriceCategory- the value for themodelPickerPriceCategoryrecord componentwarningText- the value for thewarningTextrecord componentinfoMessages- the value for theinfoMessagesrecord componentwarningMessages- the value for thewarningMessagesrecord componentprovider- the value for theproviderrecord component
-
-
Method Details
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
capabilities
Returns the value of thecapabilitiesrecord component.- Returns:
- the value of the
capabilitiesrecord component
-
metadata
-
vendor
Returns the value of thevendorrecord component.- Returns:
- the value of the
vendorrecord component
-
policy
Returns the value of thepolicyrecord component.- Returns:
- the value of the
policyrecord component
-
billing
Returns the value of thebillingrecord component.- Returns:
- the value of the
billingrecord component
-
supportedReasoningEfforts
-
defaultReasoningEffort
Returns the value of thedefaultReasoningEffortrecord component.- Returns:
- the value of the
defaultReasoningEffortrecord component
-
supportedContextTiers
-
modelPickerCategory
Returns the value of themodelPickerCategoryrecord component.- Returns:
- the value of the
modelPickerCategoryrecord component
-
modelPickerPriceCategory
Returns the value of themodelPickerPriceCategoryrecord component.- Returns:
- the value of the
modelPickerPriceCategoryrecord component
-
warningText
Returns the value of thewarningTextrecord component.- Returns:
- the value of the
warningTextrecord component
-
infoMessages
Returns the value of theinfoMessagesrecord component.- Returns:
- the value of the
infoMessagesrecord component
-
warningMessages
Returns the value of thewarningMessagesrecord component.- Returns:
- the value of the
warningMessagesrecord component
-
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-