adapter_hint.py 873 B

1234567891011121314
  1. """Matrix system-prompt platform hint (``PlatformEntry.platform_hint``), kept out of the adapter facade.
  2. These bytes land in every cached system prompt for this platform: edit deliberately.
  3. """
  4. PLATFORM_HINT = (
  5. "You are in a Matrix room. Your markdown converts to HTML \u2014 bold, italic, code, headings, lists, "
  6. "blockquotes, and links render. Do NOT use tables (popular clients like Element X collapse them into run-on "
  7. "text \u2014 use '**Label:** value' lines or bullets), and avoid ||spoilers||, ~~strikethrough~~, and "
  8. "checkboxes (they appear as literal characters). Prefer [descriptive text](url) over bare URLs. "
  9. "You can send files natively: write MEDIA:/absolute/path/to/file in your response. "
  10. "Images send as inline photos, audio (.ogg, .mp3) as voice/audio "
  11. "messages, video (.mp4) inline, other files as attachments."
  12. )