chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
# Copyright (c) Microsoft. All rights reserved.
|
||||
|
||||
from enum import Enum
|
||||
from typing import Any
|
||||
|
||||
from pydantic import ConfigDict
|
||||
|
||||
from semantic_kernel.kernel_pydantic import KernelBaseModel
|
||||
from semantic_kernel.utils.feature_stage_decorator import experimental
|
||||
|
||||
|
||||
@experimental
|
||||
class KernelProcessEventVisibility(Enum):
|
||||
"""Visibility of a kernel process event."""
|
||||
|
||||
# The event is visible inside the process as well as outside the process. This is useful
|
||||
# when the event is intended to be consumed by other processes or external systems.
|
||||
Public = "Public"
|
||||
|
||||
# The event is only visible to steps within the same process.
|
||||
Internal = "Internal"
|
||||
|
||||
|
||||
@experimental
|
||||
class KernelProcessEvent(KernelBaseModel):
|
||||
"""A kernel process event."""
|
||||
|
||||
id: str
|
||||
data: Any | None = None
|
||||
visibility: KernelProcessEventVisibility = KernelProcessEventVisibility.Internal
|
||||
|
||||
model_config = ConfigDict(use_enum_values=False)
|
||||
Reference in New Issue
Block a user