IntentFormConfig
Defined in: packages/core/src/types.ts:17
Lifecycle hooks and routing options for an IntentForm engine instance.
Properties
Section titled “Properties”components?
Section titled “components?”
optionalcomponents?: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
Section titled “models”models:
ModelDefinition<StandardSchemaV1<unknown,unknown>>[]
Defined in: packages/core/src/types.ts:21
List of model definitions the engine can select from.
onError?
Section titled “onError?”
optionalonError?: (error) =>void
Defined in: packages/core/src/types.ts:23
Called with any error thrown during intent resolution.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”void
onResolutionEnd?
Section titled “onResolutionEnd?”
optionalonResolutionEnd?: (resolution) =>void
Defined in: packages/core/src/types.ts:25
Called after a resolution completes successfully.
Parameters
Section titled “Parameters”resolution
Section titled “resolution”IntentResolution
Returns
Section titled “Returns”void
onResolutionStart?
Section titled “onResolutionStart?”
optionalonResolutionStart?: (prompt) =>void
Defined in: packages/core/src/types.ts:27
Called at the start of each resolution with the raw prompt.
Parameters
Section titled “Parameters”prompt
Section titled “prompt”string
Returns
Section titled “Returns”void
provider?
Section titled “provider?”
optionalprovider?:AiProvider
Defined in: packages/core/src/types.ts:29
Single AI provider; mutually exclusive with tiers.
tiers?
Section titled “tiers?”
optionaltiers?:ConfidenceTier[]
Defined in: packages/core/src/types.ts:31
Ordered confidence tiers for escalation routing; mutually exclusive with provider.