AxOptimizableComponent
Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/dsp/optimizable.ts#L13
Properties
| Property | Type | Description |
|---|---|---|
constraints? | string | Free-form invariants the proposed value must respect. |
current | string | Current value snapshot. |
dependsOn? | readonly string[] | Other component keys that should be proposed and evaluated with this one. |
description? | string | Human-readable context shown to the reflection LLM. |
format? | string | Optional generic format hint, e.g. “snake_case” or “handlebars-template”. |
key | string | Globally-unique key within the program tree. Stable across calls. Convention: ${programId}::${kind} or ${programId}::${kind}:${subKey}. |
kind | string | Free-form hint for the reflection prompt. Not interpreted by the optimizer. Examples: “instruction”, “description”, “fn-desc”, “fn-name”, “actor-tpl”, “primitive”, or any user-defined kind. |
maxLength? | number | Optional generic length hint for reflection and validation. |
preserve? | readonly string[] | Literal tokens/placeholders that proposed values must preserve. |
traceId? | string | Stable identifier used to correlate runtime traces with this component. |
validate? | AxOptimizableValidator | Optional validator: returns true when the value is acceptable, or an error message string the optimizer can show the LLM on re-roll. |