(): string Creates an id suitable for insecure use on a single client, like for element ids.
returns
string 8 declarations
(): string Creates an id suitable for insecure use on a single client, like for element ids.
string <T>(value: T | undefined): T valueT | undefinedT 1000 180 (text: string): number Quick and dirty token count estimate using ESTIMATED_CHARS_PER_TOKEN. Real tokenizers are heavy and little benefit for our cases right now, especially because each LLM may tokenize differently!
textstringnumber 3 (name: string, existing_names: { has: (name: string) => boolean; } | { includes: (name: string) => boolean; }): string namestringexisting_names{ has: (name: string) => boolean; } | { includes: (name: string) => boolean; }string (content: string | null | undefined, max_length?: number): string contentstring | null | undefinedmax_lengthnumberCONTENT_PREVIEW_LENGTHstring