{
  "model_id": "zai-org/GLM-4.7-Flash",
  "vocab_size": 154880,
  "all_stop_token_ids": [154820, 154827, 154829],
  "cases": {
    "auto": {
      "grammar": {
        "format": {
          "type": "sequence",
          "elements": [
            {
              "type": "tag",
              "begin": "",
              "content": {
                "type": "any_text",
                "excludes": [],
                "max_tokens": null,
                "max_chars": null
              },
              "end": "</think>"
            },
            {
              "type": "triggered_tags",
              "triggers": [
                "<tool_call>"
              ],
              "tags": [
                {
                  "type": "tag",
                  "begin": "<tool_call>get_weather",
                  "content": {
                    "type": "json_schema",
                    "json_schema": {
                      "type": "object",
                      "properties": {
                        "location": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "location"
                      ]
                    },
                    "style": "glm_xml",
                    "any_order": false,
                    "max_whitespace_cnt": null,
                    "excludes": []
                  },
                  "end": "</tool_call>"
                },
                {
                  "type": "tag",
                  "begin": "<tool_call>add",
                  "content": {
                    "type": "json_schema",
                    "json_schema": {
                      "type": "object",
                      "properties": {
                        "y": {
                          "type": "number"
                        },
                        "x": {
                          "type": "number"
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "y",
                        "x",
                        "items"
                      ]
                    },
                    "style": "glm_xml",
                    "any_order": false,
                    "max_whitespace_cnt": null,
                    "excludes": []
                  },
                  "end": "</tool_call>"
                }
              ],
              "at_least_one": false,
              "stop_after_first": false,
              "excludes": [
                "<think>",
                "</think>",
                "</tool_call>",
                "<arg_key>",
                "</arg_key>",
                "<arg_value>",
                "</arg_value>"
              ]
            }
          ]
        },
        "coverage": "from_token_zero"
      },
      "completion": "Need call the weather and add tools.</think>I will call the tools.<tool_call>get_weather<arg_key>location</arg_key><arg_value>Shanghai</arg_value></tool_call><tool_call>add<arg_key>y</arg_key><arg_value>1.0</arg_value><arg_key>x</arg_key><arg_value>2</arg_value><arg_key>items</arg_key><arg_value>[\"left\", \"right\"]</arg_value></tool_call>",
      "generation_token_ids": [23591, 1618, 279, 9101, 323, 912, 7375, 13, 154842, 40, 686, 1618, 279, 7375, 13, 154843, 455, 68852, 154847, 2527, 154848, 154849, 2016, 29953, 154850, 154844, 154843, 718, 154847, 88, 154848, 154849, 16, 13, 15, 154850, 154847, 87, 154848, 154849, 17, 154850, 154847, 3615, 154848, 154849, 1183, 2359, 497, 330, 1291, 1341, 154850, 154844, 154820]
    },
    "required": {
      "grammar": {
        "format": {
          "type": "sequence",
          "elements": [
            {
              "type": "tag",
              "begin": "",
              "content": {
                "type": "any_text",
                "excludes": [],
                "max_tokens": null,
                "max_chars": null
              },
              "end": "</think>"
            },
            {
              "type": "triggered_tags",
              "triggers": [
                "<tool_call>"
              ],
              "tags": [
                {
                  "type": "tag",
                  "begin": "<tool_call>get_weather",
                  "content": {
                    "type": "json_schema",
                    "json_schema": {
                      "type": "object",
                      "properties": {
                        "location": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "location"
                      ]
                    },
                    "style": "glm_xml",
                    "any_order": false,
                    "max_whitespace_cnt": null,
                    "excludes": []
                  },
                  "end": "</tool_call>"
                },
                {
                  "type": "tag",
                  "begin": "<tool_call>add",
                  "content": {
                    "type": "json_schema",
                    "json_schema": {
                      "type": "object",
                      "properties": {
                        "y": {
                          "type": "number"
                        },
                        "x": {
                          "type": "number"
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "y",
                        "x",
                        "items"
                      ]
                    },
                    "style": "glm_xml",
                    "any_order": false,
                    "max_whitespace_cnt": null,
                    "excludes": []
                  },
                  "end": "</tool_call>"
                }
              ],
              "at_least_one": true,
              "stop_after_first": false,
              "excludes": [
                "<think>",
                "</think>",
                "</tool_call>",
                "<arg_key>",
                "</arg_key>",
                "<arg_value>",
                "</arg_value>"
              ]
            }
          ]
        },
        "coverage": "from_token_zero"
      },
      "completion": "Need call the weather and add tools.</think><tool_call>get_weather<arg_key>location</arg_key><arg_value>Shanghai</arg_value></tool_call><tool_call>add<arg_key>y</arg_key><arg_value>1.0</arg_value><arg_key>x</arg_key><arg_value>2</arg_value><arg_key>items</arg_key><arg_value>[\"left\", \"right\"]</arg_value></tool_call>",
      "generation_token_ids": [23591, 1618, 279, 9101, 323, 912, 7375, 13, 154842, 154843, 455, 68852, 154847, 2527, 154848, 154849, 2016, 29953, 154850, 154844, 154843, 718, 154847, 88, 154848, 154849, 16, 13, 15, 154850, 154847, 87, 154848, 154849, 17, 154850, 154847, 3615, 154848, 154849, 1183, 2359, 497, 330, 1291, 1341, 154850, 154844, 154820]
    },
    "named": {
      "grammar": {
        "format": {
          "type": "sequence",
          "elements": [
            {
              "type": "tag",
              "begin": "",
              "content": {
                "type": "any_text",
                "excludes": [],
                "max_tokens": null,
                "max_chars": null
              },
              "end": "</think>"
            },
            {
              "type": "tag",
              "begin": "<tool_call>get_weather",
              "content": {
                "type": "json_schema",
                "json_schema": {
                  "type": "object",
                  "properties": {
                    "location": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "location"
                  ]
                },
                "style": "glm_xml",
                "any_order": false,
                "max_whitespace_cnt": null,
                "excludes": []
              },
              "end": "</tool_call>"
            }
          ]
        },
        "coverage": "from_token_zero"
      },
      "completion": "Need call the weather and add tools.</think><tool_call>get_weather<arg_key>location</arg_key><arg_value>Shanghai</arg_value></tool_call>",
      "generation_token_ids": [23591, 1618, 279, 9101, 323, 912, 7375, 13, 154842, 154843, 455, 68852, 154847, 2527, 154848, 154849, 2016, 29953, 154850, 154844, 154820]
    }
  }
}
