file_entities.py 317 B

12345678910111213141516
  1. from pydantic import BaseModel
  2. from core.file.constants import FILE_MODEL_IDENTITY
  3. from core.file.enums import FileType
  4. class PluginFileEntity(BaseModel):
  5. """
  6. File entity for plugin tool.
  7. """
  8. dify_model_identity: str = FILE_MODEL_IDENTITY
  9. mime_type: str | None
  10. type: FileType
  11. url: str