Skip to content

IntentFormConfig

Defined in: packages/core/src/types.ts:17

Lifecycle hooks and routing options for an IntentForm engine instance.

optional components?: Partial<Record<FieldType, unknown>>

Defined in: packages/core/src/types.ts:19

Optional map of field-type → UI component, used as engine-level defaults.


models: ModelDefinition<StandardSchemaV1<unknown, unknown>>[]

Defined in: packages/core/src/types.ts:21

List of model definitions the engine can select from.


optional onError?: (error) => void

Defined in: packages/core/src/types.ts:23

Called with any error thrown during intent resolution.

unknown

void


optional onResolutionEnd?: (resolution) => void

Defined in: packages/core/src/types.ts:25

Called after a resolution completes successfully.

IntentResolution

void


optional onResolutionStart?: (prompt) => void

Defined in: packages/core/src/types.ts:27

Called at the start of each resolution with the raw prompt.

string

void


optional provider?: AiProvider

Defined in: packages/core/src/types.ts:29

Single AI provider; mutually exclusive with tiers.


optional tiers?: ConfidenceTier[]

Defined in: packages/core/src/types.ts:31

Ordered confidence tiers for escalation routing; mutually exclusive with provider.