neue Test

This commit is contained in:
Lars committed 2025-12-09 18:02:21 +01:00
1 parent d2270fafdd
commit bd36d78025
3 files changed
+41 -41

No files matched your search

+6 -4
View File
@@ -3,12 +3,12 @@ app/models/dto.py — Pydantic-Modelle (DTOs) für WP-04/WP-05/WP-06
Zweck:
Laufzeit-Modelle für FastAPI (Requests/Responses).
WP-06 Update: Intent in ChatResponse.
WP-06 Update: Intent & Intent-Source in ChatResponse.
Version:
0.6.0 (WP-06: Decision Engine)
0.6.1 (WP-06: Decision Engine Transparency)
Stand:
2025-12-08
2025-12-09
"""
from __future__ import annotations
@@ -123,6 +123,7 @@ class QueryHit(BaseModel):
total_score: float
paths: Optional[List[List[Dict]]] = None
source: Optional[Dict] = None
payload: Optional[Dict] = None # Added for flexibility
explanation: Optional[Explanation] = None
@@ -150,4 +151,5 @@ class ChatResponse(BaseModel):
answer: str = Field(..., description="Generierte Antwort vom LLM")
sources: List[QueryHit] = Field(..., description="Die für die Antwort genutzten Quellen")
latency_ms: int
intent: Optional[str] = Field("FACT", description="WP-06: Erkannter Intent (FACT/DECISION)")
intent: Optional[str] = Field("FACT", description="WP-06: Erkannter Intent (FACT/DECISION)")
intent_source: Optional[str] = Field("Unknown", description="WP-06: Quelle der Intent-Erkennung (Keyword vs. LLM)")