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 Details

    • SessionProvidersModelsPrepareConfigurationResult

      public SessionProvidersModelsPrepareConfigurationResult(NamedProviderConfig provider, ProviderModelConfig model, String selectionId, ModelProviderConfigurationDisposition providerDisposition, ModelProviderConfigurationDisposition modelDisposition, List<ModelProviderWarning> warnings)
      Creates an instance of a SessionProvidersModelsPrepareConfigurationResult record class.
      Parameters:
      provider - the value for the provider record component
      model - the value for the model record component
      selectionId - the value for the selectionId record component
      providerDisposition - the value for the providerDisposition record component
      modelDisposition - the value for the modelDisposition record component
      warnings - the value for the warnings record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • provider

      public NamedProviderConfig provider()
      Returns the value of the provider record component.
      Returns:
      the value of the provider record component
    • model

      public ProviderModelConfig model()
      Returns the value of the model record component.
      Returns:
      the value of the model record component
    • selectionId

      public String selectionId()
      Returns the value of the selectionId record component.
      Returns:
      the value of the selectionId record component
    • providerDisposition

      public ModelProviderConfigurationDisposition providerDisposition()
      Returns the value of the providerDisposition record component.
      Returns:
      the value of the providerDisposition record component
    • modelDisposition

      public ModelProviderConfigurationDisposition modelDisposition()
      Returns the value of the modelDisposition record component.
      Returns:
      the value of the modelDisposition record component
    • warnings

      public List<ModelProviderWarning> warnings()
      Returns the value of the warnings record component.
      Returns:
      the value of the warnings record component