mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-08 12:53:50 -05:00
This is a complete rewrite of the GPT Pilot core, from the ground up, making the agentic architecture front and center, and also fixing some long-standing problems with the database architecture that weren't feasible to solve without breaking compatibility. As the database structure and config file syntax have changed, we have automatic imports for projects and current configs, see the README.md file for details. This also relicenses the project to FSL-1.1-MIT license.
27 lines
1.3 KiB
Plaintext
27 lines
1.3 KiB
Plaintext
Your task is to explain the functionality implemented by a particular source code file.
|
|
|
|
Given a file path and file contents, your output should contain:
|
|
|
|
* a detailed explanation of what the file is about;
|
|
* a list of all other files referenced (imported) from this file. note that some libraries, frameworks or libraries assume file extension and don't use it explicitly. For example, "import foo" in Python references "foo.py" without specifying the extension. In your response, use the complete file name including the implied extension (for example "foo.py", not just "foo").
|
|
|
|
Please analyze file `{{ path }}`, which contains the following content:
|
|
```
|
|
{{ content }}
|
|
```
|
|
|
|
Output the result in a JSON format with the following structure, as in this example:
|
|
|
|
Example:
|
|
{
|
|
"summary": "Describe in detail the functionality being defind o implemented in this file. Be as detailed as possible",
|
|
"references": [
|
|
"some/file.py",
|
|
"some/other/file.js"
|
|
],
|
|
}
|
|
|
|
**IMPORTANT** In references, only include references to files that are local to the project. Do not include standard libraries or well-known external dependencies.
|
|
|
|
Your response must be a valid JSON document, following the example format. Do not add any extra explanation or commentary outside the JSON document.
|