Skip to content

Releases: microsoft/semantic-kernel

python-0.9.8b1

09 May 23:22
7b4aba4
Compare
Choose a tag to compare

Notable Changes

  • In our ongoing effort to achieve parity with dotnet, we have phased out the Basic, Action, and Stepwise planners. This update leaves the Sequential and Function Calling Stepwise planners as the available options.
  • We’ve made strides in aligning the Python tool call behavior with that of dotnet. You can now adjust the tool call behavior directly in the prompt execution settings, eliminating the need to specify tool_choice = "auto", tools = get_tool_call_object(...), and so on. For more details, refer to the FunctionCallBehavior implementation. There are several methods to adjust the tool call behavior, such as:
filter = {"excluded_plugins": ["ChatBot"]}
req_settings.function_call_behavior = FunctionCallBehavior.EnableFunctions(auto_invoke=True, filters=filter)

or

req_settings.function_call_behavior = FunctionCallBehavior.AutoInvokeKernelFunctions()

Our Auto Function Calling concept samples implement this new behavior.

What's Changed

  • Python: Bump werkzeug from 3.0.2 to 3.0.3 in /python by @dependabot in #6131
  • Python: Retire planners that are not supported in dotnet. by @moonbox3 in #6141
  • Python: Bump openai from 1.23.2 to 1.26.0 in /python by @dependabot in #6140
  • Python: Bump pytest from 8.1.1 to 8.2.0 in /python by @dependabot in #6050
  • Python: Bump tqdm from 4.66.2 to 4.66.3 in /python by @dependabot in #6120
  • Python: Bump jinja2 from 3.1.3 to 3.1.4 in /python by @dependabot in #6132
  • Python: update ToolCallBehavior and rename to FunctionCallBehavior to match dotnet and extended capabilities by @eavanvalkenburg in #5919
  • Python: Bump ruff from 0.4.1 to 0.4.3 in /python by @dependabot in #6138
  • Python: Check for other services registered before throwing service not found. by @moonbox3 in #6149
  • Python: Fixes to Python getting_started notebooks by @jordanbean-msft in #6147
  • Python: updating pinecone client by @LazaroHurtado in #6021
  • Python: Use a Jinja2 sandboxed env to prevent running unsafe code. by @moonbox3 in #6163
  • Python: Add ACA Python Sessions (Code Interpreter) Core Plugin, samples, and tests by @moonbox3 in #6158
  • Python: Bump Python version to 0.9.8b1 for a release. by @moonbox3 in #6178

New Contributors

Full Changelog: python-0.9.7b1...python-0.9.8b1

dotnet-1.11.0

08 May 23:06
4c7fcb1
Compare
Choose a tag to compare

Changes:

  • 4c7fcb1 .Net: Version 1.11.0 (#6168)
  • 2ae9dc7 .Net: Merge the Prompty feature branch to main (#6097)
  • 431d18b .Net: Add request uri and payload to RestApiOperationResponse (#6082) [ #6071 ]
  • 0b43152 .Net: Example of Semantic Caching with Filters (#6151)
  • 8c82204 .Net: Example of retry logic using Filters (#6152)
  • 26ad632 .Net: Added function invocation approval demo app (#6109)
  • 3e19114 .Net: Samples - Fix array access in Handlebars syntax (#6127)
See More

This list of changes was auto generated.

python-0.9.7b1

06 May 13:33
6ce7e1e
Compare
Choose a tag to compare

Notable Changes

  • Python Version Support Update: Dropping Support for Python 3.8 and 3.9
    • Python 3.8 will reach its end-of-life in October 2024. As a result, we will no longer support Python 3.8 and 3.9.
      • Reasoning: Python 3.10 introduces a new typing system crucial for KernelFunctionFromMethod. Maintaining backward compatibility with older versions adds significant complexity and limits our ability to innovate. Thus, support for Python 3.9 will also be discontinued.
  • Enhanced Function Calling Support for ChatMessages. You may view this ADR for more information.
    • New Content Types:
      • FunctionCallContent
      • FunctionResultContent
    • Chat Role Changes:
      • ChatRole has been renamed to AuthorRole.
    • Content Adaptation:
      • ChatMessageContent now supports one or more content types, such as TextContent and the new function calling content types.
    • OpenAI Classes Changes:
      • Removed OpenAIChatMessageContent and AzureChatMessageContent.
      • Enhanced the OpenAI classes to create and parse FunctionCallContent and other new content types.
  • Improved Sample Organization: Reorganized Sample Folders:
    • Moved all notebooks to samples/getting_started.
    • Reorganized previous kernel syntax examples by topic in samples/concepts.
    • New Prompt Template Samples Folder:
      • Renamed the previous root-level prompt template samples in samples/plugins to a root-level folder called prompt_template_samples.

What's Changed

New Contributors

Full Changelog: python-0.9.6b1...python-0.9.7b1

dotnet-1.10.0

29 Apr 18:17
32b3bc3
Compare
Choose a tag to compare

Changes:

See More
  • 5ba79ee .Net: Use automatic platform detection for unit tests (#5996)
  • 373083b .Net: Azure CosmosDB Mongo vCore Memory Store Integration (#5228)
  • f82034b .Net - Add Coverage for Agent Projects (#5982)
  • 849ae32 .Net: Flaky integration test disabled. (#5992)
  • 1a48974 .Net Samples Restructuring - Phase 1 (#5888)

This list of changes was auto generated.

dotnet-1.9.0

24 Apr 12:21
de0e566
Compare
Choose a tag to compare

Changes:

See More
  • ac9ed03 .Net: Cleanup tokenizer examples (#5938)
  • 1e60397 .Net: Update the package icon to use the Semantic Kernel logo (#5951)
  • c84258a .Net: Moved Onnx tests to integration tests (#5956)

This list of changes was auto generated.

dotnet-1.8.0

22 Apr 12:19
0c40031
Compare
Choose a tag to compare

Changes:

  • 0c40031 .Net: Bump to version 1.8.0 (#5929)
  • b83c9bd .Net: Fixes HuggingFace text generation support (#5941) [ #5940 ]
  • bf5f917 .Net: Add support for making open api operation metadata and extension metadata available at function invocation time (#5911)
  • 917b790 .Net: Update sample to show how to use enum[] with function calling (#5928) [ #5451 ]
  • 41651ff .Net: ADR for function call content model classes (#5696)
  • c8ce249 .Net: Function call content types (#5800)
  • c72080d .Net - Introducing AgentGroupChat (Step #2) (#5725)
See More
  • 76348d1 .Net: Deleting Planners.Core source which contained pre-V1 planners. (#5875)
  • 67233e5 .Net: Fix KustoMemoryStore reading Timestamp column data type (#5600)
  • d6378f7 .Net: Fix ignoring non-default search index name (#5843) [ #4213 ]
  • 9d0f631 .Net: During OpenAPI import use payload parameter if specified (#5874) [ #5870 ]
  • beef63c .Net Enable Usage of Custom Compatible Chat Message API Endpoints with OpenAI Connector + Examples (#4753)
  • e416946 .Net Hugging Face TGI Chat Completion Message API Support (#5785) [ #5403 ]
  • a27a46d .Net Google Connector - Enable Strong Name Signing (#5868)
  • 71c16e1 .Net: Update more code with C# 11/12 features (#5852)
  • 62cc40d .Net - Fix Experimental Agent Type Handling for Tool Calling (#5847)
  • 1626f7a .Net: Extend plugins sample to demonstrate the use of enums (#5850)
  • 2e3d8cf .Net: Fix a few straggler warnings from recently updated analyzers (#5838)
  • 2e54c70 community office hours (#5840)
  • 8d0662e .Net: Use C# 11/12 features throughout repo (#4387)
  • cbbaa59 .Net - Agents IReadonlyList instead of IEnumerable (Step #ANY) (#5832)
  • ebd21fa .Net - Voilà: Agent Framework (#5705)
  • e74c742 .Net: Fix handling of generic return types in CreateFromMethod (#5821)
  • f2e52bd .Net: Upgrade projects from net6.0 to net8.0 and adjust LangVersion to 12 (#5819)
  • ead5b63 .Net: Add new kernel syntax sample which shows function calling planner with RAG (#5817) [ #4679 ]
  • 71221a6 .Net: Focus CI on .NET 8 SDK (#5802)
  • de20abe .Net: Bump Handlebars.Net.Helpers from 2.4.1.4 to 2.4.1.5 in /dotnet (#5807) [ #88 ]
  • 15004f4 .Net: Bump DuckDB.NET.Data.Full from 0.10.1 to 0.10.1.2 in /dotnet (#5808)
  • 9481b2a .Net: Bump xunit.runner.visualstudio from 2.5.6 to 2.5.7 in /dotnet (#5810) [ xunit/xunit#1655, #399, xunit/xunit#1651 ]
  • 0a9e74a .Net: Remove JsonSchema.Net dependency from Microsoft.SemanticKernel.Abstractions/Core (#5635)

This list of changes was auto generated.

python-0.9.6b1

16 Apr 13:46
66a3b5b
Compare
Choose a tag to compare

Notable Changes

  • We've redesigned how plugins and functions integrate with the kernel to simplify their addition and minimize confusion. Now, use kernel.add_plugin() or kernel.add_plugins() to add plugins and kernel.add_function() or kernel.add_functions for functions. You can add an OpenAPI plugin via kernel.add_plugin_from_openapi() and an OpenAI plugin via kernel.add_plugin_from_openai(). You can add a plugin in three ways:
    • Directly as a KernelPlugin instance—other parameters will be ignored.
    • As a custom class with methods decorated by kernel_function.
    • As a dictionary where one or more methods are decorated with kernel_function.
    • See the add_plugin and add_function kernel code for implementation details.
  • To enhance load performance, only the Kernel is loaded in the root init, with all other components moved to sub-packages. SK imports use full paths for clarity and modularity. Init files are generally positioned at the root+1 level (e.g., semantic_kernel.functions) to provide developers with necessary components, except in the connectors and utils directories where deeper navigation is required. For instance, OpenAI and Azure OpenAI specific functionalities are accessed via from semantic_kernel.connectors.ai.open_ai import .... In contrast, sample code employs abbreviated paths to streamline the import process.

What's Changed

New Contributors

Full Changelog: python-0.9.5b1...python-0.9.6b1

dotnet-1.7.1

05 Apr 13:18
760f0f8
Compare
Choose a tag to compare

Changes:

  • 760f0f8 .Net: Bump version to 1.7.1 (#5791)
  • e6b3633 .Net: Update stepwise planner to accept optional chatHistory to resume execution as needed. (#5718)
  • 04994cd .Net: Move Gemini models to InternalModels directory (#5752) [ #5676 ]
  • 9d52fef .Net: Added better formatting for responses from Bing Searches & Ability to use custom Bing Search endpoint. (#5673)
  • d050f8d .Net: Baseline version 1.7.0 (#5764)

This list of changes was auto generated.

dotnet-1.7.0

03 Apr 18:11
3490e2a
Compare
Choose a tag to compare

Changes:

See More

This list of changes was auto generated.

python-0.9.5b1

01 Apr 16:52
e563920
Compare
Choose a tag to compare

What's Changed

  • Python: updated openai chat sample by @eavanvalkenburg in #5596
  • Python: add additional handlebars test, to make sure built-in helpers run by @eavanvalkenburg in #5594
  • Python: Fix Broken links by @justindhillon in #5393
  • Python: fixed the broken link by @01011011 in #5606
  • Python: Remove jinja2 built in helpers from custom helpers. Introduce messages custom func helper. by @moonbox3 in #5617
  • Python: Allow function calling stepwise planner to use AzureOpenAI chat service by @moonbox3 in #5618
  • Python: Fix - Action Planner breaking when parameters are not explicitly given in the ask by @ArfiArfath21 in #5590
  • Bump danielpalme/ReportGenerator-GitHub-Action from 5.2.2 to 5.2.4 by @dependabot in #5645
  • Python: small fix for running prompt without any execution settings by @eavanvalkenburg in #5687
  • Python: Enhance Chat Message Content creation and parsing by @eavanvalkenburg in #5520
  • Python: mypy clears kernel.py by @eavanvalkenburg in #5689
  • Python: Introduce operations to handle OpenAI plugins, improve OpenAPI plugins, and allow for auth by @moonbox3 in #5695
  • Python: Bump versions to 0.9.5b1 for release. by @moonbox3 in #5713
  • Python: fixing README.md example in python by @jadry92 in #5708
  • Python: Honor the function calling options if configured. by @moonbox3 in #5701

New Contributors

Full Changelog: python-0.9.4b1...python-0.9.5b1