Record Class SessionModelSetAllowedModelsParams
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionModelSetAllowedModelsParams
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionModelSetAllowedModelsParams(String sessionId, List<String> allowedModels)
extends Record
Host-supplied exact model selection IDs to allow for this running session. CAPI IDs are intersected with repository `.github/allowed_models.txt` policy; provider-qualified IDs remain exempt from repository-only policy but are restricted by this host list. Omit or pass null to clear the host restriction; an explicit empty or disjoint list is rejected. Validation and pre-selection fallback failures preserve the previous restriction. Failures after a fallback selection commits retain the new restriction and selected model; callers should inspect current session state after such an error.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionModelSetAllowedModelsParams(String sessionId, List<String> allowedModels) Creates an instance of aSessionModelSetAllowedModelsParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowedModelsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionModelSetAllowedModelsParams
-
-
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). -
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
allowedModels
-