MCPcopy Create free account
hub / github.com/algolia/docsearch / threadDepthFromPlainText

Function threadDepthFromPlainText

packages/docsearch-react/src/utils/ai.ts:128–131  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

126}
127
128function threadDepthFromPlainText(message: string): boolean {
129 if (!message) return false;
130 return matchesThreadDepthLimitError(message.toLowerCase());
131}
132
133function messageLooksLikeThreadDepth(message: string): boolean {
134 if (threadDepthFromPlainText(message)) return true;

Callers 1

Calls 1

Tested by

no test coverage detected