MCPcopy Index your code
hub / github.com/Opencode-DCP/opencode-dynamic-context-pruning / textPart

Function textPart

tests/compress-range.test.ts:70–78  ·  view source on GitHub ↗
(messageID: string, sessionID: string, id: string, text: string)

Source from the content-addressed store, hash-verified

68}
69
70function textPart(messageID: string, sessionID: string, id: string, text: string) {
71 return {
72 id,
73 messageID,
74 sessionID,
75 type: "text" as const,
76 text,
77 }
78}
79
80function buildMessages(sessionID: string): WithParts[] {
81 return [

Callers 2

buildMessagesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected