Files
AutoGPT/benchmark/agbenchmark/challenges/deprecated/code/3_modify/data.json
merwanehamadi f4d319cee4 Refactor benchmark (#5247)
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
2023-09-17 06:55:20 -07:00

22 lines
764 B
JSON

{
"name": "ReturnCodeModify",
"category": ["code", "iterate"],
"task": "Modify the multiply_int function in sample_code.py to be able to pass in a 'multiplier' argument to multiply the 'num' by 'multiplier'. Both arguments are integers. You can make sure you have correctly done this by running test.py",
"dependencies": ["ReturnCodeWrite"],
"cutoff": 120,
"ground": {
"answer": "def multiply_int(num, multiplier):\n return num * multiplier\n",
"should_contain": ["8", "49", "-12"],
"should_not_contain": [],
"files": ["test.py"],
"eval": {
"type": "python"
}
},
"info": {
"difficulty": "intermediate",
"description": "Builds on the previous function also take a multiplier .",
"side_effects": []
}
}