harbor run -t openthoughts/tasktrove-exp-rpt-curriculum-easy-curriculum-easy-0165harbor download openthoughts/tasktrove-exp-rpt-curriculum-easy-curriculum-easy-0165Goal
What to build
Public API
Hints
Skeleton to start with (place in /app/traw/models.py)
from typing import Any, Dict, Optional
class CaseType:
"""A lightweight model representing a case type.
It simply parses known fields from a provided content dictionary and
stores them as attributes for easy access by tests or callers.
"""
def __init__(self, client: Any, content: Dict) -> None:
self._client = client
# Initialize attributes from content with graceful defaults
self.id: Optional[int] = None
self.is_default: bool = False
self.name: Optional[str] = None
# TODO: Fill in actual extraction from content
# self.id = content.get("id")
# self.is_default = bool(content.get("is_default", False))
# self.name = content.get("name")
Notes
Deliverables