Skip to content

Interface: ConstrainedGenerateRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / ConstrainedGenerateRequest

Defined in: src/types/generation.ts:147

Request body for POST /api/v1/constrained/generate — masked-decode over an allowed set.

allowed: string[]

Defined in: src/types/generation.ts:149

The OSF-feasible answer set the decode is masked to (exactly one is emitted).


optional maxTokens?: number | null

Defined in: src/types/generation.ts:151

Maximum tokens to emit (default 8, clamped to 1..=64).


prompt: string

Defined in: src/types/generation.ts:153

The user prompt (wrapped in the Gemma chat template server-side).