Record Class DiscoveredModel
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.DiscoveredModel
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record DiscoveredModel(String id, String name, ModelProviderProvenance provenance, String digest, OffsetDateTime modifiedAt, Long sizeBytes, ModelArtifactDetails details, ModelCapabilities capabilities, List<ModelProviderWarning> warnings)
extends Record
A model offered for agent conversations. Missing capability metadata does not disqualify a candidate. Models known to be incompatible, such as embedding-only models, are excluded by the adapter.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionDiscoveredModel(String id, String name, ModelProviderProvenance provenance, String digest, OffsetDateTime modifiedAt, Long sizeBytes, ModelArtifactDetails details, ModelCapabilities capabilities, List<ModelProviderWarning> warnings) Creates an instance of aDiscoveredModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecapabilitiesrecord component.details()Returns the value of thedetailsrecord component.digest()Returns the value of thedigestrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of themodifiedAtrecord component.name()Returns the value of thenamerecord component.Returns the value of theprovenancerecord component.Returns the value of thesizeBytesrecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
DiscoveredModel
public DiscoveredModel(String id, String name, ModelProviderProvenance provenance, String digest, OffsetDateTime modifiedAt, Long sizeBytes, ModelArtifactDetails details, ModelCapabilities capabilities, List<ModelProviderWarning> warnings) Creates an instance of aDiscoveredModelrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentprovenance- the value for theprovenancerecord componentdigest- the value for thedigestrecord componentmodifiedAt- the value for themodifiedAtrecord componentsizeBytes- the value for thesizeBytesrecord componentdetails- the value for thedetailsrecord componentcapabilities- the value for thecapabilitiesrecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
provenance
Returns the value of theprovenancerecord component.- Returns:
- the value of the
provenancerecord component
-
digest
Returns the value of thedigestrecord component.- Returns:
- the value of the
digestrecord component
-
modifiedAt
Returns the value of themodifiedAtrecord component.- Returns:
- the value of the
modifiedAtrecord component
-
sizeBytes
Returns the value of thesizeBytesrecord component.- Returns:
- the value of the
sizeBytesrecord component
-
details
Returns the value of thedetailsrecord component.- Returns:
- the value of the
detailsrecord component
-
capabilities
Returns the value of thecapabilitiesrecord component.- Returns:
- the value of the
capabilitiesrecord component
-
warnings
Returns the value of thewarningsrecord component.- Returns:
- the value of the
warningsrecord component
-