The app manages multiple life areas (health, finance, personal, work), not just health. Updated all health-specific language throughout: Backend: - Default system prompt: general personal assistant (not health-only) - AI tool descriptions: generic (not health records/medications) - Memory categories: health, finance, personal, work, document_summary, other (replaces condition, medication, allergy, vital) - PDF template: "Prepared for" (not "Patient"), "Key Information" (not "Health Profile") - Renamed generate_health_pdf -> generate_pdf_report, health_report.html -> report.html - Renamed run_daily_health_review -> run_daily_review - Context assembly: "User Profile" (not "Health Profile") - OpenAPI: generic descriptions Frontend: - Dashboard subtitle: "Your personal AI assistant" - Memory categories: Health, Finance, Personal, Work - Document types: Report, Contract, Receipt, Certificate (not lab_result, etc.) - Updated en + ru translations throughout Documentation: - README: general personal assistant description - Removed health-only feature descriptions Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
44 lines
1.1 KiB
Python
44 lines
1.1 KiB
Python
import uuid
|
|
from datetime import datetime
|
|
from typing import Literal
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
CategoryType = Literal["health", "finance", "personal", "work", "document_summary", "other"]
|
|
ImportanceType = Literal["critical", "high", "medium", "low"]
|
|
|
|
|
|
class CreateMemoryRequest(BaseModel):
|
|
category: CategoryType
|
|
title: str = Field(min_length=1, max_length=255)
|
|
content: str = Field(min_length=1)
|
|
source_document_id: uuid.UUID | None = None
|
|
importance: ImportanceType = "medium"
|
|
is_active: bool = True
|
|
|
|
|
|
class UpdateMemoryRequest(BaseModel):
|
|
category: CategoryType | None = None
|
|
title: str | None = None
|
|
content: str | None = None
|
|
importance: ImportanceType | None = None
|
|
is_active: bool | None = None
|
|
|
|
|
|
class MemoryEntryResponse(BaseModel):
|
|
id: uuid.UUID
|
|
user_id: uuid.UUID
|
|
category: str
|
|
title: str
|
|
content: str
|
|
source_document_id: uuid.UUID | None
|
|
importance: str
|
|
is_active: bool
|
|
created_at: datetime
|
|
|
|
model_config = {"from_attributes": True}
|
|
|
|
|
|
class MemoryEntryListResponse(BaseModel):
|
|
entries: list[MemoryEntryResponse]
|