MCPcopy Create free account
hub / github.com/freecodexyz/free-code / systemPromptSection

Function systemPromptSection

src/constants/systemPromptSections.ts:20–25  ·  view source on GitHub ↗
(
  name: string,
  compute: ComputeFn,
)

Source from the content-addressed store, hash-verified

18 * Computed once, cached until /clear or /compact.
19 */
20export function systemPromptSection(
21 name: string,
22 compute: ComputeFn,
23): SystemPromptSection {
24 return { name, compute, cacheBreak: false }
25}
26
27/**
28 * Create a volatile system prompt section that recomputes every turn.

Callers 1

getSystemPromptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected