You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Motivation and Context
This pull request introduces a series of improvements and updates to the
StepwisePlanner, StepwisePlannerTests, and WebSearchEngineSkill. The
changes include
better handling of action invocation, function retrieval, logging, chat
history management, execution helpers, and the addition of an offset
parameter to the
WebSearchEngineSkill. Additionally, the StepwisePlannerTests have been
enhanced with more test cases and refined expected minimum steps, while
the
ChatRequestSettings class has been improved with a method to create a
new settings object from another settings object.
Resolves#2367Fixes#2466Fixes#2553
### Description
1. Improved the StepwisePlanner class with better action invocation,
function retrieval, logging, chat history management, and execution
helpers.
2. Enhanced the StepwisePlannerTests with more test cases and refined
expected minimum steps.
3. Added an offset parameter to the WebSearchEngineSkill class for
improved search functionality.
4. Improved the ChatRequestSettings class with a method to create a new
settings object from another settings object.
5. Updated the Example51_StepwisePlanner.cs file with new questions,
improved result handling, and additional output for better analysis.
6. Enhanced the ParseResultTests with new test cases for the ParseResult
class.
7. Updated the WebSearchEngineSkill to include parameter descriptions
for the SearchAsync method.
8. Added project references and minor changes to the
SemanticKernel.MetaPackage project.
### 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: Andrew Hesky @andhesky
"Who is the current president of the United States? What is his current age divided by 2",
26
-
// "Who is Leo DiCaprio's girlfriend? What is her current age raised to the (his current age)/100 power?",
27
-
// "What is the capital of France? Who is that city's current mayor? What percentage of their life has been in the 21st century as of today?",
28
-
// "What is the current day of the calendar year? Using that as an angle in degrees, what is the area of a unit circle with that angle?"
38
+
"What color is the sky?",
39
+
"What is the weather in Seattle?",
40
+
"What is the tallest mountain on Earth? How tall is it divided by 2?",
41
+
"What is the capital of France? Who is that city's current mayor? What percentage of their life has been in the 21st century as of today?",
42
+
"What is the current day of the calendar year? Using that as an angle in degrees, what is the area of a unit circle with that angle?",
43
+
"If a spacecraft travels at 0.99 the speed of light and embarks on a journey to the nearest star system, Alpha Centauri, which is approximately 4.37 light-years away, how much time would pass on Earth during the spacecraft's voyage?"
// Question: What is the capital of France? Who is that cities current mayor? What percentage of their life has been in the 21st century as of today?
117
-
// Result: The capital of France is Paris. The current mayor of Paris is Anne Hidalgo, who was born on June 19, 1959. As of today, she has lived for 64 years, with 23 of those years in the 21st century. Therefore, 35.94% of her life has been spent in the 21st century.
// Question: What is the current day of the calendar year? Using that as an angle in degrees, what is the area of a unit circle with that angle?
124
-
// Result: The current day of the year is 177. Using that as an angle in degrees (approximately 174.58), the area of a unit circle with that angle is approximately 1.523 square units.
0 commit comments