Skip to content

.Net: Bug: Unsupported content type. FunctionCallContent is not supported by Gemini. #11812

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

Open
donatas-xyz opened this issue Apr 30, 2025 · 0 comments
Assignees
Labels
bug Something isn't working .NET Issue or Pull requests regarding .NET code

Comments

@donatas-xyz
Copy link

Describe the bug
Unsupported content type. FunctionCallContent is not supported by Gemini. error when calling plugin functions after upgrading from Microsoft.SemanticKernel.Connectors.Google 1.47.0-alpha to 1.48.0-alpha.

To Reproduce

[KernelFunction]
[Description("Returns the current date.")]
public async Task<string> CurrentDate()
{
    return await Task.FromResult(DateTime.Now.ToLongDateString());
}
Gemini, what's today's date?

Expected behavior
After reverting back to 1.47.0-alpha

Today is 30 April 2025.

Platform

  • Language: C#, .NET 9
  • Source:Microsoft.SemanticKernel.Connectors.Google 1.48.0-alpha
  • AI model: gemini-2.0-flash
  • IDE: Visual Studio
  • OS: Windows 11
  • Semantic Kernel: 1.48.0

Additional context
Just quickly reporting. I haven't checked for breaking changes or done any other investigation other than a quick Google search.

@donatas-xyz donatas-xyz added the bug Something isn't working label Apr 30, 2025
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code triage labels Apr 30, 2025
@github-actions github-actions bot changed the title Bug: Unsupported content type. FunctionCallContent is not supported by Gemini. .Net: Bug: Unsupported content type. FunctionCallContent is not supported by Gemini. Apr 30, 2025
@RogerBarreto RogerBarreto moved this from Bug to Sprint: Planned in Semantic Kernel May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working .NET Issue or Pull requests regarding .NET code
Projects
Status: Sprint: Planned
Development

No branches or pull requests

3 participants