Repository navigation
docs: fix tool-calls example payload shape on the Server URL events page - #1320
Merged
stephenvapiai merged 2 commits intoOct 14, 2026
Merged
stephenvapiai merged 2 commits into
stephenvapiai merged 2 commits into
Conversation
toolCallList entries are { id, type, function: { name, arguments } } and
toolWithToolCallList entries carry type, function and toolCall, matching
the ToolCall and FunctionToolWithToolCall schemas and the custom tools page.
The assistant example now uses model.tools; model.functions is not in the
API schema.
chiranjeet-vapi
marked this pull request as ready for review
October 14, 2026 16:41
Lightsage docs evalsWaiting for the staging docs URL before running evals. Lightsage will start the selected PR evals automatically when GitHub reports a successful docs deployment for this PR. This usually happens within 15 minutes. Commit: |
stephenvapiai
self-requested a review
October 14, 2026 16:50
stephenvapiai
approved these changes
Oct 14, 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.
Description
tool-callsexample onfern/server-url/events.mdxshowstoolCallListentries as{ id, name, parameters }andtoolWithToolCallListentries as{ name, toolCall: { id, parameters } }. Neither matches the API schema orfern/tools/custom-tools.mdx.toolCallListentries are now{ id, type: "function", function: { name, arguments } };toolWithToolCallListentries carrytype,functionandtoolCall.model.functions, which is not a property of any model schema; it now usesmodel.toolswithtype: "function".Evidence
Live spec (
https://api.vapi.ai/api-json, 2026-10-14):Testing Steps
fern check(pinned 5.151.1) passes locally