diff --git a/aria-brain/agent.py b/aria-brain/agent.py index 494b156..a6cdcae 100644 --- a/aria-brain/agent.py +++ b/aria-brain/agent.py @@ -940,11 +940,19 @@ class Agent: # Tools ausfuehren + Ergebnis als role=tool zurueck for tc in result.tool_calls: tool_result = self._dispatch_tool(tc["name"], tc["arguments"]) + # Cap auf 50 KB — passt zur Cap in _dispatch_tool fuer + # Skill-Outputs (siehe agent.py weiter unten). 8 KB war + # viel zu wenig: Spotify _all=true mit 90 Playlists + # liefert ~34 KB compact, das wurde hier auf 8 KB + # zugeschnitten und ARIA glaubte die Liste sei + # abgeschnitten obwohl der Skill alles korrekt + # paginiert hatte. Claude-Context vertraegt locker + # 50 KB pro Tool-Result. messages.append(ProxyMessage( role="tool", tool_call_id=tc["id"], name=tc["name"], - content=tool_result[:8000], + content=tool_result[:50000], )) continue # next iteration mit Tool-Results # Kein Tool-Call mehr → final reply