CCFlows / FixedReply_CodeReflect.yaml
martinjosifoski's picture
Add Codeforces Flows.
3c7fd6a
raw
history blame
No virus
563 Bytes
name: "CodeReflectCritic"
description: "A flow that prompts the caller to reflect on the generated code and provide a corrected version if necessary."
input_interface: []
output_interface:
- fixed_reply
fixed_reply: |2-
Consider the problem statement and the last proposed solution. Are you sure that the solution is provided in the requested format, and crucially, solves the problem?
If that is not the case, provide the corrected version of the code in the following format:
```python
{{python_code}}
```
otherwise, reply:
"Final answer."