feat: support structured Responses output in native vLLM #592
All Vouch review confidence checks passed
Residual risk 0.28 = Change Risk (0.48) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 398 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.358
Shallow Review Depth
shallow_review_depth
0.344
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #592"
general
weight: 0.35
franciscojavierarceo
Summary
The native runner from #382 returns HTTP 400 for both Responses JSON formats, including ordinary OpenAI SDK
responses.parsecalls. This extends #231 to native inference by passing the request's format to vLLM's constrained decoder. Advances #362 and #314.Changes by API
| API | What changed |
| --- | --- |
| Responses (
/v1/responses, native mode) | Supportsjson_objectand orderedjson_schema. A stored answer can be continued in plain text or with a new schema. Invalid schemas, unresolved local references, and unsupported decoder constraints return 400 ontext.formatduring validation. |Flow
Test Plan
mainaccepted plain text and rejected both JSON formats. The updated native runner and HTTP backend produced the same ordered values over JSON, SSE and WebSocket. Checked retrieval, changing and clearing the format on continuation, and the OpenAI Python SDK 3.60.0. The native runner also completed a client function call followed by a schema-constrained answer and parsed a nested Pydantic model with a local$ref. A one-token limit returnedincompleteover JSON and SSE. Used vLLM Metal 0.34.0, XGrammar 0.2.8 and the pinned Rust frontendf2f9edca.structured_outputsuite runs the native frontend, shared HTTP handlers and SQLite. It checks the decoder grammar, rendered history, returned format, ordered output, SSE deltas and stored tool-call identity. The existing OpenAIedge-tools-settingsrecording supplies the answer schema, markers and tool-continuation contract. OpenAI reference recordingcargo test --workspace --locked --no-fail-faston macOS finished with 3,298 passed, 2 failed and 26 ignored. The two Messages unreachable-upstream tests also return 504 on untouched8ebe927d, where they expect 502. The opt-in live native test passed when run explicitly. All 14agentic-vllmtests, workspace Clippy with warnings denied, formatting, pre-commit and the strict documentation build passed. The macOS wheel passed its 134 Python tests. Ubuntu workspace CI