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
| Field | Type | Required | Description |
|---|---|---|---|
id | string | ✔️ | N/A |
state | string | ✔️ | N/A |
reason | Record<string, any> | ✔️ | N/A |
generator | components.GeneratorRef | ✔️ | N/A |
params | Record<string, any> | ✔️ | N/A |
paramsHash | string | ✔️ | N/A |
output | components.OutputRef | ✔️ | N/A |
inputs | Record<string, string> | ✔️ | N/A |
counts | Record<string, number> | ✔️ | N/A |
llm | components.LlmRef | ✔️ | N/A |
limits | components.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. |
usage | Record<string, any> | ✔️ | N/A |
job | components.JobRef | ✔️ | N/A |
name | string | ✔️ | N/A |
derivedFrom | string[] | ✔️ | N/A |
createdBy | components.CreatedBy | ✔️ | N/A |
createdAt | Date | ✔️ | N/A |
startedAt | Date | ✔️ | N/A |
terminalAt | Date | ✔️ | N/A |
duplicateOf | string | ➖ | N/A |