Record Class SessionProvidersDiscoverResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionProvidersDiscoverResult
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionProvidersDiscoverResult(ModelProviderOperationOutcome outcome, List<ModelProviderInstance> instances)
extends Record
Provider instances found by a discovery operation.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionProvidersDiscoverResult(ModelProviderOperationOutcome outcome, List<ModelProviderInstance> instances) Creates an instance of aSessionProvidersDiscoverResultrecord 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.Returns the value of theinstancesrecord component.outcome()Returns the value of theoutcomerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionProvidersDiscoverResult
public SessionProvidersDiscoverResult(ModelProviderOperationOutcome outcome, List<ModelProviderInstance> instances) Creates an instance of aSessionProvidersDiscoverResultrecord class.- Parameters:
outcome- the value for theoutcomerecord componentinstances- the value for theinstancesrecord 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
-
instances
Returns the value of theinstancesrecord component.- Returns:
- the value of the
instancesrecord component
-