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

.Net: Add previous plan and error to retry the handdlebars planning. #3973

Conversation

kbeaugrand
Copy link
Contributor

@kbeaugrand kbeaugrand commented Dec 5, 2023

Motivation and Context

Fix #4144 -The handlebars planner don't use previous plan and previous error when creating a plan. This PR aims to provide a fix to this issue.

Description

I added a prompt to specify to the planner which plan was previously generated and the corresponding error.
Those parameters are added only if the previous error is provided.

Contribution Checklist

Sorry, something went wrong.

@kbeaugrand kbeaugrand requested a review from a team as a code owner December 5, 2023 12:16
@kbeaugrand kbeaugrand force-pushed the dev/dotnet-fix-handlebars-retry branch from 467848a to 3f645ed Compare December 5, 2023 12:16
@shawncal shawncal added the .NET Issue or Pull requests regarding .NET code label Dec 5, 2023
@kbeaugrand kbeaugrand force-pushed the dev/dotnet-fix-handlebars-retry branch 5 times, most recently from dff18cc to c72de7a Compare December 6, 2023 21:52
@kbeaugrand kbeaugrand force-pushed the dev/dotnet-fix-handlebars-retry branch 2 times, most recently from 5f8c706 to e2332f7 Compare December 14, 2023 17:25
@kbeaugrand kbeaugrand force-pushed the dev/dotnet-fix-handlebars-retry branch from e2332f7 to e86ae40 Compare December 15, 2023 06:19
@markwallace-microsoft markwallace-microsoft added the v1.0.1 Required for the Semantic Kernel v1.0.1 release label Dec 15, 2023
@teresaqhoang teresaqhoang added vnext and removed v1.0.1 Required for the Semantic Kernel v1.0.1 release labels Dec 15, 2023
@markwallace-microsoft
Copy link
Member

@kbeaugrand sorry there are new merge conflicts to be resolved. If you can get these resolved today we should be able to include this change in our next release. Thanks!

@kbeaugrand
Copy link
Contributor Author

kbeaugrand commented Jan 11, 2024

@kbeaugrand sorry there are new merge conflicts to be resolved. If you can get these resolved today we should be able to include this change in our next release. Thanks!

@markwallace-microsoft, I've just resolved those conflicts.

@markwallace-microsoft markwallace-microsoft added this pull request to the merge queue Jan 11, 2024
Merged via the queue into microsoft:main with commit aed2624 Jan 11, 2024
@kbeaugrand kbeaugrand deleted the dev/dotnet-fix-handlebars-retry branch January 11, 2024 15:43
Bryan-Roe pushed a commit to Bryan-Roe-ai/semantic-kernel that referenced this pull request Oct 6, 2024
…icrosoft#3973)

### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->


Fix microsoft#4144 -The handlebars planner don't use previous plan and previous
error when creating a plan. This PR aims to provide a fix to this issue.

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

I added a prompt to specify to the planner which plan was previously
generated and the corresponding error.
Those parameters are added only if the previous error is provided.

### 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: Mark Wallace <127216156+markwallace-microsoft@users.noreply.github.com>
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.NET Issue or Pull requests regarding .NET code
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

.Net: Handlebars planner doesn't use the previous plan and previous error.
6 participants