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

24 lines
782 B
Python

# Copyright (c) Microsoft. All rights reserved.
import logging
from abc import ABC
from pydantic import Field
from typing_extensions import deprecated
from semantic_kernel.kernel_pydantic import KernelBaseModel
from semantic_kernel.reliability.pass_through_without_retry import PassThroughWithoutRetry
from semantic_kernel.reliability.retry_mechanism_base import RetryMechanismBase
logger: logging.Logger = logging.getLogger(__name__)
class KernelReliabilityExtension(KernelBaseModel, ABC):
"""Kernel reliability extension."""
retry_mechanism: RetryMechanismBase = Field(
default_factory=PassThroughWithoutRetry,
exclude=True,
deprecated=deprecated("retry_mechanism is deprecated; This property doesn't have any effect on the kernel."),
)