feat(phonic): export LiveKit tools for the Responses API - #7112
Merged
tinalenguyen merged 3 commits intoSep 4, 2026
Merged
Conversation
Comment on lines
+126
to
+129
| return [ | ||
| _to_phonic_tool_definition(tool_schema) | ||
| for tool_schema in tool_context.parse_function_tools("openai", strict=True) | ||
| ] |
Contributor
There was a problem hiding this comment.
Contributor
Author
There was a problem hiding this comment.
that's fine, we should let Phonic do the validation instead of doing validation in this helper
tinalenguyen
approved these changes
Sep 4, 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.
Motivation
LiveKit's generation APIs operate within an active agent or realtime session.
Phonic's Responses API supports a complementary use case: generating the next
assistant turn from supplied conversation history without starting a live
session.
From our understanding, LiveKit does not currently expose an equivalent
stateless generation endpoint. Applications using this capability should still
be able to reuse the tools already defined in their LiveKit
ToolContext,rather than maintaining a second set of tool schemas.
Change
Add
to_phonic_tool_definitions(), a small adapter that converts a LiveKitToolContextinto the schema-only definitions accepted by Phonic's ResponsesAPI.
The helper:
for executing returned tool calls
This adds support for stateless generation without introducing another
generation or tool-execution path inside LiveKit.
Usage
Validation