100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.
docs: Enhance README with detailed Guardrails workflow diagram for input and output validation
Shubhamsaboo1d18103dfaf2
diff --git a/ai_agent_framework_crash_course/openai_sdk_crash_course/6_guardrails_validation/README.md b/ai_agent_framework_crash_course/openai_sdk_crash_course/6_guardrails_validation/README.mdindex 0005a722..37c5c18e 100644--- a/ai_agent_framework_crash_course/openai_sdk_crash_course/6_guardrails_validation/README.md+++ b/ai_agent_framework_crash_course/openai_sdk_crash_course/6_guardrails_validation/README.md@@ -21,6 +21,38 @@ Guardrails are **automated safety mechanisms** that validate inputs and outputs- Ensure compliance with content policies- Provide automatic error handling and user feedback+```+┌─────────────────────────────────────────────────────────────┐+│ GUARDRAILS WORKFLOW │+├─────────────────────────────────────────────────────────────┤+│ │+│ USER INPUT │+│ │ │+│ ▼ │+│ ┌─────────────┐ 1. INPUT VALIDATION │+│ │ INPUT │ ◦ Check content safety │+│ │ GUARDRAILS │ ◦ Validate business rules │+│ └─────────────┘ ◦ Filter inappropriate requests │+│ │ │+│ ▼ 2. PASS/BLOCK DECISION │+│ ┌─────────────┐ │+│ │ AGENT │ ✅ PASS: Continue to agent+│ │ PROCESSING │ 🚫 BLOCK: Throw exception+│ └─────────────┘ │+│ │ │+│ ▼ │+│ ┌─────────────┐ 3. OUTPUT VALIDATION │+│ │ OUTPUT │ ◦ Safety check responses │+│ │ GUARDRAILS │ ◦ Filter sensitive information │+│ └─────────────┘ ◦ Ensure policy compliance │+│ │ │+│ ▼ 4. FINAL DECISION │+│ ┌─────────────┐ │+│ │ FINAL │ ✅ SAFE: Return to user │+│ │ RESPONSE │ 🚫 UNSAFE: Block and handle │+│ └─────────────┘ │+└─────────────────────────────────────────────────────────────┘+```## 🚀 Key Guardrails Concepts