MCPcopy Index your code
hub / github.com/anomalyco/opencode / userMessage

Function userMessage

packages/opencode/test/cli/run/variant.shared.test.ts:83–100  ·  view source on GitHub ↗
(
  id: string,
  input: { providerID: string; modelID: string; variant?: string },
)

Source from the content-addressed store, hash-verified

81]
82
83function userMessage(
84 id: string,
85 input: { providerID: string; modelID: string; variant?: string },
86): SessionMessages[number] {
87 return {
88 info: {
89 id,
90 sessionID: "session-1",
91 role: "user",
92 time: {
93 created: 1,
94 },
95 agent: "build",
96 model: input,
97 },
98 parts: [],
99 }
100}
101
102const it = testEffect(Layer.mergeAll(LayerNode.compile(FSUtil.node), NodeFileSystem.layer))
103

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected