Interview Prep/Agentic AI/Security & guardrails

Why should you never put secrets in prompts?

BeginnerConceptSecurity & guardrails
Answer

Anything in the context can end up in the output, logs or provider systems, and system prompts can often be extracted by users. Keep secrets in backend services and give the model tools that use them without ever revealing them.

All Agentic AI questions Roadmap: LLMOps: evals, security & production

More on Security & guardrails