plugins/phonic: add configsForTools for per-tool behavior overrides - #2183
Open
arunwpm-work wants to merge 7 commits into
Open
plugins/phonic: add configsForTools for per-tool behavior overrides#2183arunwpm-work wants to merge 7 commits into
arunwpm-work wants to merge 7 commits into
Conversation
…ll_after_speech)
Replace the forbidSpeechAfterToolCall: string[] option with configsForTools:
PhonicToolConfig[] — one object per tool ({ name, ... }) carrying up to the full
behavior set (wait_for_speech_before_tool_call, forbid_speech_after_tool_call,
forbid_tool_call_after_speech, allow_tool_chaining); omitted fields fall back to the
plugin defaults. The plugin forwards each object as the tool's Phonic tool_config
(passthrough, snake_case keys) and reads forbid_speech_after_tool_call for its own
assistant-turn logic.
Adds forbid_tool_call_after_speech (echo drops the tool call if the agent spoke that
turn). Supersedes the un-PR'd arun/phonic-forbid-speech-after-tool-call branch.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add the remaining per-tool field (require_speech_before_tool_call) and move the per-field behavior docs out of inline comments/JSDoc into the plugin README. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…configurable Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…nto arun/phonic-configs-for-tools-upstream # Conflicts: # plugins/phonic/README.md # plugins/phonic/src/realtime/realtime_model.ts
🦋 Changeset detectedLatest commit: d90c3d3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 39 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
arunwpm-work
marked this pull request as ready for review
July 31, 2026 00:32
Re-add the removed forbidSpeechAfterToolCall: string[] option for backwards compatibility. It logs a deprecation warning and folds each listed tool into configsForTools (an explicit configsForTools entry wins). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jul 31, 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.
What
Adds
configsForToolsto the Phonic realtime model — per-tool behavior overrides forwarded to Phonic's tool config. One entry per tool (keyed byname); each may setrequire_speech_before_tool_call,forbid_speech_after_tool_call, andforbid_tool_call_after_speech. Omitted fields fall back to the plugin defaults; tools with no entry are unchanged.wait_for_speech_before_tool_call(on) andallow_tool_chaining(off) remain fixed by the plugin.This generalizes the existing
forbidSpeechAfterToolCall: string[]option into a single per-tool config object, and addsforbid_tool_call_after_speech(drop a tool call if the agent already spoke that turn). See the plugin README for the field reference. Changeset included.