| 1 | # SPDX-License-Identifier: Apache-2.0 |
| 2 | # SPDX-FileCopyrightText: Copyright contributors to the vLLM project |
| 3 | """Streaming parser engine framework for tool call and reasoning extraction. |
| 4 | |
| 5 | Instead of hand-rolling a parser for every model's tool-call / reasoning |
| 6 | format, each format is declared as a ParserEngineConfig (terminals, |
| 7 | states, and transitions) and a shared incremental engine handles |
| 8 | streaming, ambiguity buffering, token-ID mapping, and delta computation. |
| 9 | """ |
| 10 | |
| 11 | from vllm.parser.engine.events import EventType, SemanticEvent |
| 12 | |
| 13 | __all__ = [ |
| 14 | "EventType", |
| 15 | "SemanticEvent", |
| 16 | ] |