{
"identifier": "<string>",
"prompts": [
<Prompt JSON Object>,
...
],
"function_prototype": <FunctionPrototype JSON Object>,
"correctness_test_suite": [
<TestCase JSON Object>,
...
] (Optional),
"optimal_solution": "<string> (Optional)",
"tags": [
"<string>",
...
] (Optional)
}-
identifier (String):
- A string representing the unique identifier of the problem definition.
-
prompts (Array of
PromptJSON Objects):- An array of JSON objects representing the prompts. Each object should adhere to the JSON format expected by the
Promptclass.
- An array of JSON objects representing the prompts. Each object should adhere to the JSON format expected by the
-
function_prototype (
FunctionPrototypeJSON Object):- A JSON object representing the function prototype. The object should adhere to the JSON format expected by the
FunctionPrototypeclass.
- A JSON object representing the function prototype. The object should adhere to the JSON format expected by the
-
correctness_test_suite (Array of
TestCaseJSON Objects, Optional):- An optional array of JSON objects representing the test cases for correctness. Each object should adhere to the JSON format expected by the
TestCaseclass. If not provided, the default value is an empty array.
- An optional array of JSON objects representing the test cases for correctness. Each object should adhere to the JSON format expected by the
-
optimal_solution (String, Optional):
- An optional string representing the optimal solution to the problem. If not provided, the default value is
null.
- An optional string representing the optimal solution to the problem. If not provided, the default value is
-
tags (Array of Strings, Optional):
- An optional array of strings representing tags associated with the problem definition. If not provided, the default value is
null.
- An optional array of strings representing tags associated with the problem definition. If not provided, the default value is
{
"function_name": "<string>",
"parameters": [
<Parameter JSON Object>,
...
],
"return_values": [
<ReturnValue JSON Object>,
...
]
}-
function_name (String):
- A string representing the name of the function.
-
parameters (Array of
ParameterJSON Objects):- An array of JSON objects representing the parameters of the function. Each object should adhere to the JSON format expected by the
Parameterclass.
- An array of JSON objects representing the parameters of the function. Each object should adhere to the JSON format expected by the
-
return_values (Array of
ReturnValueJSON Objects):- An array of JSON objects representing the return values of the function. Each object should adhere to the JSON format expected by the
ReturnValueclass.
- An array of JSON objects representing the return values of the function. Each object should adhere to the JSON format expected by the
{
"name": "<string>",
"type": "<string>"
}-
name (String):
- A string representing the name of the parameter.
-
type (String):
- A string representing the type of the parameter.
{
"type": "<string>"
}- type (String):
- A string representing the type of the return value.
{
"input": {
"<parameter_name>": "<parameter_value>",
...
},
"expected_output": [
"<output_value>",
...
]
}-
input (Object):
- An object where each key-value pair represents a parameter name and its corresponding value.
-
expected_output (Array):
- An array where each element represents an expected output value.
{
"prompt_id": "<string>",
"prompt": "<string>",
"genericize": <boolean> (Optional),
"sample_inputs_outputs": [
<TestCase JSON Object>,
...
] (Optional),
"input_code": "<string> (Optional)"
}-
prompt_id (String):
- A string representing the unique identifier of the prompt.
-
prompt (String):
- A string representing the text of the prompt.
-
genericize (Boolean, Optional):
- An optional boolean value indicating whether to genericize the prompt or not.
-
sample_inputs_outputs (Array of
TestCaseJSON Objects, Optional):- An optional array of JSON objects representing the sample inputs and outputs. Each object should adhere to the JSON format expected by the
TestCaseclass.
- An optional array of JSON objects representing the sample inputs and outputs. Each object should adhere to the JSON format expected by the
-
input_code (String, Optional):
- An optional string representing the input code for the prompt. If not provided, the default value is
null.
- An optional string representing the input code for the prompt. If not provided, the default value is