constants.tsx 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. import type { Block } from '../types'
  2. import { BlockEnum } from '../types'
  3. import { BlockClassificationEnum } from './types'
  4. export const BLOCKS: Block[] = [
  5. {
  6. classification: BlockClassificationEnum.Default,
  7. type: BlockEnum.Start,
  8. title: 'Start',
  9. description: '',
  10. },
  11. {
  12. classification: BlockClassificationEnum.Default,
  13. type: BlockEnum.LLM,
  14. title: 'LLM',
  15. },
  16. {
  17. classification: BlockClassificationEnum.Default,
  18. type: BlockEnum.KnowledgeRetrieval,
  19. title: 'Knowledge Retrieval',
  20. },
  21. {
  22. classification: BlockClassificationEnum.Default,
  23. type: BlockEnum.End,
  24. title: 'End',
  25. },
  26. {
  27. classification: BlockClassificationEnum.Default,
  28. type: BlockEnum.Answer,
  29. title: 'Direct Answer',
  30. },
  31. {
  32. classification: BlockClassificationEnum.QuestionUnderstand,
  33. type: BlockEnum.QuestionClassifier,
  34. title: 'Question Classifier',
  35. },
  36. {
  37. classification: BlockClassificationEnum.Logic,
  38. type: BlockEnum.IfElse,
  39. title: 'IF/ELSE',
  40. },
  41. {
  42. classification: BlockClassificationEnum.Logic,
  43. type: BlockEnum.Iteration,
  44. title: 'Iteration',
  45. },
  46. {
  47. classification: BlockClassificationEnum.Transform,
  48. type: BlockEnum.Code,
  49. title: 'Code',
  50. },
  51. {
  52. classification: BlockClassificationEnum.Transform,
  53. type: BlockEnum.TemplateTransform,
  54. title: 'Templating Transform',
  55. },
  56. {
  57. classification: BlockClassificationEnum.Transform,
  58. type: BlockEnum.VariableAggregator,
  59. title: 'Variable Aggregator',
  60. },
  61. {
  62. classification: BlockClassificationEnum.Transform,
  63. type: BlockEnum.DocExtractor,
  64. title: 'Doc Extractor',
  65. },
  66. {
  67. classification: BlockClassificationEnum.Transform,
  68. type: BlockEnum.Assigner,
  69. title: 'Variable Assigner',
  70. },
  71. {
  72. classification: BlockClassificationEnum.Transform,
  73. type: BlockEnum.ParameterExtractor,
  74. title: 'Parameter Extractor',
  75. },
  76. {
  77. classification: BlockClassificationEnum.Utilities,
  78. type: BlockEnum.HttpRequest,
  79. title: 'HTTP Request',
  80. },
  81. {
  82. classification: BlockClassificationEnum.Utilities,
  83. type: BlockEnum.ListFilter,
  84. title: 'List Filter',
  85. },
  86. ]
  87. export const BLOCK_CLASSIFICATIONS: string[] = [
  88. BlockClassificationEnum.Default,
  89. BlockClassificationEnum.QuestionUnderstand,
  90. BlockClassificationEnum.Logic,
  91. BlockClassificationEnum.Transform,
  92. BlockClassificationEnum.Utilities,
  93. ]