MCPcopy Create free account
hub / github.com/Wirasm/kild / withRole

Function withRole

engine/src/kild/models.ts:21–23  ·  view source on GitHub ↗
(text: string, instructions: string | null)

Source from the content-addressed store, hash-verified

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. */
21export function withPersona(text: string, instructions: string | null): string {
22 return instructions ? `<persona>\n${instructions}\n</persona>\n\n${text}` : text;
23}

Callers 3

runWorkerFunction · 0.90
runInProcessFunction · 0.90
models.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected