2025-02-10 16:55:38 -08:00
|
|
|
from typing import Optional
|
|
|
|
|
2024-08-22 14:11:23 -07:00
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
|
|
|
|
from ..models.source_range import SourceRange
|
|
|
|
|
|
|
|
|
|
|
|
class SourceRangePrompt(BaseModel):
|
|
|
|
"""A source range and prompt for a text to CAD iteration."""
|
|
|
|
|
2025-02-10 16:55:38 -08:00
|
|
|
file: Optional[str] = None
|
|
|
|
|
2024-08-22 14:11:23 -07:00
|
|
|
prompt: str
|
|
|
|
|
|
|
|
range: SourceRange
|
|
|
|
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|