Skip to content

Commit 8fa2f7b

Browse files
committed
Update GuardrailSequence to add class property.
1 parent 5a89ce2 commit 8fa2f7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ads/llm/chain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import sys
1515

1616
from copy import deepcopy
17-
from typing import Any, List, Optional
17+
from typing import Any, List, Optional, ClassVar
1818

1919
import yaml
2020

@@ -42,7 +42,7 @@
4242
class GuardrailSequence(RunnableSequence):
4343
"""Represents a sequence of guardrails and other LangChain (non-guardrail) components."""
4444

45-
CHAIN_TYPE = "ads_guardrail_sequence"
45+
CHAIN_TYPE: ClassVar[str] = "ads_guardrail_sequence"
4646

4747
first: Optional[Runnable] = None
4848
last: Optional[Runnable] = None

0 commit comments

Comments
 (0)