Skip to content

Interface: ConstrainedGenerateResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / ConstrainedGenerateResponse

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

Response of POST /api/v1/constrained/generate.

allowed: string[]

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

Echo of the allowed set the decode was masked to.


answer: string

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

The decoded answer (guaranteed inside allowed).


maskedOut: string[]

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

Allowed alternatives the masked decode did not pick (informational).


tokens: string[]

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

Per-step decoded token deltas, in emission order.