Interface: ConstrainedGenerateRequest
@kortexya/reasoninglayer / ConstrainedGenerateRequest
Interface: ConstrainedGenerateRequest
Section titled “Interface: ConstrainedGenerateRequest”Defined in: src/types/generation.ts:147
Request body for POST /api/v1/constrained/generate — masked-decode over an allowed set.
Properties
Section titled “Properties”allowed
Section titled “allowed”allowed:
string[]
Defined in: src/types/generation.ts:149
The OSF-feasible answer set the decode is masked to (exactly one is emitted).
maxTokens?
Section titled “maxTokens?”
optionalmaxTokens?:number|null
Defined in: src/types/generation.ts:151
Maximum tokens to emit (default 8, clamped to 1..=64).
prompt
Section titled “prompt”prompt:
string
Defined in: src/types/generation.ts:153
The user prompt (wrapped in the Gemma chat template server-side).