Class AiDataEnvelope
java.lang.Object
com.kingsrook.qqq.backend.core.actions.ai.output.AiDataEnvelope
Wraps 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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TAG_NAME
- See Also:
-
-
Constructor Details
-
AiDataEnvelope
public AiDataEnvelope()
-
-
Method Details
-
wrap
-
neutralize
-