Skip to content

python-0.9.6b1

Compare
Choose a tag to compare
@moonbox3 moonbox3 released this 16 Apr 13:46
· 588 commits to main since this release
66a3b5b

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