Skip to main content

internal/extract/identity.go

internal/extract · 47 lines · 3 declarations · source

Declarations

var admissionImplementation

var admissionImplementation []byte

Hash the compiled admission implementation as well as configuration. A parser/rule change must not depend on someone remembering to bump a decorative version constant.

source

type IdentifiedModel

type IdentifiedModel interface{ ExtractionIdentity() string }

ExtractionIdentity is optional for in-process proposers whose model provenance is unknown. The shipped HTTP proposer implements it; an unidentified proposer retains the explicit legacy code label and cannot be used as evidence that two model configurations are the same.

source

method Extractor.PipelineVersion

func (e *Extractor) PipelineVersion() string

PipelineVersion identifies extraction configuration, not provider weights or a whole graph generation. Vocabulary order is significant because the model sees it in that order; refusal terms are a set, so insertion order must not make two equivalent configurations disagree.

source