Repository navigation
.Net: Add ThinkingLevel parameter to GeminiThinkingConfig for Gemini 3.0+ - #13396
Conversation
…kingBudget Co-authored-by: markwallace-microsoft <[email protected]>
|
Copilot, Don't obsolete the other property as it is still applicable for older models. Remove the added #pragma warning disable CS0618 added because of this. Keep as is all unit tests that were checking for the thinking budget, and additionally add the thinking level tests validating that either can be used and work as expected. Move/Rename concept test file to "dotnet/samples/Concepts/ChatCompletion/Google_GeminiChatCompletionWithThinking.cs" as this now contains both ways. |
…emove pragma warnings, rename sample file Co-authored-by: rogerbarreto <[email protected]>
Done in 20705e0:
|
|
Copilot I see you changed the PromptExecutionSettingsCloneWorksAsExpected test, please keep it or make it a theory where you check for both ThinkingBudget and ThinkingLevel Clone work as expected. |
…h ThinkingBudget and ThinkingLevel, restore Freeze test Co-authored-by: rogerbarreto <[email protected]>
Done in 6df9a1f - Converted |
…ion (microsoft#14715) ### Motivation and Context A full link-integrity scan of the repository's README files found 13 dead internal links in 4 files. The underlying sample files were deleted or moved by recent refactors (planner removal microsoft#12399, MEVD Preview 2 microsoft#11028, MsGraph V5 update microsoft#12962, and the Gemini thinking-budget sample rename in microsoft#13396), but the README entries still point at the old paths. ### Description - **dotnet/samples/Concepts/README.md** - `Google_GeminiChatCompletionWithThinkingBudget` -> renamed sample `Google_GeminiChatCompletionWithThinking` (renamed in microsoft#13396) - Removed the `VectorStore_DataIngestion_CustomMapper` entry (sample deleted in microsoft#11028, no replacement) - Removed the entire `Planners` section (all three samples deleted in microsoft#12399) - Removed `MsGraph_ContactsPlugin` / `MsGraph_DrivePlugin` / `MsGraph_TasksPlugin` entries (no longer present after the MsGraph V5 update in microsoft#12962) - Removed `WithFunctionCallingStepwisePlanner` entry (deleted together with the planners in microsoft#12399) - **dotnet/samples/Demos/OnnxSimpleRAG/README.md** - Vector Store abstractions link -> [Microsoft.Extensions.VectorData.Abstractions in dotnet/extensions](https://github.com/dotnet/extensions/tree/main/src/Libraries/Microsoft.Extensions.VectorData.Abstractions) (the `dotnet/src/VectorData/VectorData.Abstractions` README itself points there) - `InMemoryVectorStore` -> [CommunityToolkit/AI MEVD/src/InMemory/InMemoryVectorStore.cs](https://github.com/CommunityToolkit/AI/blob/main/MEVD/src/InMemory/InMemoryVectorStore.cs) (same pointer as `dotnet/src/VectorData/InMemory/README.md`) - **python/semantic_kernel/connectors/memory_stores/redis/README.md** - .NET README link -> `dotnet/src/VectorData/Redis/README.md` (current in-repo location, which forwards to the CommunityToolkit repository) - **python/samples/concepts/README.md** - Search section link -> `python/semantic_kernel/connectors/search.py` (the `connectors/search` directory no longer exists; search now lives in `search.py`) ### Verification All 5 new URLs were checked and return HTTP 200. All 13 removed/updated links were verified to return HTTP 404 against `main` before this change. Docs-only change: no code is touched, so builds and unit tests are unaffected.
Motivation and Context
Gemini 3.0 introduces a new
ThinkingLevelstring parameter with values: "none", "low", "medium", "high". The existingThinkingBudgetparameter remains valid for older Gemini 2.5 models.Fixes #11920
Description
ThinkingLevelproperty toGeminiThinkingConfigThinkingBudgetproperty as-is (still applicable for older Gemini 2.5 models)GeminiRequestThinkingConfigto serialize both propertiesThinkingLevelserialization and deserializationPromptExecutionSettingsCloneWorksAsExpectedto a Theory that tests bothThinkingBudgetandThinkingLevelclone work as expectedThinkingBudgetunit tests unchangedGoogle_GeminiChatCompletionWithThinking.csto demonstrate both APIsUsage:
Contribution Checklist
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.