"""Pydantic schemas for the FastAPI layer."""
from __future__ import annotations
from typing import Any
from pydantic import BaseModel, Field
class AgentQueryRequest(BaseModel):
"""Incoming query payload for the AI agent."""
query: str = Field(..., min_length=1, description="User query for the AI agent")
class AgentQueryResponse(BaseModel):
"""Outgoing response payload for the AI agent."""
response: str
action: str | None = None
tool_result: Any | None = None