Overall savings should now be 50%+ tokens used
perf: tweaks to schema descriptions, aiming to reduce token usage without performance degradation
This commit is contained in:
@@ -26,7 +26,7 @@ class TestChallengeTool:
|
||||
assert self.tool.get_name() == "challenge"
|
||||
assert "reflexive agreement" in self.tool.get_description()
|
||||
assert "critical thinking" in self.tool.get_description()
|
||||
assert "thoughtful evaluation" in self.tool.get_description()
|
||||
assert "reasoned analysis" in self.tool.get_description()
|
||||
assert self.tool.get_default_temperature() == 0.2 # TEMPERATURE_ANALYTICAL
|
||||
|
||||
def test_requires_model(self):
|
||||
@@ -154,8 +154,8 @@ class TestChallengeTool:
|
||||
|
||||
assert "prompt" in fields
|
||||
assert fields["prompt"]["type"] == "string"
|
||||
assert "message or statement" in fields["prompt"]["description"]
|
||||
assert "analyze critically" in fields["prompt"]["description"]
|
||||
assert "Statement to scrutinize" in fields["prompt"]["description"]
|
||||
assert "strip the word 'challenge'" in fields["prompt"]["description"]
|
||||
|
||||
def test_required_fields_list(self):
|
||||
"""Test required fields list"""
|
||||
|
||||
Reference in New Issue
Block a user