Interface: OsfqlTokensResponse
@kortexya/reasoninglayer / OsfqlTokensResponse
Interface: OsfqlTokensResponse
Section titled “Interface: OsfqlTokensResponse”Defined in: src/types/osfql.ts:1243
The editor tokens of an OSFQL source, sorted by position.
Remarks
Section titled “Remarks”This is presentation data, not validation: a source with errors still receives tokens. Use OsfqlClient.diagnose for errors.
Example
Section titled “Example”const { encoding, tokens } = await client.osfql.tokens('MATCH person(name: ?N);');encoding; // 'utf-16'Properties
Section titled “Properties”encoding
Section titled “encoding”encoding:
string
Defined in: src/types/osfql.ts:1245
Always utf-16, matching LSP and browser string offsets.
tokens
Section titled “tokens”tokens:
OsfqlToken[]
Defined in: src/types/osfql.ts:1247
The tokens, sorted by line and column.