Skip to content

Interface: InjectionPolicy

@kortexya/reasoninglayer


@kortexya/reasoninglayer / InjectionPolicy

Defined in: src/types/conversation.ts:160

Adaptive ontology injection policy for one conversation turn.

Every field is optional; an omitted field takes the engine default. The engine refuses an unknown key with 422.

optional budgetTokens?: number

Defined in: src/types/conversation.ts:168

Token budget of the sort block, counted by the model’s tokenizer.


optional enabled?: boolean

Defined in: src/types/conversation.ts:162

false behaves as if the policy were absent. Defaults to true.


optional model?: string | null

Defined in: src/types/conversation.ts:173

Model the κ table and the tokenizer are keyed by. Absent ⇒ the request’s model, else the server default’s id.


optional tauHigh?: number

Defined in: src/types/conversation.ts:166

κ at or above this ⇒ the sort is named only.


optional tauLow?: number

Defined in: src/types/conversation.ts:164

κ below this ⇒ the sort is injected in full.