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

Function textPart

packages/opencode/test/cli/run/session.shared.test.ts:73–82  ·  view source on GitHub ↗
(id: string, messageID: string, text: string, input: Partial<TextPart> = {})

Source from the content-addressed store, hash-verified

71}
72
73function textPart(id: string, messageID: string, text: string, input: Partial<TextPart> = {}): TextPart {
74 return {
75 id,
76 sessionID: "session-1",
77 messageID,
78 type: "text",
79 text,
80 synthetic: input.synthetic,
81 }
82}
83
84function agentPart(id: string, messageID: string, name: string, source?: AgentPart["source"]): AgentPart {
85 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected