Skip to content

New Feature: IncludeThoughts for Google Connector #13360

@roldengarm

Description

@roldengarm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions