Skip to content

Conversation

rogerbarreto
Copy link
Member

Motivation

As demonstrated in the issue above, attempting to call Google Gemini using the ToolcallBehavior logic (current only one supported in this connector) an unexpected error was raising when sending a complex json schema structure from github MCP tooling, this bugfix removes non supported additionalParameters property sent into the schema for the API.

  • Additionally to the changes we added support for numeric and boolean parameters for function calling.
  • After this change the example in the Issue should work with ToolcallBehavior.

…+ IT updates + added support for numerical parameters
@rogerbarreto rogerbarreto self-assigned this Jun 4, 2025
@rogerbarreto rogerbarreto requested a review from a team as a code owner June 4, 2025 11:13
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel labels Jun 4, 2025
@rogerbarreto rogerbarreto added this pull request to the merge queue Jun 5, 2025
Merged via the queue into microsoft:main with commit e6565e5 Jun 5, 2025
19 checks passed
@rogerbarreto rogerbarreto deleted the issues/11629-google-chat-completion branch June 5, 2025 08:09
jcruzmot-te pushed a commit to thousandeyes/aia-semantic-kernel that referenced this pull request Sep 15, 2025
…icrosoft#12365)

# Motivation

- Fixes microsoft#11629 

As demonstrated in the issue above, attempting to call Google Gemini
using the ToolcallBehavior logic (current only one supported in this
connector) an unexpected error was raising when sending a complex json
schema structure from github MCP tooling, this bugfix removes non
supported `additionalParameters` property sent into the schema for the
API.

- Additionally to the changes we added support for numeric and boolean
parameters for function calling.
- After this change the example in the Issue should work with
`ToolcallBehavior`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kernel Issues or pull requests impacting the core kernel .NET Issue or Pull requests regarding .NET code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.Net: Bug: Sample fails after switching to AddGoogleAIGeminiChatCompletion
4 participants