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