Skip to content

Declaration ​

The @generator(...) arguments, validated — field-for-field the GET /generators entry.

Frozen: the service holds one of these per generator for the life of the process and serves it on every catalog request.

Example Usage ​

typescript
import { Declaration } from "@meetkai/mka1/models/components";

let value: Declaration = {
  id: "<id>",
  version: "<value>",
  title: "<value>",
  description: "incidentally desecrate redound meanwhile at schematise",
  emits: "<value>",
  defaultLimits: {
    maxRuntimeHours: 5952.4,
    maxCost: 7372.27,
    maxLlmCalls: 898613,
  },
};

Fields ​

FieldTypeRequiredDescription
idstring✔️N/A
versionstring✔️N/A
titlestring✔️N/A
descriptionstring✔️N/A
emitsstring✔️N/A
inputsRecord<string, components.Input>➖N/A
resourcescomponents.Resources➖The Job's resource request (§3.2). Kubernetes quantity strings, passed through verbatim.
defaultLimitscomponents.Limits✔️A run's budget: the generator's default_limits, or the effective ones as ctx.limits.

No defaults. Every number here is a bound the platform enforces and a caller can be billed
against, so a generator that forgets to state one should not silently inherit a guess.