Skip to content

Commit 7854dfb

Browse files
author
Val Brodsky
committed
Fix tests
1 parent fa29d2b commit 7854dfb

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

libs/labelbox/mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ ignore_errors = True
1212
[mypy-lbox.exceptions]
1313
ignore_missing_imports = True
1414

15-
[mypy-lbox.call_info"]
15+
[mypy-lbox.call_info]
1616
ignore_missing_imports = True

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 typing import Any, Dict, List, Optional
34

@@ -156,6 +157,11 @@ class StepReasoningTool:
156157
default_factory=StepReasoningDefinition
157158
)
158159

160+
def __post_init__(self):
161+
warnings.warn(
162+
"This feature is experimental and subject to change.",
163+
)
164+
159165
def reset_regenerate_conversations_after_incorrect_step(self):
160166
"""
161167
For live models, the default acation will invoke the model to generate alternatives if a step is marked as incorrect

libs/labelbox/tests/integration/test_ontology.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def test_step_reasoning_ontology(chat_evaluation_ontology):
339339
{
340340
"id": 2,
341341
"name": "Incorrect",
342-
"actions": [],
342+
"actions": ["regenerateSteps"],
343343
},
344344
]
345345
assert step_reasoning_tool["definition"]["version"] == 1
@@ -364,6 +364,6 @@ def test_step_reasoning_ontology(chat_evaluation_ontology):
364364
{
365365
"id": 2,
366366
"name": "Incorrect",
367-
"actions": [],
367+
"actions": ["regenerateSteps"],
368368
},
369369
]

0 commit comments

Comments
 (0)