{
  "appName": "request_input_advanced",
  "events": [
    {
      "author": "user",
      "content": {
        "parts": [
          {
            "text": "2 sick days"
          }
        ],
        "role": "user"
      },
      "id": "e-1",
      "invocationId": "i-1",
      "nodeInfo": {
        "path": ""
      }
    },
    {
      "actions": {
        "stateDelta": {
          "request": {
            "days": 2,
            "reason": "sick"
          }
        }
      },
      "author": "process_request",
      "content": {
        "parts": [
          {
            "text": "{\"days\":2,\"reason\":\"sick\"}"
          }
        ],
        "role": "model"
      },
      "finishReason": "STOP",
      "id": "e-2",
      "invocationId": "i-1",
      "nodeInfo": {
        "messageAsOutput": true,
        "outputFor": [
          "request_input_advanced@1/process_request@1"
        ],
        "path": "request_input_advanced@1/process_request@1"
      }
    },
    {
      "author": "request_input_advanced",
      "content": {
        "parts": [
          {
            "functionCall": {
              "args": {
                "interruptId": "fc-1",
                "message": "Please review this time off request.",
                "payload": {
                  "days": 2,
                  "reason": "sick"
                },
                "response_schema": {
                  "description": "The structured response we expect back from the human manager.",
                  "properties": {
                    "approved": {
                      "description": "Whether the time off is approved.",
                      "title": "Approved",
                      "type": "boolean"
                    },
                    "approved_days": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "default": null,
                      "description": "Number of days approved.",
                      "title": "Approved Days"
                    }
                  },
                  "required": [
                    "approved"
                  ],
                  "title": "TimeOffDecision",
                  "type": "object"
                }
              },
              "id": "fc-1",
              "name": "adk_request_input"
            }
          }
        ],
        "role": "model"
      },
      "id": "e-3",
      "invocationId": "i-1",
      "longRunningToolIds": [
        "fc-1"
      ],
      "nodeInfo": {
        "path": "request_input_advanced@1/evaluate_request@1"
      }
    },
    {
      "author": "user",
      "content": {
        "parts": [
          {
            "functionResponse": {
              "id": "fc-1",
              "name": "adk_request_input",
              "response": {
                "result": "{\"approved\": true}"
              }
            }
          }
        ],
        "role": "user"
      },
      "id": "e-4",
      "invocationId": "i-1",
      "nodeInfo": {
        "path": ""
      }
    },
    {
      "author": "request_input_advanced",
      "content": {
        "parts": [
          {
            "text": "Time Off Approved! 2 out of 2 days granted."
          }
        ],
        "role": "user"
      },
      "id": "e-5",
      "invocationId": "i-1",
      "nodeInfo": {
        "path": "request_input_advanced@1/process_decision@1"
      }
    }
  ],
  "id": "131bfe8b-de90-47bd-b442-957f27dc58a6",
  "state": {
    "__session_metadata__": {
      "displayName": "2 sick days"
    },
    "request": {
      "days": 2,
      "reason": "sick days"
    }
  },
  "userId": "user"
}
