Erste Version WP06
This commit is contained in:
1 parent
4d6fce2d93
commit
07b7f419de
3 files changed
+179
-29
No files matched your search
+6
-5
@@ -1,12 +1,12 @@
|
||||
"""
|
||||
app/models/dto.py — Pydantic-Modelle (DTOs) für WP-04/WP-05 Endpunkte
|
||||
app/models/dto.py — Pydantic-Modelle (DTOs) für WP-04/WP-05/WP-06
|
||||
|
||||
Zweck:
|
||||
Laufzeit-Modelle für FastAPI (Requests/Responses).
|
||||
WP-05 Update: Chat-Modelle.
|
||||
WP-06 Update: Intent in ChatResponse.
|
||||
|
||||
Version:
|
||||
0.4.0 (Update für WP-05 Chat)
|
||||
0.6.0 (WP-06: Decision Engine)
|
||||
Stand:
|
||||
2025-12-08
|
||||
"""
|
||||
@@ -144,9 +144,10 @@ class GraphResponse(BaseModel):
|
||||
|
||||
class ChatResponse(BaseModel):
|
||||
"""
|
||||
WP-05: Antwortstruktur für /chat.
|
||||
WP-05/06: Antwortstruktur für /chat.
|
||||
"""
|
||||
query_id: str = Field(..., description="Traceability ID (dieselbe wie für Search)")
|
||||
answer: str = Field(..., description="Generierte Antwort vom LLM")
|
||||
sources: List[QueryHit] = Field(..., description="Die für die Antwort genutzten Quellen")
|
||||
latency_ms: int
|
||||
latency_ms: int
|
||||
intent: Optional[str] = Field("FACT", description="WP-06: Erkannter Intent (FACT/DECISION)")
|
||||
Reference in new issue
Block a user