MCPcopy Create free account
hub / github.com/anomalyco/opencode / textPart

Function textPart

packages/app/src/context/server-session.test.ts:34–41  ·  view source on GitHub ↗
(messageID: string, input: Partial<TextPart> = {})

Source from the content-addressed store, hash-verified

32})
33
34const textPart = (messageID: string, input: Partial<TextPart> = {}): TextPart => ({
35 id: "part",
36 sessionID: "child",
37 messageID,
38 type: "text",
39 text: "text",
40 ...input,
41})
42
43const response = (data: MessageResponse["data"] = [], cursor?: string): MessageResponse => ({
44 data,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected