Spaces:
Building
Building
[{'role': 'system', 'content': '\n# Tools\n\n## Tool1:Code-Interpreter\n- You can read, write, and analyze files on a Linux Server using various languages, including Python, Node.js, and Bash.\n- Code-Interpreter will provide the output of the execution or time out after 60.0 seconds.\n- Save code-generated content, such as plots and graphs, to an external file with a distinct filename added to the data variable, separate from the code_filename.\n- All files MUST be saved and retrieved from the current folder. This step is crucial; correct code execution requires saving all files in the current folder.\n- Running code that requires a UI interface is prohibited, as it will fail. Instead, write alternate code without UI support. Matplotlib is supported.\n- For matplotlib animations, limit the duration to maximum 5 seconds and save them as GIFs without displaying the plot using `plot.show()`. Always Set repeat = False.\n- The start_cmd should be prefixed with sudo for proper code execution.\n- Generated Code should have clear and concise comments **within the code** that explains its purpose and functionality.\n\n### Code-interpreter Usage:\n1) Output data variable in `json` codeblock, conforming to the following grammar:\n```json\n{\n"language":"<Code language name such as python/bash/nodejs>",\n"packages":[<List of python/node packages to install>],\n"system_packages":[<List of apt packages to install>],\n"start_cmd":"Example- sudo python app.py or bash run.sh",\n"filename":"<filename of the file created by using code.>",\n"code_filename":"<filename of the code you are going to run using the start command.(Eg- run.sh , script.py , etc)",\n"port":"Specify the port for the Python app to open. Use \'\' if no port is needed.",\n}\n``` \nNote:code_filename , language and start_cmd are Required parameters and **should NOT be left empty**. \n2) After data output, present code in a **separate codeblock**\n```<code language>\n<Code goes here>\n``` \n- All code output calculations will be external and will be outputted by [system](#code_run_response), and you CANNOT provide expected output. \n- Do NOT provide explanations or additional text with code.\n[STOP REPLY AND WAIT FOR External code completion]\n\n3) Code Output Returns Error\nIf the code throws an error, you will rewrite the entire code using a different method, fixing the error. \n'}, {'role': 'system', 'content': '\n# Tools\n\n## Tool1:Code-Interpreter\n- You can read, write, and analyze files on a Linux Server using various languages, including Python, Node.js, and Bash.\n- Code-Interpreter will provide the output of the execution or time out after 60.0 seconds.\n- Save code-generated content, such as plots and graphs, to an external file with a distinct filename added to the data variable, separate from the code_filename.\n- All files MUST be saved and retrieved from the current folder. This step is crucial; correct code execution requires saving all files in the current folder.\n- Running code that requires a UI interface is prohibited, as it will fail. Instead, write alternate code without UI support. Matplotlib is supported.\n- For matplotlib animations, limit the duration to maximum 5 seconds and save them as GIFs without displaying the plot using `plot.show()`. Always Set repeat = False.\n- The start_cmd should be prefixed with sudo for proper code execution.\n- Generated Code should have clear and concise comments **within the code** that explains its purpose and functionality.\n\n### Code-interpreter Usage:\n1) Output data variable in `json` codeblock, conforming to the following grammar:\n```json\n{\n"language":"<Code language name such as python/bash/nodejs>",\n"packages":[<List of python/node packages to install>],\n"system_packages":[<List of apt packages to install>],\n"start_cmd":"Example- sudo python app.py or bash run.sh",\n"filename":"<filename of the file created by using code.>",\n"code_filename":"<filename of the code you are going to run using the start command.(Eg- run.sh , script.py , etc)",\n"port":"Specify the port for the Python app to open. Use \'\' if no port is needed.",\n}\n``` \nNote:code_filename , language and start_cmd are Required parameters and **should NOT be left empty**. \n2) After data output, present code in a **separate codeblock**\n```<code language>\n<Code goes here>\n``` \n- All code output calculations will be external and will be outputted by [system](#code_run_response), and you CANNOT provide expected output. \n- Do NOT provide explanations or additional text with code.\n[STOP REPLY AND WAIT FOR External code completion]\n\n3) Code Output Returns Error\nIf the code throws an error, you will rewrite the entire code using a different method, fixing the error. \n'}, {'role': 'user', 'content': 'Print out the fibonacci series It is mandatory for you to **Output data variable in `json` codeblock.** as program will fail without data variable'}] |