Files
life-echo/api/app/agents/chat/schemas.py

20 lines
493 B
Python
Raw 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.
"""LLM JSON 边界契约Chat agents"""
from __future__ import annotations
from pydantic import BaseModel, Field
class StageDetectionOutput(BaseModel):
detected_stage: str = Field(default="", description="CHAT_STAGES key")
class ProfileExtractionOutput(BaseModel):
birth_year: int | str | None = None
birth_place: str | None = None
grew_up_place: str | None = None
occupation: str | None = None
__all__ = ["ProfileExtractionOutput", "StageDetectionOutput"]