models/grounding_model
library
Classes
-
GroundingChunkSnippet
-
GET /grounding/chunks/:embeddingId?queryId=<sqid> response (§2.2) — the
on-demand snippet for a KB-origin (IMPLICIT/KB_TOOL) citation chip.
-
GroundingChunkSnippetSource
-
source block of the on-demand snippet response (§2.2).
-
GroundingInfo
-
extraInfo.grounding block (§2.1), or a partial live version built from
the kb frame's groundingSources[] before the turn closes (§1.2).
-
GroundingSource
-
One cited source (
extraInfo.grounding.sources[] / live groundingSources[]), §2.1.
-
GroundingVerdict
-
One verification verdict (§3.3):
occurrence is local to sourceId —
the n-th time that source was cited in the answer, 0-based.
-
GroundingVerification
-
grounding.verification (§3.2/3.3) — only meaningful when
verificationStatus == DONE.
-
GroundingVerificationFrame
-
A verification result delivered outside the normal answer stream (§3.1):
either the live
grounding_verification frame (messageType:'LLM',
type:'grounding_verification') or the reconnect catch-up
grounding_verified event payload. Both carry the same core fields.
Constants
-
citationMarkerPattern
→ const String
-
Canonical
[n] citation marker pattern (§1 of the citations spec) — the
single source of truth for both CitationSyntax's markdown match and any
plain-text existence check (e.g. "does this turn's text contain a
citation?", used to decide whether to schedule a grounding refetch).