Skip to content

import_semantic_skill_from_directory is not assigning config #235

Closed

Description

Describe the bug
import_semantic_skill_from_directory is not reassigning the values with the result of the config.from_json(config_file.read()) call resulting in an empty config.

Easy fix is to just change line 45 to

config = config.from_json(config_file.read())

To Reproduce
Steps to reproduce the behavior:

  1. Set a debugger here in the IDE.
  2. Run the following in Debug mode on IDE
import semantic_kernel as sk
from semantic_kernel.kernel_extensions.import_semantic_skill_from_directory import import_semantic_skill_from_directory

#create a kernel
kernel = sk.KernelBuilder.create_kernel()

#import skills
skills_directory = "../../skills" #path to skills directory
skill = import_semantic_skill_from_directory(kernel, skills_directory, "SummarizeSkill")
  1. Look at the config object. Notice there's no description or default backends.

Expected behavior
config object has info from the json file such as description and default_backends.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: Windows
  • IDE: PyCharm

Activity

  1. renrut commented on Mar 30, 2023

    @renrut
    ContributorAuthor

    I can open a PR for it in a few.

  2. evchaki commented on Mar 30, 2023

    @evchaki
    Contributor

    Thanks for doing this!

  3. added a commit that references this issue on Apr 2, 2023
    c3c89ea
  4. renrut commented on Apr 4, 2023

    @renrut
    ContributorAuthor

    Can close with #236

  5. added 3 commits that reference this issue on Apr 12, 2023
    08c59d6
    64ffd2e
    db1fae3
  6. added a commit that references this issue on Jun 1, 2023
    3c31437
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pythonPull requests for the Python Semantic Kernel

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions