MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / isRecord

Function isRecord

src/stores/aiChatEvidenceBlocks.ts:15–17  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

13}
14
15function isRecord(value: unknown): value is Record<string, unknown> {
16 return typeof value === 'object' && value !== null && !Array.isArray(value)
17}
18
19export function isEvidencePayload(value: unknown): value is ChatEvidencePayload {
20 return isRecord(value) && value.version === 1 && typeof value.query === 'string' && Array.isArray(value.groups)

Callers 2

isEvidencePayloadFunction · 0.70
extractEvidencePayloadFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected