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

Function textPart

packages/opencode/test/cli/run/stream.transport.test.ts:280–288  ·  view source on GitHub ↗
(id: string, messageID: string, text: string, sessionID = "session-1")

Source from the content-addressed store, hash-verified

278}
279
280function textPart(id: string, messageID: string, text: string, sessionID = "session-1"): TextPart {
281 return {
282 id,
283 sessionID,
284 messageID,
285 type: "text",
286 text,
287 }
288}
289
290function textUpdated(part: TextPart): SdkEvent {
291 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected