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

Function reasoning

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

Source from the content-addressed store, hash-verified

65}
66
67function reasoning(input: { id: string; messageID: string; text: string; time?: Record<string, number> }) {
68 return {
69 type: "message.part.updated",
70 properties: {
71 part: {
72 id: input.id,
73 messageID: input.messageID,
74 sessionID: "session-1",
75 type: "reasoning",
76 text: input.text,
77 ...(input.time ? { time: input.time } : {}),
78 },
79 },
80 }
81}
82
83function delta(messageID: string, partID: string, value: string) {
84 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected