mirror of
https://github.com/microsoft/semantic-kernel.git
synced 2026-10-12 11:19:56 +00:00
### Motivation and Context An initial PR to add the foundational pieces of the Python Process framework, which holds it design to be similar to dotnet in that step types are added to a process builder, and later on, when the step is run, it is first instantiated and the proper state is provided. <!-- 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 Adding the initial process framework components: - Closes #9354 **TODO** - more unit tests will be added to increase the code coverage. Currently there are several files with no (or low) code coverage. - more samples will either be added to this PR or a subsequent PR <!-- 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 😄
35 lines
782 B
Python
35 lines
782 B
Python
# Copyright (c) Microsoft. All rights reserved.
|
|
|
|
|
|
from semantic_kernel.exceptions.kernel_exceptions import KernelException
|
|
|
|
|
|
class ProcessException(KernelException):
|
|
"""Base class for all process exceptions."""
|
|
|
|
pass
|
|
|
|
|
|
class ProcessInvalidConfigurationException(ProcessException):
|
|
"""An invalid configuration was provided for the process."""
|
|
|
|
pass
|
|
|
|
|
|
class ProcessTargetFunctionNameMismatchException(ProcessException):
|
|
"""A message targeting a function has resulted in a different function becoming invocable."""
|
|
|
|
pass
|
|
|
|
|
|
class ProcessFunctionNotFoundException(ProcessException):
|
|
"""A function was not found in the process."""
|
|
|
|
pass
|
|
|
|
|
|
class ProcessEventUndefinedException(ProcessException):
|
|
"""An event was not defined in the process."""
|
|
|
|
pass
|