Files
rag-technical-docs-assistant/app/schemas/chat.py
T
2026-08-31 03:57:50 -04:00

12 lines
353 B
Python

from pydantic import BaseModel, Field
from typing import Optional
class ChatRequest(BaseModel):
query: str = Field(...,min_length=1,description="The query to be asked to the agent")
thread_id: Optional[str] = Field(None,description="The thread id to be used for the query")
class ChatResponse(BaseModel):
response: str
thread_id: str