Skip to content

Python: Make the Kernel class Pydantic.#4850

Merged
moonbox3 merged 3 commits intomicrosoft:mainfrom
moonbox3:make_kernel_pydantic
Feb 2, 2024
Merged

Python: Make the Kernel class Pydantic.#4850
moonbox3 merged 3 commits intomicrosoft:mainfrom
moonbox3:make_kernel_pydantic

Conversation

@moonbox3
Copy link
Collaborator

@moonbox3 moonbox3 commented Feb 1, 2024

Motivation and Context

Completes work item: #4846. The Kernel class was not following the Pydantic convention.

Description

This PR updates the Kernel class to use the KernelBaseModel and Pydantic fields. All unit and integration tests passing.

Contribution Checklist

@moonbox3 moonbox3 requested a review from a team as a code owner February 1, 2024 22:15
@shawncal shawncal added the python Pull requests for the Python Semantic Kernel label Feb 1, 2024
Copy link
Contributor

@juliomenendez juliomenendez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@moonbox3 moonbox3 added this pull request to the merge queue Feb 2, 2024
Merged via the queue into microsoft:main with commit 9ae69a4 Feb 2, 2024
@moonbox3 moonbox3 deleted the make_kernel_pydantic branch February 2, 2024 12:54
Bryan-Roe pushed a commit to Bryan-Roe-ai/semantic-kernel that referenced this pull request Oct 6, 2024
### Motivation and Context

Completes work item: microsoft#4846. The Kernel class was not following the
Pydantic convention.

<!-- 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

This PR updates the Kernel class to use the KernelBaseModel and Pydantic
fields. All unit and integration tests passing.

<!-- 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 😄

---------

Co-authored-by: Evan Mattson <evan.mattson@microsoft.com>
Co-authored-by: Eduard van Valkenburg <eavanvalkenburg@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Pull requests for the Python Semantic Kernel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants