Record Class SessionProvidersModelsListResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionProvidersModelsListResult
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionProvidersModelsListResult(ModelProviderOperationOutcome outcome, List<DiscoveredModel> models)
extends Record
Models offered for agent conversations by one provider instance. Adapters exclude known-incompatible models, but retain candidates with unknown capabilities. Listing does not guarantee compatibility.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionProvidersModelsListResult(ModelProviderOperationOutcome outcome, List<DiscoveredModel> models) Creates an instance of aSessionProvidersModelsListResultrecord 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.models()Returns the value of themodelsrecord component.outcome()Returns the value of theoutcomerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionProvidersModelsListResult
public SessionProvidersModelsListResult(ModelProviderOperationOutcome outcome, List<DiscoveredModel> models) Creates an instance of aSessionProvidersModelsListResultrecord class.- Parameters:
outcome- the value for theoutcomerecord componentmodels- the value for themodelsrecord 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). -
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-
models
Returns the value of themodelsrecord component.- Returns:
- the value of the
modelsrecord component
-