Source code for kittycad.models.ai_prompt

import datetime
from typing import Optional

from pydantic import BaseModel, ConfigDict

from ..models.ai_feedback import AiFeedback
from ..models.ai_prompt_metadata import AiPromptMetadata
from ..models.ai_prompt_type import AiPromptType
from ..models.api_call_status import ApiCallStatus
from ..models.uuid import Uuid


[docs] class AiPrompt(BaseModel): """An AI prompt.""" completed_at: Optional[datetime.datetime] = None created_at: datetime.datetime error: Optional[str] = None feedback: Optional[AiFeedback] = None id: Uuid metadata: Optional[AiPromptMetadata] = None model_version: str output_file: Optional[str] = None prompt: str started_at: Optional[datetime.datetime] = None status: ApiCallStatus type: AiPromptType updated_at: datetime.datetime user_id: Uuid model_config = ConfigDict(protected_namespaces=())