Skip to content

fix: Annotate response type as None for transfer_to_agent tool and set empty Schema as response schema when tool has no response annotation #2203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 1, 2025

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Jul 28, 2025

fix: Annotate response type as None for transfer_to_agent tool and set empty Schema as response schema when tool has no response annotation

  1. if a function has no return type annotation, we should treat it as returning any type
  2. we use empty schema (with type as None) to indicate no type constraints and this is already supported by model server

@copybara-service copybara-service bot added the google-contributor [Bot] This PR is created by Google label Jul 28, 2025
@copybara-service copybara-service bot force-pushed the copybara/787802685 branch 3 times, most recently from 7468f77 to 90c102d Compare August 1, 2025 17:14
…t empty Schema as response schema when tool has no response annotation

1. if a function has no return type annotation, we should treat it as returning any type
2. we use empty schema (with `type` as None) to indicate no type constraints and this is already supported by model server

PiperOrigin-RevId: 789808104
@copybara-service copybara-service bot merged commit 86a4487 into main Aug 1, 2025
@copybara-service copybara-service bot deleted the copybara/787802685 branch August 1, 2025 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
google-contributor [Bot] This PR is created by Google
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant