(text: string, instructions: string | null)
| 19 | /** Layer an agent's persona prompt onto a user prompt. The coding-agent SDK has no |
| 20 | * append-system-prompt knob, so the persona is prepended to the first message. */ |
| 21 | export function withPersona(text: string, instructions: string | null): string { |
| 22 | return instructions ? `<persona>\n${instructions}\n</persona>\n\n${text}` : text; |
| 23 | } |
no outgoing calls
no test coverage detected