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:
@@ -23,9 +23,8 @@ from .simple.base import SimpleTool
|
||||
# Field descriptions for the Challenge tool
|
||||
CHALLENGE_FIELD_DESCRIPTIONS = {
|
||||
"prompt": (
|
||||
"The user's message or statement to analyze critically. "
|
||||
"When manually invoked with 'challenge', exclude that prefix - just pass the actual content. "
|
||||
"For automatic invocations (see tool description for conditions), pass the user's complete message unchanged."
|
||||
"Statement to scrutinize. If you invoke `challenge` manually, strip the word 'challenge' and pass just the statement. "
|
||||
"Automatic invocations send the full user message as-is; do not modify it."
|
||||
),
|
||||
}
|
||||
|
||||
@@ -54,9 +53,8 @@ class ChallengeTool(SimpleTool):
|
||||
|
||||
def get_description(self) -> str:
|
||||
return (
|
||||
"Prevents reflexive agreement when users challenge responses by forcing critical thinking and reasoned analysis. "
|
||||
"Trigger automatically when users critically question, disagree with, or appear to challenge previous statements in ongoing conversations. "
|
||||
"Promotes truth-seeking over compliance by ensuring thoughtful evaluation rather than automatic agreement."
|
||||
"Prevents reflexive agreement by forcing critical thinking and reasoned analysis when a statement is challenged. "
|
||||
"Trigger automatically when a user critically questions, disagrees or appears to push back on earlier answers, and use it manually to sanity-check contentious claims."
|
||||
)
|
||||
|
||||
def get_system_prompt(self) -> str:
|
||||
|
||||
Reference in New Issue
Block a user