microsoft / microsoft/semantic-kernel

.Net: New Feature: IncludeThoughts for Google Connector

Open
#13,360 3 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

.NET triage
Dominant language
C#
Stars
28.6k
Forks
4.8k
Avg merge
14h 13m
Merged PRs (30d)
18

Description


name: IncludeThoughts for Google Connector
about: Add ability to get thoughts in response from Google Gemini models.


The official C# SDK for Google supports a parameter "IncludeThoughts" on the ThinkingConfig. Setting that to true, will return the thoughts in the response.

Image

This parameter is missing in Microsoft.SemanticKernel.Connectors.Google.GeminiThinkingConfig

Image

Additionally, I believe the response logic for (at least) streaming should be updated as well to indicate if a part is a thought or not. Right now, InnerContent is just a string, not a POCO object as I would expect.
See official docs here. It doesn't include C# in the docs, but it's definitely there.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Microsoft.SemanticKernel.Connectors.Google.GeminiThinkingConfig and trace how streaming responses represent parts and populate InnerContent. Read the linked Gemini thinking summaries documentation and compare the official C# SDK behavior. Done means IncludeThoughts is supported and responses, including streaming responses, indicate thought parts without breaking existing content handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
ai, api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.