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

Function codeBody

packages/opencode/src/cli/cmd/run/entry.body.ts:28–38  ·  view source on GitHub ↗
(content: string, filetype?: string)

Source from the content-addressed store, hash-verified

26}
27
28function codeBody(content: string, filetype?: string): RunEntryBody {
29 if (!content) {
30 return RUN_ENTRY_NONE
31 }
32
33 return {
34 type: "code",
35 content,
36 filetype,
37 }
38}
39
40function markdownBody(content: string): RunEntryBody {
41 if (!content) {

Callers 1

reasoningBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected