mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-10-11 05:36:03 +02:00
query history pagination tests (#3700)
* dummy pr * Update prompts.yaml * fixed tests and added query history pagination test * done * fixed * utils!
This commit is contained in:
@@ -6,6 +6,7 @@ from pydantic import BaseModel
|
||||
from pydantic import Field
|
||||
|
||||
from onyx.auth.schemas import UserRole
|
||||
from onyx.configs.constants import QAFeedbackType
|
||||
from onyx.context.search.enums import RecencyBiasSetting
|
||||
from onyx.db.enums import AccessType
|
||||
from onyx.server.documents.models import DocumentSource
|
||||
@@ -130,18 +131,21 @@ class DATestPersona(BaseModel):
|
||||
label_ids: list[int]
|
||||
|
||||
|
||||
#
|
||||
class DATestChatMessage(BaseModel):
|
||||
id: int
|
||||
chat_session_id: UUID
|
||||
parent_message_id: int | None
|
||||
message: str
|
||||
|
||||
|
||||
class DATestChatSession(BaseModel):
|
||||
id: UUID
|
||||
persona_id: int
|
||||
description: str
|
||||
|
||||
|
||||
class DATestChatMessage(BaseModel):
|
||||
id: int
|
||||
chat_session_id: UUID
|
||||
parent_message_id: int | None
|
||||
message: str
|
||||
class DAQueryHistoryEntry(DATestChatSession):
|
||||
feedback_type: QAFeedbackType | None
|
||||
|
||||
|
||||
class StreamedResponse(BaseModel):
|
||||
|
Reference in New Issue
Block a user