mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-08 03:01:47 +00:00
fix(browser): surface Lightpanda Chrome fallback warnings
This commit is contained in:
parent
395dbcc873
commit
3ebdd26449
3 changed files with 504 additions and 208 deletions
|
|
@ -1473,6 +1473,11 @@ def _tool_summary(name: str, result: str, duration_s: float | None) -> str | Non
|
|||
if n is not None:
|
||||
text = f"Extracted {n} {'page' if n == 1 else 'pages'}"
|
||||
|
||||
if isinstance(data, dict) and data.get("fallback_warning"):
|
||||
warning = str(data.get("fallback_warning") or "").strip()
|
||||
if warning:
|
||||
return f"{warning}{suffix}"
|
||||
|
||||
return f"{text}{suffix}" if text else None
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue