Update the condition in Prompt class to use issubclass instead of isinstance when checking self.response_format against BaseModel. This allows for proper handling of subclasses of BaseModel.
Modified condition in two locations within prompt_base.py
Updated version number in pyproject.toml from 0.2.0 to 0.2.1
Notes: The user clarified that self.response_format can be a subclass of BaseModel, not just an instance. This change ensures that the code correctly identifies and processes response formats that inherit from BaseModel.
Update the condition in Prompt class to use issubclass instead of isinstance when checking self.response_format against BaseModel. This allows for proper handling of subclasses of BaseModel.
Notes: The user clarified that self.response_format can be a subclass of BaseModel, not just an instance. This change ensures that the code correctly identifies and processes response formats that inherit from BaseModel.