Documentation
¶
Index ¶
- Constants
- func LicenseTextFor(identifier string) (string, bool)
- type Artifact
- type Cache
- type Capabilities
- type Hardware
- type License
- type LicenseAttribution
- type Limits
- type Listing
- type Manifest
- type MarketComparison
- type Policy
- type Pricing
- type Runtime
- type RuntimeArguments
- type Source
- type Verification
Constants ¶
const ( ListingLive = "live" ListingWaitlist = "waitlist" ListingHidden = "hidden" )
Listing status values describe how a model is presented on the public catalog. They are independent of the operational lifecycle in Status.
Variables ¶
This section is empty.
Functions ¶
func LicenseTextFor ¶
LicenseTextFor returns the vendored license text for a manifest license identifier, and whether one exists.
Types ¶
type Cache ¶
func (Cache) EnsureLicense ¶
EnsureLicense writes a model's license text next to its cached artifact as <sha256>.LICENSE.txt. Licenses that require distribution must accompany the model materials on every host, so callers treat failure as fatal to model preparation.
type Capabilities ¶
type License ¶
type License struct {
Identifier string
ReviewedAt string
Notes string
DistributeWithModel bool
Attribution *LicenseAttribution
}
type LicenseAttribution ¶
type LicenseAttribution struct {
DisplayText string
NoticeText string
LicenseURL string
AUPURL string
}
LicenseAttribution carries operator-facing attribution requirements a model license imposes on public surfaces (e.g. "Built with Llama").
type Listing ¶
type Listing struct {
Status string
Description string
ExpectedOutputTokensPerSecond *float64
MarketComparison *MarketComparison
}
type Manifest ¶
type Manifest struct {
SchemaVersion int
ModelID string
DisplayName string
Description string
Status string
Listing Listing
Source Source
License License
Runtime Runtime
Hardware Hardware
Limits Limits
Capabilities Capabilities
Policy Policy
Pricing Pricing
Verification Verification
}
func LoadCatalogManifest ¶
func ParseManifestFile ¶
func (Manifest) CatalogDescription ¶
CatalogDescription returns the manifest's public one-liner, preferring the listing block over the legacy top-level description. It stays empty when the manifest has neither so readers can fall back to the display name.
func (Manifest) ListingStatus ¶
ListingStatus returns the normalized public listing status, defaulting to live so manifests written before the listing block keep their behavior.
type MarketComparison ¶
type Runtime ¶
type Runtime struct {
Engine string
BuildID string
ReleaseManifest string
BinarySHA256 string
Arguments RuntimeArguments
}