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

Function joinText

packages/llm/src/protocols/shared.ts:109–109  ·  view source on GitHub ↗
(parts: ReadonlyArray<{ readonly text: string }>)

Source from the content-addressed store, hash-verified

107 * `systemInstruction.parts[].text`).
108 */
109export const joinText = (parts: ReadonlyArray<{ readonly text: string }>) => parts.map((part) => part.text).join("\n")
110
111const escapeSystemUpdateText = (text: string) =>
112 text.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;")

Callers 1

wrapSystemUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected