DB-GPT/dbgpt/agent/core/schema.py
2024-04-10 22:44:53 +08:00

28 lines
456 B
Python

"""Schema definition for the agent."""
from enum import Enum
class PluginStorageType(Enum):
"""Plugin storage type."""
Git = "git"
Oss = "oss"
class ApiTagType(Enum):
"""API tag type."""
API_VIEW = "dbgpt_view"
API_CALL = "dbgpt_call"
class Status(Enum):
"""Status of a task."""
TODO = "todo"
RUNNING = "running"
WAITING = "waiting"
RETRYING = "retrying"
FAILED = "failed"
COMPLETE = "complete"