Skip to content

Interface: NlQueryResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / NlQueryResponse

Defined in: src/types/query.ts:525

Response from a natural language query.

optional agentId?: string | null

Defined in: src/types/query.ts:544

Session id for continuity: the cognitive-mode agent, or the TRIZ session (pass it back as sessionId).


optional cognitiveSummary?: string | null

Defined in: src/types/query.ts:546

Cognitive cycle summary (NL response from Psi-term results).


optional derivationComplete?: boolean

Defined in: src/types/query.ts:563

Whether the backward-chaining search behind results ran to completion. false means it stopped at a bound and results is a floor, not the whole answer. Absent when no derivation produced the results.


optional error?: string | null

Defined in: src/types/query.ts:539

Error message if failed.


optional explanation?: string | null

Defined in: src/types/query.ts:535

Explanation from LLM/model.


optional generatedOsf?: string | null

Defined in: src/types/query.ts:537

The OSFQL that was executed (llm and cognitive modes).


mode: NlQueryMode

Defined in: src/types/query.ts:531

Mode used for translation.


optional noveltyScores?: TrizNoveltyScore[]

Defined in: src/types/query.ts:557

Novelty of the inventive proposals (TRIZ mode), one entry per triz_inventive_proposal item of results, in the same order.


query: string

Defined in: src/types/query.ts:529

Original query.


results: NlQueryResultItem[]

Defined in: src/types/query.ts:533

Results from query execution.


optional structuredProblem?: TrizStructuredProblem

Defined in: src/types/query.ts:552

The structured contradiction (TRIZ mode), for the user to confirm.


success: boolean

Defined in: src/types/query.ts:527

Whether the query was successful.


optional toolCall?: ToolCallInfo | null

Defined in: src/types/query.ts:548

Tool call info (constraint mode).


optional trizSessionStatus?: TrizSessionStatus

Defined in: src/types/query.ts:550

TRIZ session status (TRIZ mode).