Skip to content

Validate goal and handle plan parsing errors in SequentialPlanner #707

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

Merged
merged 1 commit into from
Apr 28, 2023

Conversation

lemillermicrosoft
Copy link
Member

@lemillermicrosoft lemillermicrosoft commented Apr 28, 2023

Added a check for empty goal in CreatePlanAsync method and threw a PlanningException with appropriate error code. Wrapped the plan parsing logic in a try-catch block and re-threw any exceptions as PlanningExceptions with a different error code. This improves the robustness and usability of the SequentialPlanner class.

Contribution Checklist

@github-actions github-actions bot added the .NET Issue or Pull requests regarding .NET code label Apr 28, 2023
@lemillermicrosoft lemillermicrosoft changed the title \Validate goal and handle plan parsing errors in SequentialPlanner Validate goal and handle plan parsing errors in SequentialPlanner Apr 28, 2023
@lemillermicrosoft lemillermicrosoft marked this pull request as ready for review April 28, 2023 00:39
@lemillermicrosoft lemillermicrosoft added the kernel Issues or pull requests impacting the core kernel label Apr 28, 2023
@github-actions github-actions bot removed the kernel Issues or pull requests impacting the core kernel label Apr 28, 2023
@lemillermicrosoft lemillermicrosoft added the PR: ready for review All feedback addressed, ready for reviews label Apr 28, 2023
@github-actions github-actions bot added the kernel Issues or pull requests impacting the core kernel label Apr 28, 2023
@shawncal shawncal force-pushed the 427_plan_goal_escape branch 2 times, most recently from 340d702 to 9f3d76e Compare April 28, 2023 02:51
Added a check for empty goal in CreatePlanAsync method and threw a PlanningException with appropriate error code. Wrapped the plan parsing logic in a try-catch block and re-threw any exceptions as PlanningExceptions with a different error code. This improves the robustness and usability of the SequentialPlanner class.
@shawncal shawncal force-pushed the 427_plan_goal_escape branch from 63b335d to ad174a8 Compare April 28, 2023 03:37
@shawncal shawncal merged commit 097381c into microsoft:main Apr 28, 2023
dluc pushed a commit that referenced this pull request Apr 29, 2023
Added a check for empty goal in CreatePlanAsync method and threw a
PlanningException with appropriate error code. Wrapped the plan parsing
logic in a try-catch block and re-threw any exceptions as
PlanningExceptions with a different error code. This improves the
robustness and usability of the SequentialPlanner class.
dehoward pushed a commit to lemillermicrosoft/semantic-kernel that referenced this pull request Jun 1, 2023
…crosoft#707)

Added a check for empty goal in CreatePlanAsync method and threw a
PlanningException with appropriate error code. Wrapped the plan parsing
logic in a try-catch block and re-threw any exceptions as
PlanningExceptions with a different error code. This improves the
robustness and usability of the SequentialPlanner class.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kernel Issues or pull requests impacting the core kernel .NET Issue or Pull requests regarding .NET code PR: ready for review All feedback addressed, ready for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants