)]}'
{
  "commit": "a54570998d26dcbd4b43f371f81854b5cf56efe0",
  "tree": "ac8c3f649057e8b2ec332edc0d8e9a5804a1498b",
  "parents": [
    "b6e16fed4b3ca3821f1d16d6f39859f53f321a60"
  ],
  "author": {
    "name": "Patrizio",
    "email": "patrizio.gelosi@amarulasolutions.com",
    "time": "Fri Jun 28 15:56:47 2024 +0200"
  },
  "committer": {
    "name": "Patrizio",
    "email": "patrizio.gelosi@amarulasolutions.com",
    "time": "Thu Aug 08 08:55:41 2024 +0200"
  },
  "message": "Refactor code for prompt specialization\n\nThe ChatGptPromptStateful class has been restructured into an abstract\nbase class, ChatGptPromptStatefulBase, with two specialized subclasses:\nChatGptPromptStatefulReview for Patch Set review instructions, and\nChatGptPromptStatefulRequests for handling replies to comment requests.\nFurthermore, general stateful prompt items remain in\n`promptsStateful.json`, while specialized resources for reviews and\nrequests have been segregated into `promptsStatefulReview.json` and\n`promptsStatefulRequests.json` respectively.\nThis restructuring enhances code maintainability and prepares for\nfurther prompt specialization.\n\nChange-Id: I5d92d403a59df712acb74a534f230ce04e33ddba\nSigned-off-by: Patrizio \u003cpatrizio.gelosi@amarulasolutions.com\u003e\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "76820d9a286165e71dfc85e4af3ee8d951a34004",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/interfaces/mode/stateful/client/prompt/IChatGptPromptStateful.java"
    },
    {
      "type": "modify",
      "old_id": "a7653e74f4503a0a8edb1cb1444ebb80fab0fa20",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/mode/common/client/prompt/ChatGptPromptFactory.java",
      "new_id": "e6cfb24324771d57ba5379726450811cf85bbc79",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/mode/common/client/prompt/ChatGptPromptFactory.java"
    },
    {
      "type": "modify",
      "old_id": "1092a8bb8f93c78724a30975076404e0f8facb6f",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/mode/stateful/client/api/chatgpt/ChatGptAssistant.java",
      "new_id": "2c87ba0d108311e6dd6b6490d3fa37c7b6f15671",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/mode/stateful/client/api/chatgpt/ChatGptAssistant.java"
    },
    {
      "type": "modify",
      "old_id": "06c9171181826c2cc694d0324f5cec23cc6e9e1f",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/mode/stateful/client/api/chatgpt/ChatGptThreadMessage.java",
      "new_id": "9d961acd2d4b2d660428dde012f007c7437ee3ba",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/mode/stateful/client/api/chatgpt/ChatGptThreadMessage.java"
    },
    {
      "type": "delete",
      "old_id": "9791ab2027da863c0649906f371f53ca094578c3",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/mode/stateful/client/prompt/ChatGptPromptStateful.java",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "bb39d015d41cac9d814f9f86229613c63e351c0d",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/mode/stateful/client/prompt/ChatGptPromptStatefulBase.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e92629ac1744d6fab23de118218e5dd12511629a",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/mode/stateful/client/prompt/ChatGptPromptStatefulRequests.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "389e5e61ae0b42390b862006002229e0aad0276e",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/mode/stateful/client/prompt/ChatGptPromptStatefulReview.java"
    },
    {
      "type": "modify",
      "old_id": "7f0e584ec82c501f62bf9d1917697d8ee261bddb",
      "old_mode": 33188,
      "old_path": "src/main/resources/config/promptsStateful.json",
      "new_id": "c774b91029130cda3f6679f2e8732632dd15a51d",
      "new_mode": 33188,
      "new_path": "src/main/resources/config/promptsStateful.json"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "832612d5747f88bddaeab7d6f35c012eca78ca8a",
      "new_mode": 33188,
      "new_path": "src/main/resources/config/promptsStatefulRequests.json"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "cf8d7f9e7ea92965e66876c01bd00886b073401b",
      "new_mode": 33188,
      "new_path": "src/main/resources/config/promptsStatefulReview.json"
    },
    {
      "type": "modify",
      "old_id": "cae1e163561250beb5ba05e61006c9d444b3fabf",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/chatgpt/ChatGptReviewStatefulTest.java",
      "new_id": "91e40a385b25187caf5ddb4026bd2dcd56f3cebc",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/chatgpt/ChatGptReviewStatefulTest.java"
    }
  ]
}
