1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- import type { Block } from '../types'
- import { BlockEnum } from '../types'
- import { BlockClassificationEnum } from './types'
- export const BLOCKS: Block[] = [
- {
- classification: BlockClassificationEnum.Default,
- type: BlockEnum.Start,
- title: 'Start',
- description: '',
- },
- {
- classification: BlockClassificationEnum.Default,
- type: BlockEnum.LLM,
- title: 'LLM',
- },
- {
- classification: BlockClassificationEnum.Default,
- type: BlockEnum.KnowledgeRetrieval,
- title: 'Knowledge Retrieval',
- },
- {
- classification: BlockClassificationEnum.Default,
- type: BlockEnum.End,
- title: 'End',
- },
- {
- classification: BlockClassificationEnum.Default,
- type: BlockEnum.Answer,
- title: 'Direct Answer',
- },
- {
- classification: BlockClassificationEnum.QuestionUnderstand,
- type: BlockEnum.QuestionClassifier,
- title: 'Question Classifier',
- },
- {
- classification: BlockClassificationEnum.Logic,
- type: BlockEnum.IfElse,
- title: 'IF/ELSE',
- },
- {
- classification: BlockClassificationEnum.Logic,
- type: BlockEnum.Iteration,
- title: 'Iteration',
- },
- {
- classification: BlockClassificationEnum.Transform,
- type: BlockEnum.Code,
- title: 'Code',
- },
- {
- classification: BlockClassificationEnum.Transform,
- type: BlockEnum.TemplateTransform,
- title: 'Templating Transform',
- },
- {
- classification: BlockClassificationEnum.Transform,
- type: BlockEnum.VariableAggregator,
- title: 'Variable Aggregator',
- },
- {
- classification: BlockClassificationEnum.Transform,
- type: BlockEnum.DocExtractor,
- title: 'Doc Extractor',
- },
- {
- classification: BlockClassificationEnum.Transform,
- type: BlockEnum.Assigner,
- title: 'Variable Assigner',
- },
- {
- classification: BlockClassificationEnum.Transform,
- type: BlockEnum.ParameterExtractor,
- title: 'Parameter Extractor',
- },
- {
- classification: BlockClassificationEnum.Utilities,
- type: BlockEnum.HttpRequest,
- title: 'HTTP Request',
- },
- {
- classification: BlockClassificationEnum.Utilities,
- type: BlockEnum.ListFilter,
- title: 'List Filter',
- },
- ]
- export const BLOCK_CLASSIFICATIONS: string[] = [
- BlockClassificationEnum.Default,
- BlockClassificationEnum.QuestionUnderstand,
- BlockClassificationEnum.Logic,
- BlockClassificationEnum.Transform,
- BlockClassificationEnum.Utilities,
- ]
|