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

Function turn

packages/e2e-tests/src/cache-analysis.test.ts:42–44  ·  view source on GitHub ↗

A user turn whose final message carries the moving cache_control breakpoint.

(prefix: Array<{ role: string; content: string }>, tail: string)

Source from the content-addressed store, hash-verified

40
41/** A user turn whose final message carries the moving cache_control breakpoint. */
42function turn(prefix: Array<{ role: string; content: string }>, tail: string) {
43 return req([...prefix.map((m) => ({ ...m })), { role: "user", content: tail, bp: true }]);
44}
45
46describe("cache-bust oracle", () => {
47 describe("#given a stable growing conversation", () => {

Callers 1

Calls 1

reqFunction · 0.85

Tested by

no test coverage detected