Skip to content

Interface: ConstrainedGenerateResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Generation / ConstrainedGenerateResponse

Interface: ConstrainedGenerateResponse

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

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

Properties

allowed

allowed: string[]

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

Echo of the allowed set the decode was masked to.


answer

answer: string

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

The decoded answer (guaranteed inside allowed).


maskedOut

maskedOut: string[]

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

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


tokens

tokens: string[]

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

Per-step decoded token deltas, in emission order.