You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are developing a benchmark to assess the quality of project template generation by code agents.
15
-
The benchmark includes the task of generating project template code based on a description provided in natural language.
16
-
We will use template repositories in Python, Java, and Kotlin from GitHub as the source of data for this task.
17
-
The task is to use the given file system API to reproduce a given template based on its textual description.
18
-
Template is a small compilable project that contains small examples of all mentioned in description libraries, technologies, functionality.
19
-
The result template should contain the whole file structure of this project, including the code inside files and configuration files for project building and deployment if required.
20
-
The code should be compilable and contain a minimal example of the required functionality as specified in the description.
21
-
The file system API provides functionality to explore, create, delete, and modify files and directories in the working directory.
22
-
23
-
Now, you should provide a detailed step-by-step action plan for handling the task at hand, clearly emphasizing the sequential order of operations.
24
-
Your plan should:
25
-
- Specify the task's end goal and break down the process into individual actions, using bullet points for clarity.
26
-
- Abstractly describe the logical and conditional flow between actions.
27
-
- Do not execute any functions or write any code. This is a planning-only phase, intended to create a blueprint for the execution phase.
28
-
execution_system_prompt: |
29
-
We are developing a benchmark to assess the quality of project template generation by code agents.
30
-
The benchmark includes the task of generating project template code based on a description provided in natural language.
31
-
We will use template repositories in Python, Java, and Kotlin from GitHub as the source of data for this task.
32
-
Your task is to use the given file system API to reproduce a given template based on its textual description.
33
-
You should create the file structure of this project, including the code inside files and configuration files for project building and deployment if required.
34
-
The code should be compilable and contain a minimal example of the required functionality as specified in the description.
35
-
The file system API provides functionality to explore, create, delete, and modify files and directories in the working directory.
36
-
37
-
As a support, you also provided with a plan, which you should follow during the task. For each step of the plan you should:
38
-
- Call the appropriate function with the required arguments, corresponding directly to the outlined plan's next action.
39
-
- Evaluate the function call's result and adjust the next steps accordingly, maintaining fidelity to the plan's intended sequence.
40
-
- If a function call fails or produces undesired outcomes, stop execution process.
41
-
- Persist through different strategies, avoiding repetition of unsuccessful attempts, until the task is completed or a maximum of 50 steps have been taken.
42
-
- If you are stuck, do not try to repeat the request, as it will not help. Instead, try to explore the reason for the failure, modify the input or rollback some previous actions which led to the error.
43
-
- Document solely the function calls and their outcomes. Refrain from additional commentary or explanatory text during this execution phase.
44
-
Begin execution with the plan start point, adhering strictly to the prescribed operations.
45
-
The project’s template root directory has already been created, so you don't need to create it. Produce files inside this directory. Treat it as the root directory and use relative paths starting with an empty string ''.
3.2 For each file in the project add code block with file with filepath as type and content
15
15
16
16
Strictly follow next rules:
17
17
- ALWAYS write example code in the files without any placeholders.
18
18
- ALWAYS add README file in the root of the project with short but comprehensive description of project's the structure.
19
19
- ALWAYS add README_BUILD file in the root of the project with short but comprehensive description how to build project – describe all build dependencies.
20
20
- ALWAYS add language notation 'PROJECT' for project structure
We are developing a benchmark to assess the quality of project template generation by code agents.
2
+
The benchmark includes the task of generating project template code based on a description provided in natural language.
3
+
We will use template repositories in Python, Java, and Kotlin from GitHub as the source of data for this task.
4
+
Your task is to use the given file system API to reproduce a given template based on its textual description.
5
+
You should create the file structure of this project, including the code inside files and configuration files for project building and deployment if required.
6
+
The code should be compilable and contain a minimal example of the required functionality as specified in the description.
7
+
The file system API provides functionality to explore, create, delete, and modify files and directories in the working directory.
8
+
9
+
As a support, you also provided with a plan, which you should follow during the task. For each step of the plan you should:
10
+
- Call the appropriate function with the required arguments, corresponding directly to the outlined plan's next action.
11
+
- Evaluate the function call's result and adjust the next steps accordingly, maintaining fidelity to the plan's intended sequence.
12
+
- If a function call fails or produces undesired outcomes, stop execution process.
13
+
- Persist through different strategies, avoiding repetition of unsuccessful attempts, until the task is completed or a maximum of 50 steps have been taken.
14
+
- If you are stuck, do not try to repeat the request, as it will not help. Instead, try to explore the reason for the failure, modify the input or rollback some previous actions which led to the error.
15
+
- Document solely the function calls and their outcomes. Refrain from additional commentary or explanatory text during this execution phase.
16
+
Begin execution with the plan start point, adhering strictly to the prescribed operations.
17
+
The project’s template root directory has already been created, so you don't need to create it. Produce files inside this directory. Treat it as the root directory and use relative paths starting with an empty string ''.
- Call the appropriate function with the required arguments, corresponding directly to the outlined plan's next action.
3
+
- Evaluate the function call's result and adjust the next steps accordingly, maintaining fidelity to the plan's intended sequence.
4
+
- If a function call fails or produces undesired outcomes, try to solve the problem by fining the reason of the fail and selecting workaround path.
5
+
- Persist through different strategies, avoiding repetition of unsuccessful attempts, until the task is completed.
6
+
- If you are stuck, do not try to repeat the request, as it will not help. Instead, try to explore the reason for the failure, modify the input or rollback some previous actions which led to the error.
7
+
- Document solely the function calls and their outcomes. Refrain from additional commentary or explanatory text during this execution phase.
8
+
Begin execution with the plan start point, adhering strictly to the prescribed operations.
9
+
The project’s template root directory has already been created, so you don't need to create it. Produce files inside this directory. Treat it as the root directory and use relative paths starting with an empty string ''.
10
+
11
+
############
12
+
Example 1:
13
+
14
+
DESCRIPTION:
15
+
Generate template for project named `ktor-samples__chat` which should be mainly written on Kotlin programing language and aligns following description:
16
+
A chat application written with Ktor using WebSockets and Sessions.
17
+
18
+
PLAN:
19
+
Detailed Step-by-Step Action Plan for Generating the Project Template
20
+
1. Define the Project Directory Structure
21
+
2. Generate files content and Write Files
22
+
23
+
EXECUTION:
24
+
1. Using function calling invoke `create-project-tree` function with `parentDirectory` argument is "" and `tree_structure` argument equals to
25
+
```
26
+
ktor-samples__chat/
27
+
├── README.md
28
+
├── build.gradle
29
+
├── tests/
30
+
└── src/
31
+
├── backendMain/
32
+
│ ├── kotlin/
33
+
│ │ ├── ChatApplication.kt
34
+
│ │ └── ChatServer.kt
35
+
│ └── resources/
36
+
│ ├── application.conf
37
+
│ ├── logback.xml
38
+
│ └── web/
39
+
│ └── index.html
40
+
├── backendTest/
41
+
│ └── kotlin/
42
+
│ └── ChatApplicationTest.kt
43
+
└── frontendMain/
44
+
└── kotlin/
45
+
└── main.kt
46
+
```
47
+
Make sure your tree in format of command line tool tree format and contains only │├└ and ─ symbols for brunch drawing
48
+
49
+
2. For each file in file tree using function calling invoke `set-file-text` function.
50
+
For example, you can start with `filePath` argument equals to 'ktor-samples__chat/chat/src/backendMain/kotlin/ChatApplication.kt' and `text` equals to
We are developing a benchmark to assess the quality of project template generation by code agents.
2
+
The benchmark includes the task of generating project template code based on a description provided in natural language.
3
+
We will use template repositories in Python, Java, and Kotlin from GitHub as the source of data for this task.
4
+
The task is to use the given file system API to reproduce a given template based on its textual description.
5
+
Template is a small compilable project that contains small examples of all mentioned in description libraries, technologies, functionality.
6
+
The result template should contain the whole file structure of this project, including the code inside files and configuration files for project building and deployment if required.
7
+
The code should be compilable and contain a minimal example of the required functionality as specified in the description.
8
+
The file system API provides functionality to explore, create, delete, and modify files and directories in the working directory.
9
+
Now, you should provide a detailed step-by-step action plan for handling the task at hand, clearly emphasizing the sequential order of operations.
10
+
Do not execute any functions or write any code. This is a planning-only phase, intended to create a blueprint for the execution phase.
0 commit comments