chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# 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."),
|
||||
)
|
||||
Reference in New Issue
Block a user