def __init__(
        self,
        pydantic_cls: Type[T],
        current_artifact: Optional[T] = None,
    ) -> None:
        """
        Initialize the artifact editor tool spec.

        Args:
            pydantic_cls (BaseModel): The Pydantic model class to edit
            current_artifact (Optional[BaseModel]): The initial artifact instance to use

        """
        self.pydantic_cls = pydantic_cls
        self.current_artifact: Optional[T] = current_artifact

        Initialize the artifact editor tool spec.

        Args:
            pydantic_cls (BaseModel): The Pydantic model class to edit
            current_artifact (Optional[BaseModel]): The initial artifact instance to use

        
llama-index-integrations/tools/llama-index-tools-artifact-editor/llama_index/tools/artifact_editor/base.py