Skip to content

chore: share Messages tool-round decisions - #468

Merged
maralbahari merged 4 commits into
vllm-project:mainfrom
skyloevil:codex/messages-round-decisions
Oct 27, 2026
Merged

maralbahari merged 4 commits into
vllm-project:mainfrom
skyloevil:codex/messages-round-decisions

Conversation

@skyloevil

@skyloevil skyloevil commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Share JSON/SSE round decisions (continue gateway execution, return client calls, finish, and client-call end_turn correction) and completed MessagesToolCall data with typed argument errors. Parse streamed arguments once for history and dispatch while keeping malformed input non-executable.

Rebased on current main (a7dc7b5). Reuse its registry bindings and GatewaySchedulerPolicy (#437), preserving model-order budget admission, permit acquisition/concurrency limits, timeout after permits, tool-stage timing/error status, and cancellation. Existing ingestion validation, live delivery, opaque history and usage remain intact.

Follow-up to #431, tracked by #418 (split plan). MCP-specific projection and pending-call continuation remain in #425. Kept as draft for review of this independent refactor.

Test Plan

  • 14 shared synthetic scenarios on JSON and SSE cover named/client/mixed/truncated rounds, stop reasons, escaped/Unicode arguments, history and usage.
  • Messages unit tests: 71 passed, including all 8 existing scheduling/lifecycle tests. JSON/SSE, web-fetch and execution-trace integration targets: 86 passed, including live delivery, cancellation, invalid streams/arguments and typed tool stages.
  • cargo test --workspace --locked --no-fail-fast: 2,723 passed, 0 failed, 18 ignored; includes existing HTTP budget/ownership tests and cassette replays.
  • cargo clippy --workspace --all-targets --locked -- -D warnings, formatting, diff checks and all pre-commit 4.4.0 hooks passed.

The first sandboxed unit run could not bind localhost for 4 mock-server tests; the rerun with local-port access passed all 71. No new recordings were added. Feature-enabled Linux and PostgreSQL coverage runs in repository CI.

@maralbahari maralbahari left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clean work.

@maralbahari
maralbahari merged commit 9e612e8 into vllm-project:main Oct 27, 2026
15 checks passed
haoshan98 added a commit to EmbeddedLLM/agentic-api that referenced this pull request Oct 29, 2026
Brings in vllm-project#468 (shared Messages tool-round decisions) and vllm-project#473 (trace
context and baggage propagation to operator-configured MCP servers).
No textual conflicts. vllm-project#473's mcp_trace_context_test builds an
McpServerEntry::Http literal, which now also sets the description and
defer_loading fields this branch adds.

Signed-off-by: haoshan98 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants