dify/api/core/plugin/entities/plugin_daemon.py
2024-09-20 14:43:01 +08:00

16 lines
289 B
Python

from typing import Generic, Optional, TypeVar
from pydantic import BaseModel
T = TypeVar("T", bound=(BaseModel | dict))
class PluginDaemonBasicResponse(BaseModel, Generic[T]):
"""
Basic response from plugin daemon.
"""
code: int
message: str
data: Optional[T]