Files
wehub-resource-sync b957a53def
CodeQL / Analyze (csharp) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 13:21:23 +08:00

33 lines
935 B
Python

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