Skip to content

Interface: OsfqlTokensResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / OsfqlTokensResponse

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

The editor tokens of an OSFQL source, sorted by position.

This is presentation data, not validation: a source with errors still receives tokens. Use OsfqlClient.diagnose for errors.

const { encoding, tokens } = await client.osfql.tokens('MATCH person(name: ?N);');
encoding; // 'utf-16'

encoding: string

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

Always utf-16, matching LSP and browser string offsets.


tokens: OsfqlToken[]

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

The tokens, sorted by line and column.