fupio

Fupio çevrimiçi paylaşmanın en kolay yolu Daha fazla bilgi »

Fupio'ya katıl
egghead.io - Bite-sized Web Development Video Tutorials & Training

egghead.io - Bite-sized Web Development Video Tutorials & Training

Blocking prompts with hooks creates essential guardrails. Validate inputs, enforce conventions, and stop inappropriate requests by exiting with the right code and clear feedback. ## The blocking rules Two requirements to reject a prompt: 1. Exit with code 2 - Exactly 2, not 0 or 1 2. Write to stderr - User sees your message ## Block forbidden content Stop prompts with banned keywords:
https://egghead.io/lessons/block-prompts-with-hook-guardrails~vhgyz

Comments