qwen_agent/skills/common/mcp-ui/hooks/pre_prompt.py
2026-05-17 14:07:25 +08:00

19 lines
379 B
Python

#!/usr/bin/env python3
"""
PrePrompt Hook - ask_user tool usage guide loader.
Outputs the ask_user usage guide to be injected into the system prompt.
"""
import sys
from pathlib import Path
def main():
guide_file = Path(__file__).parent / "ask_user_guide.md"
print(guide_file.read_text(encoding="utf-8"))
return 0
if __name__ == '__main__':
sys.exit(main())