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