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

Planning example improvements #657

Merged

Conversation

lemillermicrosoft
Copy link
Member

@lemillermicrosoft lemillermicrosoft commented Apr 25, 2023

Motivation and Context

Minor cleanup of planning components and examples.

Description

This commit changes the way function manual strings are generated by the FunctionViewExtensions class. It adds indentation and line breaks to make the output more readable and consistent. It also fixes a typo in the default value string and adds a constant for the tab character.

This commit changes the ToPlanFromXml method to accept a goal string as a parameter, instead of parsing it from the xml string. This simplifies the xml format and avoids duplication of the goal in the plan string.

Contribution Checklist

@github-actions github-actions bot added .NET Issue or Pull requests regarding .NET code kernel.core labels Apr 25, 2023
@lemillermicrosoft lemillermicrosoft added the PR: ready for review All feedback addressed, ready for reviews label Apr 25, 2023
This commit removes the BucketOutputs function from the PlannerConfig and the SemanticFunctionConstants files, as it is no longer needed or compatible with the current plan creation process. It also updates the documentation to reflect the changes in the available functions and the function input and output types. Additionally, it removes a redundant TODO comment from the SequentialPlanParser file.
This commit applies some minor refactoring and formatting changes to the code in the planning tests. It breaks down some long lines of code into multiple lines for better readability, removes an extra blank line, and fixes the indentation of some assert statements. These changes do not affect the functionality or logic of the tests, but improve the code quality and style.
This commit changes the way function manual strings are generated by the FunctionViewExtensions class. It adds indentation and line breaks to make the output more readable and consistent. It also fixes a typo in the default value string and adds a constant for the tab character.
his commit adds several new features and examples to the C# kernel syntax project, which demonstrates how to use the WriterSkill functions and the planning framework in C#. The main changes are:

- A new skill, MiscSkill, that provides some utility functions for working with lists and strings. This skill is used in the book sample to extract the chapter synopses from the novel outline.
- A new example of creating and executing a book creation plan, which uses the WriterSkill functions and the planning.BucketOutputs function to generate a novel with chapters, themes, and synopses.
- A new chapter for the Thinking Caps story, a mystery novel that is generated by the book creation plan. The new chapter introduces the main plot of the case of the missing mascot, and shows the characters' skills, personalities, and teamwork.
- A new skill for getting an element from an array at a specified index. This skill has a config.json file and a skprompt.txt file that define the input parameters and the prompt for the skill. The skill returns the element or an error message.
- Some minor fixes and improvements to the existing examples, such as fixing a typo in the email plan example, and removing the redundant output of the previous examples.
This commit changes the ToPlanFromXml method to accept a goal string as a parameter, instead of parsing it from the xml string. This simplifies the xml format and avoids duplication of the goal in the plan string. The SequentialPlanner class is also updated to pass the goal to the ToPlanFromXml method. The unit tests and integration tests are modified accordingly to reflect the new xml format.
@shawncal shawncal merged commit 0d454c8 into microsoft:main Apr 26, 2023
11 checks passed
dluc pushed a commit that referenced this pull request Apr 29, 2023
### Motivation and Context
Minor cleanup of planning components and examples.

### Description
This commit changes the way function manual strings are generated by the
FunctionViewExtensions class. It adds indentation and line breaks to
make the output more readable and consistent. It also fixes a typo in
the default value string and adds a constant for the tab character.

This commit changes the ToPlanFromXml method to accept a goal string as
a parameter, instead of parsing it from the xml string. This simplifies
the xml format and avoids duplication of the goal in the plan string.
dehoward pushed a commit to lemillermicrosoft/semantic-kernel that referenced this pull request Jun 1, 2023
### Motivation and Context
Minor cleanup of planning components and examples.

### Description
This commit changes the way function manual strings are generated by the
FunctionViewExtensions class. It adds indentation and line breaks to
make the output more readable and consistent. It also fixes a typo in
the default value string and adds a constant for the tab character.

This commit changes the ToPlanFromXml method to accept a goal string as
a parameter, instead of parsing it from the xml string. This simplifies
the xml format and avoids duplication of the goal in the plan string.
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 PR: ready for review All feedback addressed, ready for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants