mirror of
https://github.com/langgenius/dify.git
synced 2026-06-15 22:15:40 +08:00
d9e90d0fa0
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
30 lines
752 B
Python
30 lines
752 B
Python
from werkzeug.exceptions import BadRequest, Conflict, NotFound
|
|
|
|
|
|
class AgentNotFoundError(NotFound):
|
|
description = "Agent not found."
|
|
|
|
|
|
class AgentVersionNotFoundError(NotFound):
|
|
description = "Agent config version not found."
|
|
|
|
|
|
class AgentNameConflictError(Conflict):
|
|
description = "Agent name already exists."
|
|
|
|
|
|
class AgentArchivedError(Conflict):
|
|
description = "Archived agent cannot be modified."
|
|
|
|
|
|
class AgentSoulLockedError(BadRequest):
|
|
description = "Agent Soul is locked for this workflow node."
|
|
|
|
|
|
class InvalidComposerConfigError(BadRequest):
|
|
description = "Invalid agent composer config."
|
|
|
|
|
|
class PlaintextSecretNotAllowedError(BadRequest):
|
|
description = "Plaintext secret values are not allowed in Agent config."
|