Skip to content

Commit 29bb499

Browse files
author
Val Brodsky
committed
Add experimental warnings
1 parent 1dd1fcb commit 29bb499

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

libs/labelbox/src/labelbox/schema/tool_building/fact_checking_tool.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import warnings
12
from dataclasses import dataclass, field
23
from enum import Enum
34
from typing import Any, Dict, List, Optional
@@ -162,6 +163,11 @@ class FactCheckingTool:
162163
default_factory=FactCheckingDefinition
163164
)
164165

166+
def __post_init__(self):
167+
warnings.warn(
168+
"This feature is experimental and subject to change.",
169+
)
170+
165171
def set_unsupported_step_actions(
166172
self, actions: List[UnsupportedStepActions]
167173
) -> None:

libs/labelbox/src/labelbox/schema/tool_building/step_reasoning_tool.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import warnings
12
from dataclasses import dataclass, field
23
from enum import Enum
34
from typing import Any, Dict, List, Optional
@@ -109,6 +110,11 @@ class StepReasoningTool:
109110
default_factory=StepReasoningDefinition
110111
)
111112

113+
def __post_init__(self):
114+
warnings.warn(
115+
"This feature is experimental and subject to change.",
116+
)
117+
112118
def set_incorrect_step_actions(self, actions: List[IncorrectStepActions]):
113119
"""
114120
For live models, will invoke the model to generate alternatives if a step is marked as incorrect

0 commit comments

Comments
 (0)