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

Function userMessage

packages/app/src/context/server-session.test.ts:24–32  ·  view source on GitHub ↗
(id: string, input: Partial<UserMessage> = {})

Source from the content-addressed store, hash-verified

22}
23
24const userMessage = (id: string, input: Partial<UserMessage> = {}): UserMessage => ({
25 id,
26 sessionID: "child",
27 role: "user",
28 time: { created: 1 },
29 agent: "build",
30 model: { providerID: "provider", modelID: "model" },
31 ...input,
32})
33
34const textPart = (messageID: string, input: Partial<TextPart> = {}): TextPart => ({
35 id: "part",

Callers 2

MessageFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected