From d4e787fb2df7e5060d5b07a11aabe6261e27ac27 Mon Sep 17 00:00:00 2001 From: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com> Date: Tue, 16 Sep 2025 10:17:04 -0700 Subject: [PATCH] Removed obsolete file --- .../main/agent_framework/guard_rails.py | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 python/packages/main/agent_framework/guard_rails.py diff --git a/python/packages/main/agent_framework/guard_rails.py b/python/packages/main/agent_framework/guard_rails.py deleted file mode 100644 index 46f9d44352..0000000000 --- a/python/packages/main/agent_framework/guard_rails.py +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright (c) Microsoft. All rights reserved. - - -from typing import Generic, Protocol, TypeVar, runtime_checkable - -TInput = TypeVar("TInput") -TResponse = TypeVar("TResponse") - -__all__ = ["InputGuardrail", "OutputGuardrail"] - - -@runtime_checkable -class InputGuardrail(Protocol, Generic[TInput]): - """A protocol for input guardrails that can validate and transform input messages.""" - - def __call__(self, message: TInput) -> TInput: - """Validate and possibly transform the input message.""" - ... - - -@runtime_checkable -class OutputGuardrail(Protocol, Generic[TResponse]): - """A protocol for output guardrails that can validate and transform output messages.""" - - def __call__(self, message: TResponse) -> TResponse: - """Validate and possibly transform the output message.""" - ...