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

Function delta

packages/opencode/test/cli/run/session-data.test.ts:83–94  ·  view source on GitHub ↗
(messageID: string, partID: string, value: string)

Source from the content-addressed store, hash-verified

81}
82
83function delta(messageID: string, partID: string, value: string) {
84 return {
85 type: "message.part.delta",
86 properties: {
87 sessionID: "session-1",
88 messageID,
89 partID,
90 field: "text",
91 delta: value,
92 },
93 }
94}
95
96function tool(input: { id: string; messageID: string; tool: string; state: Record<string, unknown>; callID?: string }) {
97 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected