Repository navigation
Add id field to tool call responses API - #24882
Merged
Merged
Conversation
ngxson
approved these changes
Jun 22, 2026
ServeurpersoCom
approved these changes
Jun 22, 2026
adrianhoehne
pushed a commit
to adrianhoehne/llama.cpp
that referenced
this pull request
Jul 5, 2026
zommiommy
pushed a commit
to zommiommy/llama.cpp
that referenced
this pull request
Aug 18, 2026
zbrad
pushed a commit
to zbrad/llama.cpp
that referenced
this pull request
Sep 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Add the missing
idfield to Responses APIfunction_calloutput items.The OpenAI Responses API function-calling examples include both an item
idand acall_idonfunction_calloutput objects. Some clients, such as Rig 0.39, require the item-levelidfield when deserializing/v1/responsestool calls.This change makes llama-server’s
/v1/responsesfunction-call output more compatible with the documented Responses API shape by emitting:id: function-call output item idcall_id: tool call correlation idAdditional information
Tested locally with Qwen3-Coder-Next GGUF through
llama-server /v1/responses. Before this change, Rig 0.39 failed withmissing field idwhen parsing tool calls. After adding the item-levelid, Rig successfully executed the tool call and returned the final answer.Reference: OpenAI function calling guide:
https://developers.openai.com/api/docs/guides/function-calling#handling-function-calls
Requirements