MCPcopy Create free account
hub / github.com/cortexkit/magic-context / hasCacheControl

Function hasCacheControl

packages/e2e-tests/src/cache-analysis.ts:86–88  ·  view source on GitHub ↗
(block: unknown)

Source from the content-addressed store, hash-verified

84}
85
86function hasCacheControl(block: unknown): boolean {
87 return !!block && typeof block === "object" && "cache_control" in (block as Json);
88}
89
90function messageHasBreakpoint(msg: Json): boolean {
91 const content = msg.content;

Callers 2

messageHasBreakpointFunction · 0.70
buildSegmentsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected