Record Class SessionProvidersModelsPrepareConfigurationResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionProvidersModelsPrepareConfigurationResult
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionProvidersModelsPrepareConfigurationResult(NamedProviderConfig provider, ProviderModelConfig model, String selectionId, ModelProviderConfigurationDisposition providerDisposition, ModelProviderConfigurationDisposition modelDisposition, List<ModelProviderWarning> warnings)
extends Record
Provider configuration prepared from a discovered model. Preparing a plan changes nothing: it neither registers the model with the session nor writes durable configuration. To apply it, pass `provider` and `model` to `session.provider.add`, omitting whichever the dispositions report as already configured.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionProvidersModelsPrepareConfigurationResult(NamedProviderConfig provider, ProviderModelConfig model, String selectionId, ModelProviderConfigurationDisposition providerDisposition, ModelProviderConfigurationDisposition modelDisposition, List<ModelProviderWarning> warnings) Creates an instance of aSessionProvidersModelsPrepareConfigurationResultrecord 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.model()Returns the value of themodelrecord component.Returns the value of themodelDispositionrecord component.provider()Returns the value of theproviderrecord component.Returns the value of theproviderDispositionrecord component.Returns the value of theselectionIdrecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
SessionProvidersModelsPrepareConfigurationResult
public SessionProvidersModelsPrepareConfigurationResult(NamedProviderConfig provider, ProviderModelConfig model, String selectionId, ModelProviderConfigurationDisposition providerDisposition, ModelProviderConfigurationDisposition modelDisposition, List<ModelProviderWarning> warnings) Creates an instance of aSessionProvidersModelsPrepareConfigurationResultrecord class.- Parameters:
provider- the value for theproviderrecord componentmodel- the value for themodelrecord componentselectionId- the value for theselectionIdrecord componentproviderDisposition- the value for theproviderDispositionrecord componentmodelDisposition- the value for themodelDispositionrecord componentwarnings- the value for thewarningsrecord 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). -
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
selectionId
Returns the value of theselectionIdrecord component.- Returns:
- the value of the
selectionIdrecord component
-
providerDisposition
Returns the value of theproviderDispositionrecord component.- Returns:
- the value of the
providerDispositionrecord component
-
modelDisposition
Returns the value of themodelDispositionrecord component.- Returns:
- the value of the
modelDispositionrecord component
-
warnings
Returns the value of thewarningsrecord component.- Returns:
- the value of the
warningsrecord component
-