from pydantic import BaseModel from typing import Optional class KnowledgeAddRequest(BaseModel): text: str is_active: Optional[bool] = True knowledge_base_id: str