Record Class ProviderModelConfig
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ProviderModelConfig
@Generated("copilot-sdk-codegen")
public record ProviderModelConfig(String id, String provider, String wireModel, String modelId, String name, Double maxPromptTokens, Double maxContextWindowTokens, Double maxOutputTokens, ModelCapabilitiesOverride capabilities)
extends Record
A BYOK model definition referencing a named provider.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionProviderModelConfig(String id, String provider, String wireModel, String modelId, String name, Double maxPromptTokens, Double maxContextWindowTokens, Double maxOutputTokens, ModelCapabilitiesOverride capabilities) Creates an instance of aProviderModelConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecapabilitiesrecord 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 themaxContextWindowTokensrecord component.Returns the value of themaxOutputTokensrecord component.Returns the value of themaxPromptTokensrecord component.modelId()Returns the value of themodelIdrecord component.name()Returns the value of thenamerecord component.provider()Returns the value of theproviderrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewireModelrecord component.
-
Constructor Details
-
ProviderModelConfig
public ProviderModelConfig(String id, String provider, String wireModel, String modelId, String name, Double maxPromptTokens, Double maxContextWindowTokens, Double maxOutputTokens, ModelCapabilitiesOverride capabilities) Creates an instance of aProviderModelConfigrecord class.- Parameters:
id- the value for theidrecord componentprovider- the value for theproviderrecord componentwireModel- the value for thewireModelrecord componentmodelId- the value for themodelIdrecord componentname- the value for thenamerecord componentmaxPromptTokens- the value for themaxPromptTokensrecord componentmaxContextWindowTokens- the value for themaxContextWindowTokensrecord componentmaxOutputTokens- the value for themaxOutputTokensrecord componentcapabilities- the value for thecapabilitiesrecord 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
-
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
wireModel
Returns the value of thewireModelrecord component.- Returns:
- the value of the
wireModelrecord component
-
modelId
Returns the value of themodelIdrecord component.- Returns:
- the value of the
modelIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
maxPromptTokens
Returns the value of themaxPromptTokensrecord component.- Returns:
- the value of the
maxPromptTokensrecord component
-
maxContextWindowTokens
Returns the value of themaxContextWindowTokensrecord component.- Returns:
- the value of the
maxContextWindowTokensrecord component
-
maxOutputTokens
Returns the value of themaxOutputTokensrecord component.- Returns:
- the value of the
maxOutputTokensrecord component
-
capabilities
Returns the value of thecapabilitiesrecord component.- Returns:
- the value of the
capabilitiesrecord component
-