OpenHands/openhands/storage/data_models/conversation_metadata.py
chuckbutkus 8074b261d3
Move current user_id to github_user_id and create a new user_id field (#7231)
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Rohit Malhotra <rohitvinodmalhotra@gmail.com>
2025-03-16 16:32:27 -04:00

15 lines
435 B
Python

from dataclasses import dataclass, field
from datetime import datetime, timezone
@dataclass
class ConversationMetadata:
conversation_id: str
user_id: str | None
github_user_id: str | None
selected_repository: str | None
selected_branch: str | None = None
title: str | None = None
last_updated_at: datetime | None = None
created_at: datetime = field(default_factory=lambda: datetime.now(timezone.utc))