Skip to content

The Open Standard for Generative UI

1.2 KB
Raw Blame
{
  "root": {
    "type": "Stack",
    "props": {
      "children": [
        {
          "type": "Button",
          "props": {
            "label": "Bump",
            "action": {
              "actions": [
                {
                  "action": "Set",
                  "args": [
                    "$m",
                    9
                  ]
                }
              ]
            }
          }
        },
        {
          "type": "Button",
          "props": {
            "label": "Go",
            "action": {
              "actions": [
                {
                  "action": "Set",
                  "args": [
                    "$n",
                    5
                  ]
                },
                {
                  "action": "Reset",
                  "args": [
                    "$m"
                  ]
                },
                {
                  "action": "ToAssistant",
                  "args": [
                    "done"
                  ]
                }
              ]
            }
          }
        }
      ]
    }
  },
  "errors": [],
  "unresolved": [],
  "orphans": [],
  "incomplete": false,
  "state": {
    "$n": 1,
    "$m": 7
  }
}