test(bias): add efficacy simulation tests and enhance strategy labels
This commit is contained in:
@@ -39,13 +39,23 @@ class ToolBiasEngine:
|
||||
lines = ["### Tooling Strategy"]
|
||||
|
||||
preferred = []
|
||||
low_priority = []
|
||||
for cat_tools in preset.categories.values():
|
||||
for t in cat_tools:
|
||||
if isinstance(t, Tool) and t.weight >= 4:
|
||||
preferred.append(t.name)
|
||||
if not isinstance(t, Tool): continue
|
||||
if t.weight >= 5:
|
||||
preferred.append(f"{t.name} [HIGH PRIORITY]")
|
||||
elif t.weight == 4:
|
||||
preferred.append(f"{t.name} [PREFERRED]")
|
||||
elif t.weight == 2:
|
||||
low_priority.append(f"{t.name} [NOT RECOMMENDED]")
|
||||
elif t.weight <= 1:
|
||||
low_priority.append(f"{t.name} [LOW PRIORITY]")
|
||||
|
||||
if preferred:
|
||||
lines.append(f"Preferred tools: {', '.join(preferred)}.")
|
||||
if low_priority:
|
||||
lines.append(f"Low-priority tools: {', '.join(low_priority)}.")
|
||||
|
||||
if global_bias.category_multipliers:
|
||||
lines.append("Category focus multipliers:")
|
||||
|
||||
Reference in New Issue
Block a user