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:
Fahad
2025-10-01 22:39:12 +04:00
parent f69ff03c4d
commit cc8a4dfd21
9 changed files with 108 additions and 235 deletions

View File

@@ -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"""