← Files AkinatorARCHIVED FILE

evals/results/workspaces/2026-08-30-06c/src/items/model.py

300 Bytes · Oct 3, 2026 · 06:33 UTC

↓ Download file

"""Item storage."""

from dataclasses import dataclass


@dataclass
class Item:
    id: str
    team: str
    name: str
    size_bytes: int


def total_size(items):
    return sum(item.size_bytes for item in items)


def by_team(items, team):
    return [item for item in items if item.team == team]

SHA-256: 9e511a61cb7ff9a62abbcca42f9f5ad4976d2cfd97775c704825fff4d6b4335c