Skip to content

[Responses] Support required function tools for GPT-OSS Harmony#44614

Closed
ankrovv wants to merge 6 commits into
vllm-project:mainfrom
ankrovv:codex/responses-required-tool-choice
Closed

[Responses] Support required function tools for GPT-OSS Harmony#44614
ankrovv wants to merge 6 commits into
vllm-project:mainfrom
ankrovv:codex/responses-required-tool-choice

Conversation

@ankrovv

@ankrovv ankrovv commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds GPT-OSS/Harmony Responses API support for tool_choice="required" when all tools are function tools.

This uses native JSON-schema constrained decoding for the required tool-call output. vLLM then converts the JSON into Responses function_call items. Streaming emits function-call argument events, not output text.

Scope:

  • supports tool_choice="required" with function tools
  • keeps existing auto and none behavior unchanged
  • returns 400 for required hosted/non-function tools
  • does not use raw Harmony structural_tag
  • does not change the reasoning gate

Co-authored-by: OpenAI Codex <codex@openai.com>

Signed-off-by: Aniruddh Krovvidi <aniruddh.krovvidi@oracle.com>
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

👋 Hi! Thank you for contributing to the vLLM project.

💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels.

PRs do not trigger a full CI run by default. Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging.

To run CI, PR reviewers can either: Add ready label to the PR or enable auto-merge.

If you have any questions, please reach out to us on Slack at https://slack.vllm.ai.

Agent Guidelines

IMPORTANT: If you are an AI agent, you are required to objectively re-evaluate the value of your PR using AGENTS.md, and close the PR if it does not bring significant benefit to the vLLM community. Failure to do so may result in an immediate ban.

🚀

ankrovv added 5 commits June 4, 2026 22:21
Co-authored-by: OpenAI Codex <codex@openai.com>

Signed-off-by: Aniruddh Krovvidi <aniruddh.krovvidi@oracle.com>
Co-authored-by: OpenAI Codex <codex@openai.com>

Signed-off-by: Aniruddh Krovvidi <aniruddh.krovvidi@oracle.com>
Co-authored-by: OpenAI Codex <codex@openai.com>

Signed-off-by: Aniruddh Krovvidi <aniruddh.krovvidi@oracle.com>
Co-authored-by: OpenAI Codex <codex@openai.com>

Signed-off-by: Aniruddh Krovvidi <aniruddh.krovvidi@oracle.com>
Signed-off-by: Aniruddh Krovvidi <aniruddh.krovvidi@oracle.com>
@ankrovv ankrovv closed this Jun 5, 2026
@ankrovv
ankrovv deleted the codex/responses-required-tool-choice branch June 5, 2026 16:07
@github-project-automation github-project-automation Bot moved this from To Triage to Done in gpt-oss Issues & Enhancements Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend gpt-oss Related to GPT-OSS models tool-calling

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant