Skip to content

Commit c5e133d

Browse files
author
Val Brodsky
committed
Make set_regenerate_conversations_after_incorrect_step and set_rate_alternative_responses configurable by the user
1 parent 990ddb7 commit c5e133d

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ def set_rate_alternative_responses(self):
171171
)
172172

173173
def asdict(self) -> Dict[str, Any]:
174-
self.set_rate_alternative_responses()
175-
self.set_regenerate_conversations_after_incorrect_step()
176174
return {
177175
"tool": self.type.value,
178176
"name": self.name,

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": ["regenerateSteps", "generateAndRateAlternativeSteps"],
342+
"actions": [],
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": ["regenerateSteps", "generateAndRateAlternativeSteps"],
367+
"actions": [],
368368
},
369369
]

libs/labelbox/tests/unit/test_unit_step_reasoning_tool.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ def test_step_reasoning_as_dict_default():
1616
{
1717
"id": 2,
1818
"name": "Incorrect",
19-
"actions": [
20-
"regenerateSteps",
21-
"generateAndRateAlternativeSteps",
22-
],
19+
"actions": [],
2320
},
2421
],
2522
"version": 1,

0 commit comments

Comments
 (0)