Advertisement
Guest User

Minecraft LLM structured output

a guest
Apr 20th, 2025
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.69 KB | None | 0 0
  1. {
  2.   "type": "object",
  3.   "properties": {
  4.     "thought": {
  5.       "type": "string",
  6.       "description": "Write a brief sentence considering the situation and what action to do next."
  7.     },
  8.     "action": {
  9.       "type": "object",
  10.       "anyOf": [
  11.         {
  12.           "type": "object",
  13.           "description": "Moves the player with WASD.",
  14.           "properties": {
  15.             "action_id": {
  16.               "const": "move"
  17.             },
  18.             "direction": {
  19.               "type": "string",
  20.               "enum": [
  21.                 "forward",
  22.                 "backward",
  23.                 "left",
  24.                 "right"
  25.               ]
  26.             },
  27.             "distance": {
  28.               "type": "integer",
  29.               "description": "Distance to move in half-blocks. Distance must be greater than zero."
  30.             }
  31.           },
  32.           "required": [
  33.             "action_id",
  34.             "direction",
  35.             "distance"
  36.           ]
  37.         },
  38.         {
  39.           "type": "object",
  40.           "description": "Move the camera view with the mouse",
  41.           "properties": {
  42.             "action_id": {
  43.               "const": "look"
  44.             },
  45.             "rotation_direction": {
  46.               "type": "string",
  47.               "enum": [
  48.                 "up",
  49.                 "down",
  50.                 "left",
  51.                 "right"
  52.               ],
  53.               "description": "Direction to look."
  54.             },
  55.             "rotation_degrees": {
  56.               "type": "integer",
  57.               "description": "Distance to rotate the view in degrees. Distance must be greater than zero."
  58.             }
  59.           },
  60.           "required": [
  61.             "action_id",
  62.             "rotation_direction",
  63.             "rotation_degrees"
  64.           ]
  65.         },
  66.         {
  67.           "type": "object",
  68.           "description": "Place whatever item is in the players hand where the player is looking. Only works if player is currently holding an item. Does not work for tools.",
  69.           "properties": {
  70.             "action_id": {
  71.               "const": "place_item"
  72.             }
  73.           },
  74.           "required": [
  75.             "action_id"
  76.           ]
  77.         },
  78.         {
  79.           "type": "object",
  80.           "description": "Destroy whatever block the player is looking at (at close range). Use a tool appropriate for the block if possible.",
  81.           "properties": {
  82.             "action_id": {
  83.               "const": "attack_block"
  84.             }
  85.           },
  86.           "required": [
  87.             "action_id"
  88.           ]
  89.         },
  90.         {
  91.           "type": "object",
  92.           "description": "Selects the item to the left or right of the selected item in the hotbar at the bottom of the screen.",
  93.           "properties": {
  94.             "action_id": {
  95.               "const": "hotbar"
  96.             },
  97.             "selection": {
  98.               "type": "string",
  99.               "enum": [
  100.                 "left",
  101.                 "right"
  102.               ],
  103.               "description": "Select the item to the left or right of the currently selected item."
  104.             }
  105.           },
  106.           "required": [
  107.             "action_id",
  108.             "selection"
  109.           ]
  110.         },
  111.         {
  112.           "type": "object",
  113.           "description": "Send a chat message in the game to other players on the server",
  114.           "properties": {
  115.             "action_id": {
  116.               "const": "chat"
  117.             },
  118.             "message": {
  119.               "type": "string"
  120.             }
  121.           },
  122.           "required": [
  123.             "action_id",
  124.             "message"
  125.           ]
  126.         }
  127.       ]
  128.     }
  129.   },
  130.   "required": [
  131.     "thought",
  132.     "action"
  133.   ]
  134. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement