Skip to content

GenerationCreated ​

Example Usage ​

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

let value: GenerationCreated = {
  id: "<id>",
  state: "California",
  reason: {
    "key": "<value>",
  },
  generator: {
    id: "<id>",
    version: "<value>",
  },
  params: {
    "key": "<value>",
    "key1": "<value>",
    "key2": "<value>",
  },
  paramsHash: "<value>",
  output: {
    repo: "<value>",
    revision: "<value>",
  },
  inputs: {
    "key": "<value>",
    "key1": "<value>",
  },
  counts: {
    "key": 436989,
    "key1": 901779,
  },
  llm: {
    models: [],
  },
  limits: {
    maxRuntimeHours: 9692.81,
    maxCost: 93.78,
    maxLlmCalls: 244736,
  },
  usage: {
    "key": "<value>",
    "key1": "<value>",
    "key2": "<value>",
  },
  job: {
    name: "<value>",
    attempt: 878519,
  },
  name: "<value>",
  derivedFrom: [
    "<value 1>",
    "<value 2>",
    "<value 3>",
  ],
  createdBy: {
    userId: "<id>",
    teamId: "<id>",
    apiKeyId: "<id>",
  },
  createdAt: new Date("2025-01-30T17:58:58.112Z"),
  startedAt: new Date("2025-02-13T10:56:58.476Z"),
  terminalAt: new Date("2024-12-05T17:51:26.976Z"),
};

Fields ​

FieldTypeRequiredDescription
idstring✔️N/A
statestring✔️N/A
reasonRecord<string, any>✔️N/A
generatorcomponents.GeneratorRef✔️N/A
paramsRecord<string, any>✔️N/A
paramsHashstring✔️N/A
outputcomponents.OutputRef✔️N/A
inputsRecord<string, string>✔️N/A
countsRecord<string, number>✔️N/A
llmcomponents.LlmRef✔️N/A
limitscomponents.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.
usageRecord<string, any>✔️N/A
jobcomponents.JobRef✔️N/A
namestring✔️N/A
derivedFromstring[]✔️N/A
createdBycomponents.CreatedBy✔️N/A
createdAtDate✔️N/A
startedAtDate✔️N/A
terminalAtDate✔️N/A
duplicateOfstring➖N/A