Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: Correct syntax in core skill examples #1731

Merged
merged 2 commits into from
Jun 29, 2023
Merged

Python: Correct syntax in core skill examples #1731

merged 2 commits into from
Jun 29, 2023

Conversation

HenriSchulte-MS
Copy link
Contributor

Fix for #1730
Some core skills include example code showing how to import the skill. Some of these examples, used an invalid syntax where arguments were in the reversed order, e.g. kernel.import_skill("wait", WaitSkill()); instead of the valid kernel.import_skill(WaitSkill(), "wait").

@HenriSchulte-MS HenriSchulte-MS requested a review from a team as a code owner June 27, 2023 11:21
@github-actions github-actions bot added the python Pull requests for the Python Semantic Kernel label Jun 27, 2023
@matthewbolanos matthewbolanos added the core plugin Anything related to core plugins label Jun 27, 2023
Copy link
Contributor

@amsacha amsacha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's a small typo but besides that looks good to me!

python/semantic_kernel/core_skills/file_io_skill.py Outdated Show resolved Hide resolved
HenriSchulte-MS and others added 2 commits June 29, 2023 13:17
Co-authored-by: Aman Sachan <51973971+amsacha@users.noreply.github.com>
@shawncal
Copy link
Member

Good catch. Thanks for the contribution @HenriSchulte-MS!

@shawncal shawncal enabled auto-merge June 29, 2023 20:19
@shawncal shawncal added this pull request to the merge queue Jun 29, 2023
Merged via the queue into microsoft:main with commit 20dee6d Jun 29, 2023
@evchaki evchaki added this to the Sprint 34 milestone Jun 30, 2023
shawncal pushed a commit to shawncal/semantic-kernel that referenced this pull request Jul 6, 2023
Fix for microsoft#1730 
Some core skills include example code showing how to import the skill.
Some of these examples, used an invalid syntax where arguments were in
the reversed order, e.g. kernel.import_skill("wait", WaitSkill());
instead of the valid kernel.import_skill(WaitSkill(), "wait").

---------

Co-authored-by: Aman Sachan <51973971+amsacha@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core plugin Anything related to core plugins python Pull requests for the Python Semantic Kernel
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants