Skip to content

fix(google): preserve FunctionTool schemas for text API - #7174

Open
jstar0 wants to merge 1 commit into
livekit:mainfrom
jstar0:fix/7170-google-function-tool-schema
Open

jstar0 wants to merge 1 commit into
livekit:mainfrom
jstar0:fix/7170-google-function-tool-schema

Conversation

@jstar0

@jstar0 jstar0 commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #7170.

Google text requests now emit a FunctionTool's complete JSON Schema through parameters_json_schema, preserving additionalProperties for free-form object parameters. Google Live requests continue to use the existing simplified parameters representation because that API does not support parameters_json_schema.

Verification

  • uv run --frozen pytest tests/test_tools.py tests/test_schema_gemini.py -q — 119 passed
  • uv run --frozen ruff check livekit-agents/livekit/agents/llm/_provider_format/google.py tests/test_tools.py
  • uv run --frozen ruff format --check livekit-agents/livekit/agents/llm/_provider_format/google.py tests/test_tools.py
  • git diff --check
  • create_tools_config validation confirms the generated FunctionDeclaration retains the nested additionalProperties schema

@jstar0
jstar0 requested a review from a team as a code owner September 8, 2026 15:25

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant