Interface: NlQueryResponse
@kortexya/reasoninglayer / NlQueryResponse
Interface: NlQueryResponse
Section titled “Interface: NlQueryResponse”Defined in: src/types/query.ts:525
Response from a natural language query.
Properties
Section titled “Properties”agentId?
Section titled “agentId?”
optionalagentId?: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).
cognitiveSummary?
Section titled “cognitiveSummary?”
optionalcognitiveSummary?:string|null
Defined in: src/types/query.ts:546
Cognitive cycle summary (NL response from Psi-term results).
derivationComplete?
Section titled “derivationComplete?”
optionalderivationComplete?: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.
error?
Section titled “error?”
optionalerror?:string|null
Defined in: src/types/query.ts:539
Error message if failed.
explanation?
Section titled “explanation?”
optionalexplanation?:string|null
Defined in: src/types/query.ts:535
Explanation from LLM/model.
generatedOsf?
Section titled “generatedOsf?”
optionalgeneratedOsf?: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.
noveltyScores?
Section titled “noveltyScores?”
optionalnoveltyScores?: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
Section titled “results”results:
NlQueryResultItem[]
Defined in: src/types/query.ts:533
Results from query execution.
structuredProblem?
Section titled “structuredProblem?”
optionalstructuredProblem?:TrizStructuredProblem
Defined in: src/types/query.ts:552
The structured contradiction (TRIZ mode), for the user to confirm.
success
Section titled “success”success:
boolean
Defined in: src/types/query.ts:527
Whether the query was successful.
toolCall?
Section titled “toolCall?”
optionaltoolCall?:ToolCallInfo|null
Defined in: src/types/query.ts:548
Tool call info (constraint mode).
trizSessionStatus?
Section titled “trizSessionStatus?”
optionaltrizSessionStatus?:TrizSessionStatus
Defined in: src/types/query.ts:550
TRIZ session status (TRIZ mode).