qwen_agent/skills/developing/ecommerce-storefront/hooks/pre_prompt.py
2026-05-23 13:53:10 +08:00

9 lines
290 B
Python

#!/usr/bin/env python3
"""PrePrompt hook - inject ecommerce tool guide into system prompt."""
import os
guide_path = os.path.join(os.path.dirname(__file__), "ecommerce_guide.md")
if os.path.exists(guide_path):
with open(guide_path, "r", encoding="utf-8") as f:
print(f.read())