|
|
|
|
|
by kingefman1
15 days ago
|
|
One caveat on "deterministic tools reduce the risk of prompt injections": returning only structured fields does close the arbitrary-DOM channel, but any field that holds text written by someone else (a review, a message subject, a claim note, a payee name, a product description) is still an injection path. The string lands in the agent's context the same way page text would. A few things that help there: give those fields a schema with a max length and, where you can, a pattern or enum, so a "name" can't carry a paragraph. Say in the tool description that the value is third-party data, not instructions. And keep the tools that read separate from the tools that write, or put the irreversible ones (payments, claim submissions) behind a human approval whatever the model says, since that still holds if an injection does get through. Curious whether any of that happens at the schema level on your side, or whether it's left to the calling agent. |
|