Repository: Pythagora-io/gpt-pilot
File: pilot/const/function_calls.py (Python)

Code before:
                                "description": "Very clear question that needs to be answered to have good bug report.",
                            },
                        },
                        "required": ["question"],
                        "additionalProperties": False
                    },
                }
            },
            "required": ["missing_data"],
            "additionalProperties": False
        }
    }],
}

LIST_RELEVANT_FILES = {
    'definitions': [{
        'name': 'list_relevant_files',
        'description': 'List of relevant files for the current task.',
        'parameters': {
            "type": "object",
            "properties": {
                "relevant_files": {
                    "type": "array",
                    "items": {
                        "type": "string",
                        "description": "Path to the file that is relevant for the current task."
                    },
                }
            },
            "required": ["relevant_files"],
            "additionalProperties": False
        }
    }],
}

DESCRIBE_FILE = {
    'definitions': [{
        'name': 'describe_file',
        'description': 'Describe the content of the file.',
        'parameters': {
            "type": "object",
            "properties": {
                "summary": {
                "type": "string",
                "description": "Describe in detail the functionality being defined or implemented in this file. Be as detailed as possible."
                },
                "references": {
                "type": "array",
                "items": {
                    "type": "string"
                },

Review comment (suggestion):
maybe it should be `relative path` instead of just `path`?

Since it was tested like this, I suggest we keep it this way but have this in mind as potential problem if some users experience issues

Code after:
                                "description": "Very clear question that needs to be answered to have good bug report.",
                            },
                        },
                        "required": ["question"],
                        "additionalProperties": False
                    },
                }
            },
            "required": ["missing_data"],
            "additionalProperties": False
        }
    }],
}

LIST_RELEVANT_FILES = {
    'definitions': [{
        'name': 'list_relevant_files',
        'description': 'List of relevant files for the current task.',
        'parameters': {
            "type": "object",
            "properties": {
                "relevant_files": {
                    "type": "array",
                    "items": {
                        "type": "string",
                        "description": "Path to the file that is relevant for the current task, relative to the project root."
                    },
                }
            },
            "required": ["relevant_files"],
            "additionalProperties": False
        }
    }],
}

DESCRIBE_FILE = {
    'definitions': [{
        'name': 'describe_file',
        'description': 'Describe the content of the file.',
        'parameters': {
            "type": "object",
            "properties": {
                "summary": {
                    "type": "string",
                    "description": "Describe in detail the functionality being defined or implemented in this file. Be as detailed as possible."
                },
                "references": {
                    "type": "array",
                    "items": {
                        "type": "string",
                        "description": "Path to a file that is referenced in the current file, relative to the project root.",