Commit Graph
3 Commits
Author SHA1 Message Date
Lee Miller b226e91a5a .Net: Update indentation in FunctionViewExtensions (#3073)
## Summary
This pull request refactors the FunctionViewExtensions.cs file in the
Planners.Core.Extensions namespace. The changes include modifying the
formatting of the inputs section of the ToManualString method to improve
readability.

## Changes
- Modified the formatting of the inputs section of the ToManualString
method in the FunctionViewExtensions.cs file to improve readability.

---
*Powered by [Microsoft Semantic
Kernel](https://github.com/microsoft/semantic-kernel)*

Adjust the indentation of input parameters in the
`FunctionViewExtensions` class to improve readability and maintain
consistency in the codebase.

Before:
```text
MiscPlugin.ElementAtIndex:
  description: Get an element from an array at a specified index
  inputs:
    - input: The input array
  - index: The index of the element to retrieve
  - count: The number of items in the input
```

After:
```text
MiscPlugin.ElementAtIndex:
  description: Get an element from an array at a specified index
  inputs:
    - input: The input array
    - index: The index of the element to retrieve
    - count: The number of items in the input
```

### 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.
-->

### Description

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

### 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 😄
2023-10-05 19:00:39 +00:00
Mark WallaceandDmytro Struk a7566b6654 .Net: Add Models collection to PromptTemplateConfig Update PromptTemplateConfig to support multiple AI models (#2993)
### Contribution Checklist

- [ ] The code builds clean without any errors or warnings
- [ ] 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
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄

## Summary
This pull request updates PromptTemplateConfig to support multiple AI
models, providing greater flexibility in configuring AI services for
semantic functions. The Completion property has been removed and
replaced with a Models collection that contains AIRequestSettings
objects. The SetAIConfiguration and SetAIService methods in
SemanticFunction have been updated to use the first AIRequestSettings
object in the Models list. SKFunctionTests1 and KernelTests have also
been updated to use the Models property of PromptTemplateConfig and to
reflect these changes.

## Changes
- Added PromptTemplateConfigExtensions.cs file
- Modified StepwisePlanner.cs file
- Modified AIRequestSettings.cs file
- Modified PromptTemplateConfig.cs file
- Added unit tests to ensure proper deserialization of
PromptTemplateConfig with multiple models
- Updated SKFunctionTests1 to use Models property of
PromptTemplateConfig
- Updated KernelTests to use Models property of PromptTemplateConfig and
add OpenAIRequestSettings object to Models list instead of setting it
directly to Completion property
- Updated test cases to reflect changes

---
*Powered by [Microsoft Semantic
Kernel](https://github.com/microsoft/semantic-kernel)*

---------

Co-authored-by: Dmytro Struk <[email protected]>
2023-10-03 17:38:52 +00:00
Mark Wallace fc99e49541 .Net: Rename 'Skills' -> 'Plugins' - Part 4 (#2907)
### Motivation and Context

Create a copy of the sample skills but named as plugins

**Note: Current skill samples will be removed later once we have updated
the examples that use the published NuGet packages.**

### Contribution Checklist

- [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 😄
2023-09-20 22:39:21 +00:00