diff --git a/python/samples/concepts/filtering/auto_function_invoke_filters.py b/python/samples/concepts/filtering/auto_function_invoke_filters.py index b1e055e9397d..008150af011d 100644 --- a/python/samples/concepts/filtering/auto_function_invoke_filters.py +++ b/python/samples/concepts/filtering/auto_function_invoke_filters.py @@ -1,7 +1,6 @@ # Copyright (c) Microsoft. All rights reserved. import asyncio -import os from semantic_kernel import Kernel from semantic_kernel.connectors.ai import FunctionChoiceBehavior @@ -29,10 +28,7 @@ # Note: the underlying gpt-35/gpt-4 model version needs to be at least version 0613 to support tools. kernel.add_service(OpenAIChatCompletion(service_id="chat")) -plugins_directory = os.path.join(__file__, "../../../../../prompt_template_samples/") # adding plugins to the kernel -# the joke plugin in the FunPlugins is a semantic plugin and has the function calling disabled. -# kernel.import_plugin_from_prompt_directory("chat", plugins_directory, "FunPlugin") # the math plugin is a core plugin and has the function calling enabled. kernel.add_plugin(MathPlugin(), plugin_name="math") kernel.add_plugin(TimePlugin(), plugin_name="time") diff --git a/python/samples/getting_started/05-using-the-planner.ipynb b/python/samples/getting_started/05-using-the-planner.ipynb index dcc7330795c7..ba1cf7cf3a3d 100644 --- a/python/samples/getting_started/05-using-the-planner.ipynb +++ b/python/samples/getting_started/05-using-the-planner.ipynb @@ -435,7 +435,7 @@ " Description: EmailPlugin provides a set of functions to send emails.\n", "\n", " Usage:\n", - " kernel.import_plugin_from_object(EmailPlugin(), plugin_name=\"email\")\n", + " kernel.add_plugin(EmailPlugin(), plugin_name=\"email\")\n", "\n", " Examples:\n", " {{email.SendEmail}} => Sends an email with the provided subject and body.\n", @@ -581,7 +581,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.6" + "version": "3.12.7" } }, "nbformat": 4,