Kaizen
Browse modulesInsightsinsights/serverFunctions

Function: renderAskUserMessage()

function renderAskUserMessage(payload: AskPromptPayload): string;

Defined in: server/insights/ask/prompt-payload.ts:103

Render the payload as the user turn.

The end user's question is nested inside a JSON string field rather than concatenated into prose, so an "ignore your instructions" prompt arrives as DATA, not as a sibling instruction. It is still untrusted — the real defence is that the answer is re-validated against the registry, which is why the system prompt says so explicitly.

Parameters

ParameterType
payloadAskPromptPayload

Returns

string

On this page