Files
2026-08-21 16:00:13 +08:00

42 lines
949 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""内驱力 API schema(database-schema §22;/drive 端点)。"""
from datetime import datetime
from pydantic import Field
from app.schemas.common import OrmModel
class CuriosityResponse(OrmModel):
"""好奇问题响应(related_entities 已从 JSON 文本解析)。"""
id: str
character_id: str
cycle_id: str
question: str
source: str
related_entities: list[str] = Field(default_factory=list)
expected_value: float
urgency: float
risk_level: str
created_at: datetime
class SubgoalResponse(OrmModel):
"""探索性次生目标响应。"""
id: str
character_id: str
cycle_id: str
parent_goal_id: str | None = None
curiosity_question_id: str
title: str
description: str
expected_information_gain: float
interruption_cost: float
risk_level: str
status: str
reviewed_at: datetime | None = None
reviewed_by: str
created_at: datetime