refactor(tools): tool_result_storage/backend_helpers/validation — flatten persist branch, comprehension-based budget candidates, single-return raw section, path formatting fold

This commit is contained in:
Teknium
2026-09-03 01:11:35 -07:00
parent 136ac31065
commit 31017623e9
4 changed files with 24 additions and 40 deletions

View File

@@ -42,7 +42,6 @@ def tour_tool(action: str = "", surface: Optional[str] = None, selector: Optiona
return tool_error(f"steps[{i}] must be an object.")
if not (step.get("selector") or step.get("title") or step.get("text")):
return tool_error(f"steps[{i}] needs a selector and/or title/text.")
fields = {"action": verb, "surface": where, "selector": selector, "title": title,
"text": text, "side": side, "steps": steps, "step_index": step_index}
try: