Skip to content

Documentation / @agentick/core / KnobRegistration

Interface: KnobRegistration ​

Defined in: core/src/hooks/runtime-context.ts:78

Registration for a single knob in the runtime store. Stores primitive info + constraints — the resolved value is internal to useKnob.

Properties ​

defaultValue ​

defaultValue: string | number | boolean

Defined in: core/src/hooks/runtime-context.ts:83


description ​

description: string

Defined in: core/src/hooks/runtime-context.ts:80


getPrimitive() ​

getPrimitive: () => string | number | boolean

Defined in: core/src/hooks/runtime-context.ts:81

Returns ​

string | number | boolean


group? ​

optional group: string

Defined in: core/src/hooks/runtime-context.ts:87


inline? ​

optional inline: boolean

Defined in: core/src/hooks/runtime-context.ts:97


max? ​

optional max: number

Defined in: core/src/hooks/runtime-context.ts:92


maxLength? ​

optional maxLength: number

Defined in: core/src/hooks/runtime-context.ts:94


min? ​

optional min: number

Defined in: core/src/hooks/runtime-context.ts:91


momentary? ​

optional momentary: boolean

Defined in: core/src/hooks/runtime-context.ts:96


name ​

name: string

Defined in: core/src/hooks/runtime-context.ts:79


options? ​

optional options: (string | number | boolean)[]

Defined in: core/src/hooks/runtime-context.ts:84


pattern? ​

optional pattern: string

Defined in: core/src/hooks/runtime-context.ts:95


required? ​

optional required: boolean

Defined in: core/src/hooks/runtime-context.ts:89


setPrimitive() ​

setPrimitive: (value) => void

Defined in: core/src/hooks/runtime-context.ts:82

Parameters ​

value ​

string | number | boolean

Returns ​

void


step? ​

optional step: number

Defined in: core/src/hooks/runtime-context.ts:93


validate()? ​

optional validate: (value) => string | true

Defined in: core/src/hooks/runtime-context.ts:90

Parameters ​

value ​

any

Returns ​

string | true


valueType ​

valueType: "string" | "number" | "boolean"

Defined in: core/src/hooks/runtime-context.ts:85

Released under the ISC License.