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

Function textBody

packages/opencode/src/cli/cmd/run/entry.body.ts:17–26  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

15}
16
17function textBody(content: string): RunEntryBody {
18 if (!content) {
19 return RUN_ENTRY_NONE
20 }
21
22 return {
23 type: "text",
24 content,
25 }
26}
27
28function codeBody(content: string, filetype?: string): RunEntryBody {
29 if (!content) {

Callers 3

userBodyFunction · 0.70
systemBodyFunction · 0.70
entryBodyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected