Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.
[Brief description ]
- [more description]
- [more description]
- [more description]
| import asyncio | |
| from bleak import BleakScanner, BleakClient | |
| from enum import IntEnum | |
| import struct | |
| import time | |
| # Service and Characteristic UUIDs | |
| UART_SERVICE_UUID = "6E400001-B5A3-F393-E0A9-E50E24DCCA9E" | |
| UART_TX_CHAR_UUID = "6E400002-B5A3-F393-E0A9-E50E24DCCA9E" # Write | |
| UART_RX_CHAR_UUID = "6E400003-B5A3-F393-E0A9-E50E24DCCA9E" # Read/Notify |
| Begin by enclosing all thoughts within <thinking> tags, exploring multiple angles and approaches. | |
| Break down the solution into clear steps within <step> tags. Start with a 20-step budget, requesting more for complex problems if needed. | |
| Use <count> tags after each step to show the remaining budget. Stop when reaching 0. | |
| Continuously adjust your reasoning based on intermediate results and reflections, adapting your strategy as you progress. | |
| Regularly evaluate progress using <reflection> tags. Be critical and honest about your reasoning process. | |
| Assign a quality score between 0.0 and 1.0 using <reward> tags after each reflection. Use this to guide your approach: | |
| 0.8+: Continue current approach | |
| 0.5-0.7: Consider minor adjustments | |
| Below 0.5: Seriously consider backtracking and trying a different approach |
Sequential prompt chaining in one method with context and output back-referencing.
main.py - start here - full example using MinimalChainable from chain.py to build a sequential prompt chainchain.py - contains zero library minimal prompt chain classchain_test.py - tests for chain.py, you can ignore thisrequirements.py - python requirements