microsoft / microsoft/semantic-kernel
.Net: New Feature: IncludeThoughts for Google Connector
Nobody has claimed this yet.
- 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.
This parameter is missing in Microsoft.SemanticKernel.Connectors.Google.GeminiThinkingConfig
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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