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

Function text

packages/opencode/test/cli/run/session-data.test.ts:51–65  ·  view source on GitHub ↗
(input: { id: string; messageID: string; text: string; time?: Record<string, number> })

Source from the content-addressed store, hash-verified

49}
50
51function text(input: { id: string; messageID: string; text: string; time?: Record<string, number> }) {
52 return {
53 type: "message.part.updated",
54 properties: {
55 part: {
56 id: input.id,
57 messageID: input.messageID,
58 sessionID: "session-1",
59 type: "text",
60 text: input.text,
61 ...(input.time ? { time: input.time } : {}),
62 },
63 },
64 }
65}
66
67function reasoning(input: { id: string; messageID: string; text: string; time?: Record<string, number> }) {
68 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected