Record Class EndpointMetadata.Internal

java.lang.Object
java.lang.Record
org.elasticsearch.inference.metadata.EndpointMetadata.Internal
Record Components:
fingerprint - an upstream fingerprint representing endpoint version. The upstream service controls this to indicate that known fields have changed (new properties for a model, status, etc).
version - a schema version number for the metadata. This version is incremented when the structure of the metadata changes (e.g., new fields are added). This allows Elasticsearch to determine when it needs to update the metadata even if the upstream fingerprint is not changed. This is useful when the fingerprint has already changed but older Elasticsearch versions don't have the logic to handle a new field returned by the upstream service. This value allows Elasticsearch to determine which endpoints need to have their schema updated in a new version.
All Implemented Interfaces:
Writeable, ToXContent, ToXContentObject
Enclosing class:
EndpointMetadata

public static record EndpointMetadata.Internal(String fingerprint, Long version) extends Record implements ToXContentObject, Writeable
Internal metadata used by Elasticsearch. This information is not exposed to clients of the Inference API. It helps the Inference API know when it needs to update the preconfigured endpoints.