Skip to content

Commit 9bbd147

Browse files
committed
style: apply black formatting to the truncation fix
1 parent a27cf29 commit 9bbd147

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/gaia/agents/base/agent.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2796,9 +2796,7 @@ def _drop_items_to_fit(self, content: Any, max_chars: int) -> Optional[str]:
27962796
totals = {key: len(items) for key, items in lists.items()}
27972797

27982798
def render() -> str:
2799-
dropped_any = any(
2800-
len(items) < totals[key] for key, items in lists.items()
2801-
)
2799+
dropped_any = any(len(items) < totals[key] for key, items in lists.items())
28022800
if is_root_list:
28032801
payload: Any = list(lists["__root__"])
28042802
if dropped_any:

tests/unit/agents/test_large_tool_result_truncation.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,7 @@ def test_handle_large_tool_result_logs_once_with_silent_console(self, caplog):
250250
caplog.clear()
251251

252252
payload = _messages_payload(key="messages")
253-
original_len = len(
254-
json.dumps(payload, default=agent._json_serialize_fallback)
255-
)
253+
original_len = len(json.dumps(payload, default=agent._json_serialize_fallback))
256254
conversation: list = []
257255

258256
notices = []

0 commit comments

Comments
 (0)