Skip to content

Interface: OsfqlResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Osfql / OsfqlResponse

Interface: OsfqlResponse

Defined in: src/types/osfql.ts:97

Response from OSFQL execution.

Remarks

Contains the results of executing an OSFQL program, including variable bindings from MATCH queries, IDs of produced terms and defined sorts, and diagnostic messages from the execution pipeline.

Properties

bindings

bindings: Record<string, OsfqlValue>[]

Defined in: src/types/osfql.ts:102

Variable bindings from MATCH queries. Each entry represents one solution.


definedSortIds?

optional definedSortIds: string[]

Defined in: src/types/osfql.ts:115

Sort IDs produced by DEFINE statements.


diagnostics

diagnostics: string[]

Defined in: src/types/osfql.ts:118

Diagnostic messages from the execution pipeline.


fetched?

optional fetched: Record<string, OsfqlValue>[]

Defined in: src/types/osfql.ts:109

Nested documents produced by a FETCH clause: one map per match row, each fetched variable resolved to a nested Psi-term (OsfqlValue term, coreference inlined). Omitted when the program has no FETCH.


producedTermIds

producedTermIds: string[]

Defined in: src/types/osfql.ts:112

Term IDs produced by INSERT or DERIVE statements.


statementCount

statementCount: number

Defined in: src/types/osfql.ts:121

Number of statements executed.


success

success: boolean

Defined in: src/types/osfql.ts:99

Whether execution succeeded.