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: Fixes Plan using an empty function in describe and incorrectly setting context variables for next steps. #4673

Conversation

juliomenendez
Copy link
Contributor

Motivation and Context

This PR fixes #4658 and fixes #2933.

Description

The first one basically needed a None check before using self._function in the Plan.describe method.
The second one was incorrectly setting the values for variables for the next step in the plan. The solution for this was suggested by @amritpal-singh-98, thank you!

Contribution Checklist

@juliomenendez juliomenendez requested a review from a team as a code owner January 19, 2024 06:12
@shawncal shawncal added the python Pull requests for the Python Semantic Kernel label Jan 19, 2024
@github-actions github-actions bot changed the title Fixes Plan using an empty function in describe and incorrectly setting context variables for next steps. Python: Fixes Plan using an empty function in describe and incorrectly setting context variables for next steps. Jan 19, 2024
Copy link
Member

@eavanvalkenburg eavanvalkenburg left a comment

Choose a reason for hiding this comment

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

one small typing note, otherwise looks good

python/semantic_kernel/planning/plan.py Outdated Show resolved Hide resolved
Copy link
Member

@eavanvalkenburg eavanvalkenburg left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@eavanvalkenburg eavanvalkenburg left a comment

Choose a reason for hiding this comment

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

Lgtm

Copy link
Contributor

@moonbox3 moonbox3 left a comment

Choose a reason for hiding this comment

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

This is awesome, great work. LGTM.

@moonbox3 moonbox3 added this pull request to the merge queue Jan 19, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 19, 2024
@moonbox3 moonbox3 added this pull request to the merge queue Jan 19, 2024
Merged via the queue into microsoft:main with commit f357b45 Jan 19, 2024
26 checks passed
@juliomenendez juliomenendez deleted the juliome/issue-2933-4658-fix-plan-describe-and-context-variable-resolution branch January 19, 2024 16:41
Bryan-Roe pushed a commit to Bryan-Roe/semantic-kernel that referenced this pull request Oct 6, 2024
…tly setting context variables for next steps. (microsoft#4673)

### Motivation and Context
This PR fixes microsoft#4658 and fixes microsoft#2933.

### Description
The first one basically needed a None check before using
`self._function` in the `Plan.describe` method.
The second one was incorrectly setting the values for variables for the
next step in the plan. The solution for this was suggested by
@amritpal-singh-98, thank you!

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄

---------

Co-authored-by: Evan Mattson <35585003+moonbox3@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests for the Python Semantic Kernel
Projects
None yet
4 participants