MCPcopy Create free account
hub / github.com/Noumena-Network/code / hashSystemPrompt

Function hashSystemPrompt

src/utils/telemetry/betaSessionTracing.ts:130–132  ·  view source on GitHub ↗

* Generate a hash for a system prompt.

(systemPrompt: string)

Source from the content-addressed store, hash-verified

128 * Generate a hash for a system prompt.
129 */
130function hashSystemPrompt(systemPrompt: string): string {
131 return `sp_${shortHash(systemPrompt)}`
132}
133
134/**
135 * Generate a hash for a message based on its content.

Callers 1

Calls 1

shortHashFunction · 0.85

Tested by

no test coverage detected