You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

parameter_entities.py 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. from enum import StrEnum, auto
  2. class CommonParameterType(StrEnum):
  3. SECRET_INPUT = "secret-input"
  4. TEXT_INPUT = "text-input"
  5. SELECT = auto()
  6. STRING = auto()
  7. NUMBER = auto()
  8. FILE = auto()
  9. FILES = auto()
  10. SYSTEM_FILES = "system-files"
  11. BOOLEAN = auto()
  12. APP_SELECTOR = "app-selector"
  13. MODEL_SELECTOR = "model-selector"
  14. TOOLS_SELECTOR = "array[tools]"
  15. ANY = auto()
  16. # Dynamic select parameter
  17. # Once you are not sure about the available options until authorization is done
  18. # eg: Select a Slack channel from a Slack workspace
  19. DYNAMIC_SELECT = "dynamic-select"
  20. # TOOL_SELECTOR = "tool-selector"
  21. # MCP object and array type parameters
  22. ARRAY = auto()
  23. OBJECT = auto()
  24. class AppSelectorScope(StrEnum):
  25. ALL = auto()
  26. CHAT = auto()
  27. WORKFLOW = auto()
  28. COMPLETION = auto()
  29. class ModelSelectorScope(StrEnum):
  30. LLM = auto()
  31. TEXT_EMBEDDING = "text-embedding"
  32. RERANK = auto()
  33. TTS = auto()
  34. SPEECH2TEXT = auto()
  35. MODERATION = auto()
  36. VISION = auto()
  37. class ToolSelectorScope(StrEnum):
  38. ALL = auto()
  39. CUSTOM = auto()
  40. BUILTIN = auto()
  41. WORKFLOW = auto()