Package com.kingsrook.qqq.backend.core.actions.ai.output
package com.kingsrook.qqq.backend.core.actions.ai.output
-
ClassesClassDescriptionWraps tool output (JSON text) in the data envelope the assistant's system prompt declares as untrusted data:
{...} Any opening or closing qqq_data tag inside the data (e.g., injected into a record's text by a user) is neutralized by replacing its "<" with the JSON escape for that character - which keeps the JSON valid and equal in value, but means the text can no longer close (or open) an envelope.Builds the in-app (same-origin) links the AI tool kernel returns, in the route grammar of the QQQ Next UI - which addresses every table, process, report and app by name directly under /app (not under the path of the app that contains it): table /app/{table} filtered table /app/{table}?Replaces secrets and PII in values sent to a model with [REDACTED:kind]: private keys, JWTs, API keys (sk-...), AWS access keys and (labelled) secret keys, US social security numbers, payment card numbers (Luhn-valid, 13-19 digits) and any custom patterns (kind "custom").