ScottLogic / prompt-injection

Application which investigates defensive measures against prompt injection attacks on an LLM, with a focus on the exposure of external tools.
MIT License
11 stars 9 forks source link

780 refactor shift the logic for checking win condition #876

Closed pmarsh-scottlogic closed 3 months ago

pmarsh-scottlogic commented 3 months ago

Description

Moves the code that checks whether the user has won. It used to live within the sendEmail, deep within the call stack for sending a chat message. I've brought it right out to the top level.

Notes

Checklist

Have you done the following?