routeur_ia_api / graphs /models.py
Cyril Dupland
Enhance conversation workflows by introducing summarization and classification agents. Implement retrieval nodes for document fetching, and update settings for Supabase integration. Add Markdown to PDF conversion utilities and improve agent service to handle document metadata. Refactor agent registry to support orchestrated workflows.
0ef1224
raw
history blame
504 Bytes
from typing import Literal
from pydantic import BaseModel, Field
class QueryClassification(BaseModel):
"""Classification result for routing requests in the orchestrated workflow."""
classification: Literal["CLASSIC", "SUMMARIZE", "UNKNOWN"] = Field(
description="Classification of the user request",
examples=["CLASSIC", "SUMMARIZE", "UNKNOWN"],
)
reasoning: str = Field(
description="Short explanation of the classification decision",
default="",
)