()
| 155 | } |
| 156 | |
| 157 | export function getSystemPrompts() { |
| 158 | const out = { ...DEFAULTS.systemPrompts }; |
| 159 | for (const key of SYSTEM_PROMPT_KEYS) { |
| 160 | if (typeof _state.systemPrompts?.[key] === 'string') { |
| 161 | out[key] = _state.systemPrompts[key]; |
| 162 | } |
| 163 | } |
| 164 | return out; |
| 165 | } |
| 166 | |
| 167 | export function setSystemPrompts(patch) { |
| 168 | if (!patch || typeof patch !== 'object') return getSystemPrompts(); |
no outgoing calls
no test coverage detected