Skip to main content

Function: classifyLegacyTag()

classifyLegacyTag(label): LegacyTagClass

Defined in: packages/agentos/src/cognition/library/tags.ts:137

A stored label read without losing it: an alias when case, Unicode normalization and separators (white space, the underscore, dash punctuation) alone stand between it and its key, between its runs or at either end (budget_ and -budget are aliases of budget); unresolved otherwise, its key kept as a candidate (C++ is unresolved with the key c, and is never merged into c), or null when it has none or it is too long.

Parameters​

label​

string

Returns​

LegacyTagClass