后端没修完版

This commit is contained in:
Typer_Body
2026-05-05 15:08:04 +08:00
parent a8fba46040
commit e7c9bc69d3
156 changed files with 34633 additions and 2149 deletions
@@ -0,0 +1,74 @@
# Call Pipeline Node Configuration
name: call_pipeline
category: action
icon: "⚙️"
color: '#ef4444'
description: 'workflows.nodes.callPipelineDescription'
inputs:
- name: query
type: string
label:
en_US: Query
zh_Hans: 查询
description:
en_US: Query to send
zh_Hans: 要发送的查询
- name: context
type: object
label:
en_US: Context
zh_Hans: 上下文
description:
en_US: Context data
zh_Hans: 上下文数据
required: false
outputs:
- name: response
type: string
label:
en_US: Response
zh_Hans: 响应
description:
en_US: Pipeline response
zh_Hans: 流水线响应
- name: result
type: object
label:
en_US: Result
zh_Hans: 结果
description:
en_US: Pipeline result
zh_Hans: 流水线结果
config:
- name: pipeline_uuid
type: pipeline-selector
required: true
label:
en_US: Pipeline
zh_Hans: 流水线
description:
en_US: Pipeline to call
zh_Hans: 要调用的流水线
- name: inherit_context
type: boolean
default: true
label:
en_US: Inherit Context
zh_Hans: 继承上下文
description:
en_US: Whether to inherit context
zh_Hans: 是否继承上下文
- name: timeout
type: integer
default: 120
label:
en_US: Timeout (seconds)
zh_Hans: 超时时间(秒)
description:
en_US: Timeout in seconds
zh_Hans: 超时时间(秒)
@@ -0,0 +1,73 @@
# Code Executor Node Configuration
# This file defines the metadata for the Code Executor workflow node
# The corresponding Python implementation is in: pkg/workflow/nodes/code_executor.py
name: code_executor
category: process
icon: "💻"
color: '#3b82f6'
description: 'workflows.nodes.codeExecutorDescription'
inputs:
- name: input
type: any
label:
en_US: Input
zh_Hans: 输入
description:
en_US: Input data for the code
zh_Hans: 代码的输入数据
outputs:
- name: output
type: any
label:
en_US: Output
zh_Hans: 输出
description:
en_US: Code execution result
zh_Hans: 代码执行结果
- name: logs
type: array
label:
en_US: Logs
zh_Hans: 日志
description:
en_US: Console logs from code execution
zh_Hans: 代码执行的控制台日志
config:
- name: language
type: select
required: true
default: javascript
options:
- javascript
- python
label:
en_US: Language
zh_Hans: 语言
description:
en_US: Programming language to use
zh_Hans: 要使用的编程语言
- name: code
type: textarea
required: true
default: "return input;"
label:
en_US: Code
zh_Hans: 代码
description:
en_US: Code to execute
zh_Hans: 要执行的代码
- name: timeout
type: integer
default: 5000
label:
en_US: Timeout (ms)
zh_Hans: 超时时间 (毫秒)
description:
en_US: Maximum execution time in milliseconds
zh_Hans: 最大执行时间(毫秒)
@@ -0,0 +1,122 @@
# Condition Node Configuration
# This file defines the metadata for the Condition workflow node
# The corresponding Python implementation is in: pkg/workflow/nodes/condition.py
name: condition
category: control
icon: "🔀"
color: '#8b5cf6'
description: 'workflows.nodes.conditionDescription'
inputs:
- name: input
type: any
label:
en_US: Input
zh_Hans: 输入
description:
en_US: Input data for condition evaluation
zh_Hans: 用于条件评估的输入数据
outputs:
- name: "true"
type: any
label:
en_US: True
zh_Hans:
description:
en_US: Output when condition is true
zh_Hans: 条件为真时的输出
- name: "false"
type: any
label:
en_US: False
zh_Hans:
description:
en_US: Output when condition is false
zh_Hans: 条件为假时的输出
config:
- name: condition_type
type: select
required: true
default: expression
options:
- expression
- comparison
- exists
- type_check
label:
en_US: Condition Type
zh_Hans: 条件类型
description:
en_US: Type of condition to evaluate
zh_Hans: 要评估的条件类型
- name: expression
type: string
default: ""
label:
en_US: Expression
zh_Hans: 表达式
description:
en_US: JavaScript expression that evaluates to true/false
zh_Hans: 评估为 true/false 的表达式
- name: left_value
type: string
default: "{{input}}"
label:
en_US: Left Value
zh_Hans: 左值
description:
en_US: Left side of comparison
zh_Hans: 比较的左侧
- name: operator
type: select
default: eq
options:
- eq
- neq
- gt
- gte
- lt
- lte
- contains
- starts_with
- ends_with
- matches
label:
en_US: Operator
zh_Hans: 运算符
description:
en_US: Comparison operator
zh_Hans: 比较运算符
- name: right_value
type: string
default: ""
label:
en_US: Right Value
zh_Hans: 右值
description:
en_US: Right side of comparison
zh_Hans: 比较的右侧
- name: expected_type
type: select
default: string
options:
- string
- number
- boolean
- object
- array
- "null"
label:
en_US: Expected Type
zh_Hans: 期望类型
description:
en_US: The type to check for
zh_Hans: 要检查的类型
@@ -0,0 +1,122 @@
# Coze Bot Node Configuration
name: coze_bot
label:
en_US: Coze Bot
zh_Hans: Coze Bot
description:
en_US: Call Coze API bot
zh_Hans: 调用扣子 API 机器人
category: integration
icon: MessageSquare
color: '#3b82f6'
inputs:
- name: query
type: string
label:
en_US: Query
zh_Hans: 查询
description:
en_US: User input/query
zh_Hans: 用户输入/查询
required: true
- name: conversation_id
type: string
label:
en_US: Conversation ID
zh_Hans: 会话 ID
description:
en_US: Conversation ID
zh_Hans: 会话 ID
required: false
outputs:
- name: answer
type: string
label:
en_US: Answer
zh_Hans: 答案
description:
en_US: Bot response
zh_Hans: 机器人回复
- name: conversation_id
type: string
label:
en_US: Conversation ID
zh_Hans: 会话 ID
description:
en_US: Conversation ID
zh_Hans: 会话 ID
- name: success
type: boolean
label:
en_US: Success
zh_Hans: 成功
description:
en_US: Whether the call was successful
zh_Hans: 调用是否成功
config:
- name: api-key
label:
en_US: API Key
zh_Hans: API 密钥
description:
en_US: Coze API key
zh_Hans: Coze API 密钥
type: string
required: true
default: ''
- name: bot-id
label:
en_US: Bot ID
zh_Hans: 机器人 ID
description:
en_US: ID of the bot to run
zh_Hans: 要运行的机器人 ID
type: string
required: true
default: ''
- name: api-base
label:
en_US: API Base URL
zh_Hans: API 基础 URL
description:
en_US: Base URL for Coze API
zh_Hans: Coze API 基础 URL
type: string
required: true
default: 'https://api.coze.cn'
options:
- name: 'https://api.coze.cn'
label:
en_US: Coze China
zh_Hans: Coze 中国版
- name: 'https://api.coze.com'
label:
en_US: Coze Global
zh_Hans: Coze 全球版
- name: auto-save-history
label:
en_US: Auto Save History
zh_Hans: 自动保存历史
description:
en_US: Whether to automatically save conversation history
zh_Hans: 是否自动保存对话历史
type: boolean
required: false
default: true
- name: timeout
label:
en_US: Request Timeout (seconds)
zh_Hans: 请求超时(秒)
description:
en_US: Timeout in seconds for API requests
zh_Hans: API 请求超时时间(秒)
type: number
required: false
default: 120
@@ -0,0 +1,80 @@
# Cron Trigger Node Configuration
# This file defines the metadata for the Cron Trigger workflow node
# The corresponding Python implementation is in: pkg/workflow/nodes/cron_trigger.py
name: cron_trigger
category: trigger
icon: "⏰"
color: '#22c55e'
description: 'workflows.nodes.cronTriggerDescription'
inputs: []
outputs:
- name: trigger_time
type: datetime
label:
en_US: Trigger Time
zh_Hans: 触发时间
description:
en_US: The time when the trigger fired
zh_Hans: 触发器触发的时间
- name: context
type: object
label:
en_US: Context
zh_Hans: 上下文
description:
en_US: Trigger context information
zh_Hans: 触发上下文信息
config:
- name: cron_expression
type: string
required: true
default: "0 9 * * *"
label:
en_US: Cron Expression
zh_Hans: Cron 表达式
description:
en_US: Standard cron expression
zh_Hans: 标准 Cron 表达式
- name: timezone
type: select
required: true
default: "Asia/Shanghai"
options:
- UTC
- Asia/Shanghai
- Asia/Tokyo
- America/New_York
- America/Los_Angeles
- Europe/London
- Europe/Berlin
label:
en_US: Timezone
zh_Hans: 时区
description:
en_US: Timezone for the cron schedule
zh_Hans: Cron 计划的时区
- name: description
type: string
default: ""
label:
en_US: Description
zh_Hans: 描述
description:
en_US: Description of this scheduled trigger
zh_Hans: 此定时触发器的描述
- name: enabled
type: boolean
default: true
label:
en_US: Enabled
zh_Hans: 启用
description:
en_US: Whether this scheduled trigger is active
zh_Hans: 此定时触发器是否激活
@@ -0,0 +1,67 @@
# Data Transform Node Configuration
# This file defines the metadata for the Data Transform workflow node
# The corresponding Python implementation is in: pkg/workflow/nodes/data_transform.py
name: data_transform
category: process
icon: "🔄"
color: '#3b82f6'
description: 'workflows.nodes.dataTransformDescription'
inputs:
- name: data
type: any
required: true
label:
en_US: Data
zh_Hans: 数据
description:
en_US: Input data
zh_Hans: 输入数据
outputs:
- name: result
type: any
label:
en_US: Result
zh_Hans: 结果
description:
en_US: Transform result
zh_Hans: 转换结果
config:
- name: transform_type
type: select
required: true
default: template
options:
- template
- jsonpath
- jmespath
- expression
label:
en_US: Transform Type
zh_Hans: 转换类型
description:
en_US: Type of transformation to perform
zh_Hans: 要执行的转换类型
- name: template
type: textarea
default: ""
label:
en_US: Template
zh_Hans: 模板
description:
en_US: Template with {{variable}} syntax
zh_Hans: 支持 {{variable}} 语法的模板
- name: expression
type: string
default: ""
label:
en_US: Expression
zh_Hans: 表达式
description:
en_US: JSONPath/JMESPath expression
zh_Hans: JSONPath/JMESPath 表达式
@@ -0,0 +1,110 @@
# Database Query Node Configuration
# This file defines the metadata for the Database Query workflow node
# The corresponding Python implementation is in: pkg/workflow/nodes/database_query.py
name: database_query
category: integration
icon: "🗄️"
color: '#ec4899'
description: 'workflows.nodes.databaseQueryDescription'
inputs:
- name: parameters
type: object
required: false
label:
en_US: Parameters
zh_Hans: 参数
description:
en_US: Query parameters
zh_Hans: 查询参数
outputs:
- name: results
type: array
label:
en_US: Results
zh_Hans: 结果
description:
en_US: Query results
zh_Hans: 查询结果
- name: row_count
type: number
label:
en_US: Row Count
zh_Hans: 行数
description:
en_US: Number of rows affected/returned
zh_Hans: 影响/返回的行数
- name: success
type: boolean
label:
en_US: Success
zh_Hans: 成功
description:
en_US: Whether query was successful
zh_Hans: 查询是否成功
config:
- name: connection_type
type: select
required: true
default: postgresql
options:
- postgresql
- mysql
- sqlite
label:
en_US: Database Type
zh_Hans: 数据库类型
description:
en_US: Type of database to connect to
zh_Hans: 要连接的数据库类型
- name: connection_string
type: string
required: true
default: ""
label:
en_US: Connection String
zh_Hans: 连接字符串
description:
en_US: Database connection string
zh_Hans: 数据库连接字符串
- name: query
type: textarea
required: true
default: ""
label:
en_US: SQL Query
zh_Hans: SQL 查询
description:
en_US: SQL query to execute
zh_Hans: 要执行的 SQL 查询
- name: query_type
type: select
required: true
default: select
options:
- select
- insert
- update
- delete
label:
en_US: Query Type
zh_Hans: 查询类型
description:
en_US: Type of query operation
zh_Hans: 查询操作的类型
- name: timeout
type: integer
default: 30
label:
en_US: Timeout (seconds)
zh_Hans: 超时时间(秒)
description:
en_US: Query timeout
zh_Hans: 查询超时时间
@@ -0,0 +1,74 @@
# Dify Knowledge Base Query Node Configuration
name: dify_knowledge_query
label:
en_US: Dify Knowledge Base
zh_Hans: Dify 知识库
description:
en_US: Query Dify knowledge base
zh_Hans: 查询 Dify 知识库
category: integration
icon: BookOpen
color: '#3b82f6'
inputs:
- name: query
type: string
label:
en_US: Query
zh_Hans: 查询
description:
en_US: Query content
zh_Hans: 查询内容
required: true
outputs:
- name: results
type: array
label:
en_US: Results
zh_Hans: 结果
description:
en_US: Search results
zh_Hans: 检索结果
- name: success
type: boolean
label:
en_US: Success
zh_Hans: 成功
description:
en_US: Whether the call was successful
zh_Hans: 调用是否成功
config:
- name: base-url
label:
en_US: Base URL
zh_Hans: 基础 URL
description:
en_US: Dify service base URL
zh_Hans: Dify 服务基础 URL
type: string
required: true
default: 'https://api.dify.ai/v1'
- name: api-key
label:
en_US: API Key
zh_Hans: API 密钥
description:
en_US: Dify API key
zh_Hans: Dify API 密钥
type: string
required: true
default: ''
- name: dataset_id
label:
en_US: Dataset ID
zh_Hans: 知识库 ID
description:
en_US: Knowledge base ID
zh_Hans: 知识库 ID
type: string
required: true
default: ''
@@ -0,0 +1,120 @@
# Dify Workflow Node Configuration
name: dify_workflow
label:
en_US: Dify Workflow
zh_Hans: Dify 工作流
description:
en_US: Call Dify service API
zh_Hans: 调用 Dify 服务 API
category: integration
icon: Bot
color: '#3b82f6'
inputs:
- name: query
type: string
label:
en_US: Query
zh_Hans: 查询
description:
en_US: User input/query
zh_Hans: 用户输入/查询
required: true
- name: conversation_id
type: string
label:
en_US: Conversation ID
zh_Hans: 会话 ID
description:
en_US: Conversation ID for multi-turn dialogue
zh_Hans: 多轮对话的会话 ID
required: false
outputs:
- name: answer
type: string
label:
en_US: Answer
zh_Hans: 答案
description:
en_US: Answer from Dify
zh_Hans: Dify 返回的答案
- name: conversation_id
type: string
label:
en_US: Conversation ID
zh_Hans: 会话 ID
description:
en_US: Conversation ID
zh_Hans: 会话 ID
- name: success
type: boolean
label:
en_US: Success
zh_Hans: 成功
description:
en_US: Whether the call was successful
zh_Hans: 调用是否成功
config:
- name: base-url
label:
en_US: Base URL
zh_Hans: 基础 URL
description:
en_US: Dify service base URL
zh_Hans: Dify 服务基础 URL
type: string
required: true
default: 'https://api.dify.ai/v1'
options:
- name: 'https://api.dify.ai/v1'
label:
en_US: Dify Cloud
zh_Hans: Dify 云服务
- name: base-prompt
label:
en_US: Base PROMPT
zh_Hans: 基础提示词
description:
en_US: When Dify receives a message with empty input (only images), it will pass this default prompt into it.
zh_Hans: 当 Dify 接收到输入文字为空(仅图片)的消息时,传入该默认提示词
type: string
required: true
default: "When the file content is readable, please read the content of this file. When the file is an image, describe the content of this image."
- name: app-type
label:
en_US: App Type
zh_Hans: 应用类型
description:
en_US: Application type
zh_Hans: 应用类型
type: select
required: true
default: chat
options:
- name: chat
label:
en_US: Chat (including Chatflow)
zh_Hans: 聊天(包括Chatflow
- name: agent
label:
en_US: Agent
zh_Hans: Agent
- name: workflow
label:
en_US: Workflow
zh_Hans: 工作流
- name: api-key
label:
en_US: API Key
zh_Hans: API 密钥
description:
en_US: Dify API key
zh_Hans: Dify API 密钥
type: string
required: true
default: ''
@@ -0,0 +1,48 @@
# End Node Configuration
# This file defines the metadata for the End workflow node
# The corresponding Python implementation is in: pkg/workflow/nodes/end.py
name: end
category: control
icon: "🛑"
color: '#8b5cf6'
description: 'workflows.nodes.endDescription'
inputs:
- name: input
type: any
required: false
label:
en_US: Input
zh_Hans: 输入
description:
en_US: Final output data
zh_Hans: 最终输出数据
outputs: []
config:
- name: status
type: select
required: true
default: success
options:
- success
- failed
- cancelled
label:
en_US: End Status
zh_Hans: 结束状态
description:
en_US: Status to report when workflow ends
zh_Hans: 工作流结束时报告的状态
- name: message
type: string
default: ""
label:
en_US: Message
zh_Hans: 消息
description:
en_US: Optional message to include with the end status
zh_Hans: 与结束状态一起包含的可选消息
@@ -0,0 +1,84 @@
# Event Trigger Node Configuration
# This file defines the metadata for the Event Trigger workflow node
# The corresponding Python implementation is in: pkg/workflow/nodes/event_trigger.py
name: event_trigger
category: trigger
icon: "📡"
color: '#22c55e'
description: 'workflows.nodes.eventTriggerDescription'
inputs: []
outputs:
- name: event
type: object
label:
en_US: Event
zh_Hans: 事件
description:
en_US: The event data
zh_Hans: 事件数据
- name: event_type
type: string
label:
en_US: Event Type
zh_Hans: 事件类型
description:
en_US: Type of the event
zh_Hans: 事件类型
- name: context
type: object
label:
en_US: Context
zh_Hans: 上下文
description:
en_US: Event context information
zh_Hans: 事件上下文信息
config:
- name: event_type
type: select
required: true
default: member_join
options:
- member_join
- member_leave
- message_recall
- group_created
- group_disbanded
- bot_added
- bot_removed
- friend_request
- group_request
label:
en_US: Event Type
zh_Hans: 事件类型
description:
en_US: The type of system event to listen for
zh_Hans: 要监听的系统事件类型
- name: source_filter
type: select
required: true
default: all
options:
- all
- group
- private
label:
en_US: Source Filter
zh_Hans: 来源筛选
description:
en_US: Filter events by source
zh_Hans: 按来源筛选事件
- name: platforms
type: json
default: []
label:
en_US: Platform Filter
zh_Hans: 平台筛选
description:
en_US: Only trigger for events from these platforms
zh_Hans: 仅对来自这些平台的事件触发
@@ -0,0 +1,157 @@
# HTTP Request Node Configuration
# This file defines the metadata for the HTTP Request workflow node
# The corresponding Python implementation is in: pkg/workflow/nodes/http_request.py
name: http_request
category: action
icon: "🌍"
color: '#10b981'
description: 'workflows.nodes.httpRequestDescription'
inputs:
- name: body
type: any
required: false
label:
en_US: Body
zh_Hans: 请求体
description:
en_US: Request body data
zh_Hans: 请求体数据
- name: variables
type: object
required: false
label:
en_US: Variables
zh_Hans: 变量
description:
en_US: Variables for URL/header templates
zh_Hans: URL/请求头模板的变量
outputs:
- name: response
type: any
label:
en_US: Response
zh_Hans: 响应
description:
en_US: Response body
zh_Hans: 响应体
- name: status_code
type: number
label:
en_US: Status Code
zh_Hans: 状态码
description:
en_US: HTTP status code
zh_Hans: HTTP 状态码
- name: headers
type: object
label:
en_US: Headers
zh_Hans: 响应头
description:
en_US: Response headers
zh_Hans: 响应头
- name: success
type: boolean
label:
en_US: Success
zh_Hans: 成功
description:
en_US: Whether request was successful
zh_Hans: 请求是否成功
config:
- name: method
type: select
required: true
default: GET
options:
- GET
- POST
- PUT
- PATCH
- DELETE
label:
en_US: Method
zh_Hans: 方法
description:
en_US: HTTP method
zh_Hans: HTTP 方法
- name: url
type: string
required: true
default: ""
label:
en_US: URL
zh_Hans: URL
description:
en_US: Request URL
zh_Hans: 请求 URL
- name: headers
type: json
default: "{}"
label:
en_US: Headers
zh_Hans: 请求头
description:
en_US: Request headers as JSON
zh_Hans: 请求头(JSON 格式)
- name: body_type
type: select
default: json
options:
- none
- json
- form
- raw
label:
en_US: Body Type
zh_Hans: 请求体类型
description:
en_US: Type of request body
zh_Hans: 请求体的类型
- name: body_template
type: textarea
default: ""
label:
en_US: Body Template
zh_Hans: 请求体模板
description:
en_US: Request body template
zh_Hans: 请求体模板
- name: timeout
type: integer
default: 30
label:
en_US: Timeout (seconds)
zh_Hans: 超时时间(秒)
description:
en_US: Request timeout in seconds
zh_Hans: 请求超时时间(秒)
- name: retry_count
type: integer
default: 0
label:
en_US: Retry Count
zh_Hans: 重试次数
description:
en_US: Number of retries on failure
zh_Hans: 失败时的重试次数
- name: ignore_ssl
type: boolean
default: false
label:
en_US: Ignore SSL Errors
zh_Hans: 忽略 SSL 错误
description:
en_US: Ignore SSL certificate verification errors
zh_Hans: 忽略 SSL 证书验证错误
@@ -0,0 +1,75 @@
# Iterator Node Configuration
name: iterator
category: control
icon: "🔄"
color: '#f59e0b'
description: 'workflows.nodes.iteratorDescription'
inputs:
- name: array
type: array
label:
en_US: Array
zh_Hans: 数组
description:
en_US: Array to iterate
zh_Hans: 要迭代的数组
outputs:
- name: item
type: any
label:
en_US: Item
zh_Hans: 项目
description:
en_US: Current item
zh_Hans: 当前项目
- name: index
type: integer
label:
en_US: Index
zh_Hans: 索引
description:
en_US: Current index
zh_Hans: 当前索引
- name: is_first
type: boolean
label:
en_US: Is First
zh_Hans: 是否第一个
description:
en_US: Whether this is the first item
zh_Hans: 是否是第一个项目
- name: is_last
type: boolean
label:
en_US: Is Last
zh_Hans: 是否最后一个
description:
en_US: Whether this is the last item
zh_Hans: 是否是最后一个项目
config:
- name: parallel
type: boolean
default: false
label:
en_US: Parallel
zh_Hans: 并行
description:
en_US: Whether to process in parallel
zh_Hans: 是否并行处理
- name: max_concurrency
type: integer
default: 5
min_value: 1
max_value: 100
label:
en_US: Max Concurrency
zh_Hans: 最大并发数
description:
en_US: Maximum concurrent tasks
zh_Hans: 最大并发任务数
show_if:
parallel: true
@@ -0,0 +1,111 @@
# Knowledge Retrieval Node Configuration
# This file defines the metadata for the Knowledge Retrieval workflow node
# The corresponding Python implementation is in: pkg/workflow/nodes/knowledge_retrieval.py
name: knowledge_retrieval
category: process
icon: "📚"
color: '#8b5cf6'
description: 'workflows.nodes.knowledgeRetrievalDescription'
inputs:
- name: query
type: string
label:
en_US: Query
zh_Hans: 查询
description:
en_US: Query text to search for
zh_Hans: 要搜索的查询文本
outputs:
- name: results
type: array
label:
en_US: Results
zh_Hans: 结果
description:
en_US: Retrieved documents/chunks
zh_Hans: 检索到的文档/块
- name: context
type: string
label:
en_US: Context
zh_Hans: 上下文
description:
en_US: Concatenated text from all results
zh_Hans: 所有结果的连接文本
- name: scores
type: array
label:
en_US: Scores
zh_Hans: 分数
description:
en_US: Similarity scores for each result
zh_Hans: 每个结果的相似度分数
config:
- name: knowledge_bases
type: json
required: true
default: []
label:
en_US: Knowledge Bases
zh_Hans: 知识库
description:
en_US: Select knowledge bases to search
zh_Hans: 选择要搜索的知识库
- name: top_k
type: integer
default: 5
label:
en_US: Top K Results
zh_Hans: 返回数量 (Top K)
description:
en_US: Number of top results to retrieve
zh_Hans: 返回的最相关结果数量
- name: similarity_threshold
type: number
default: 0.5
label:
en_US: Similarity Threshold
zh_Hans: 相似度阈值
description:
en_US: Minimum similarity score for results
zh_Hans: 结果的最小相似度分数
- name: retrieval_mode
type: select
default: vector
options:
- vector
- hybrid
- keyword
label:
en_US: Retrieval Mode
zh_Hans: 检索模式
description:
en_US: Method used for retrieving documents
zh_Hans: 用于检索文档的方法
- name: rerank_enabled
type: boolean
default: false
label:
en_US: Enable Reranking
zh_Hans: 启用重排序
description:
en_US: Use a reranking model to improve result relevance
zh_Hans: 使用重排序模型提高结果相关性
- name: rerank_model
type: string
default: ""
label:
en_US: Rerank Model
zh_Hans: 重排序模型
description:
en_US: Model to use for reranking results
zh_Hans: 用于结果重排序的模型
@@ -0,0 +1,107 @@
# Langflow Flow Node Configuration
name: langflow_flow
label:
en_US: Langflow Flow
zh_Hans: Langflow 流程
description:
en_US: Call Langflow API
zh_Hans: 调用 Langflow API
category: integration
icon: GitBranch
color: '#3b82f6'
inputs:
- name: input_value
type: string
label:
en_US: Input Value
zh_Hans: 输入内容
description:
en_US: Input content
zh_Hans: 输入内容
required: true
outputs:
- name: result
type: any
label:
en_US: Result
zh_Hans: 结果
description:
en_US: Flow execution result
zh_Hans: 流程执行结果
- name: success
type: boolean
label:
en_US: Success
zh_Hans: 成功
description:
en_US: Whether the call was successful
zh_Hans: 调用是否成功
config:
- name: base-url
label:
en_US: Base URL
zh_Hans: 基础 URL
description:
en_US: Langflow server base URL
zh_Hans: Langflow 服务器基础 URL
type: string
required: true
default: 'http://localhost:7860'
- name: api-key
label:
en_US: API Key
zh_Hans: API 密钥
description:
en_US: Langflow API key
zh_Hans: Langflow API 密钥
type: string
required: true
default: ''
- name: flow-id
label:
en_US: Flow ID
zh_Hans: 流程 ID
description:
en_US: Flow ID to run
zh_Hans: 要运行的流程 ID
type: string
required: true
default: ''
- name: input-type
label:
en_US: Input Type
zh_Hans: 输入类型
description:
en_US: Input type for the flow
zh_Hans: 流程的输入类型
type: string
required: false
default: chat
- name: output-type
label:
en_US: Output Type
zh_Hans: 输出类型
description:
en_US: Output type for the flow
zh_Hans: 流程的输出类型
type: string
required: false
default: chat
- name: tweaks
label:
en_US: Tweaks
zh_Hans: 调整参数
description:
en_US: Optional tweaks to apply to the flow
zh_Hans: 可选的流程调整参数
type: json
required: false
default: '{}'
@@ -0,0 +1,150 @@
# LLM Call Node Configuration
# This file defines the metadata for the LLM Call workflow node
# The corresponding Python implementation is in: pkg/workflow/nodes/llm_call.py
name: llm_call
category: process
icon: "🤖"
color: '#8b5cf6'
description: 'workflows.nodes.llmCallDescription'
inputs:
- name: input
type: string
required: false
label:
en_US: Input
zh_Hans: 输入
description:
en_US: Input text to send to the model
zh_Hans: 发送到模型的输入文本
- name: context
type: object
required: false
label:
en_US: Context
zh_Hans: 上下文
description:
en_US: Additional context data
zh_Hans: 额外的上下文数据
outputs:
- name: response
type: string
label:
en_US: Response
zh_Hans: 响应
description:
en_US: Model response text
zh_Hans: 模型响应文本
- name: usage
type: object
label:
en_US: Usage
zh_Hans: 使用量
description:
en_US: Token usage information
zh_Hans: Token 使用量信息
- name: parsed
type: object
label:
en_US: Parsed
zh_Hans: 解析结果
description:
en_US: Parsed output (if output format is JSON)
zh_Hans: 解析后的输出(如果输出格式为 JSON)
config:
- name: model
type: llm-model-selector
required: true
label:
en_US: Model
zh_Hans: 模型
description:
en_US: Select the LLM model to use
zh_Hans: 选择要使用的 LLM 模型
- name: system_prompt
type: textarea
label:
en_US: System Prompt
zh_Hans: 系统提示词
description:
en_US: System prompt to set the model behavior
zh_Hans: 设置模型行为的系统提示词
- name: user_prompt_template
type: textarea
required: true
default: "{{input}}"
label:
en_US: User Prompt Template
zh_Hans: 用户提示词模板
description:
en_US: User prompt template with variable placeholders
zh_Hans: 带有变量占位符的用户提示词模板
- name: temperature
type: number
default: 0.7
label:
en_US: Temperature
zh_Hans: 温度
description:
en_US: Controls randomness in responses
zh_Hans: 控制响应的随机性
- name: max_tokens
type: integer
default: 0
label:
en_US: Max Tokens
zh_Hans: 最大令牌数
description:
en_US: Maximum number of tokens to generate
zh_Hans: 生成的最大令牌数
- name: output_format
type: select
default: text
options:
- text
- json
- markdown
label:
en_US: Output Format
zh_Hans: 输出格式
description:
en_US: Expected format of the model output
zh_Hans: 模型输出的预期格式
- name: json_schema
type: textarea
default: ""
label:
en_US: JSON Schema
zh_Hans: JSON Schema
description:
en_US: JSON schema for structured output validation
zh_Hans: 用于结构化输出验证的 JSON Schema
- name: enable_tools
type: boolean
default: false
label:
en_US: Enable Tools
zh_Hans: 启用工具
description:
en_US: Allow the model to use function calling tools
zh_Hans: 允许模型使用函数调用工具
- name: tools
type: json
default: []
label:
en_US: Tools
zh_Hans: 工具
description:
en_US: Select tools that the model can use
zh_Hans: 选择模型可以使用的工具
@@ -0,0 +1,112 @@
# Loop Node Configuration
# This file defines the metadata for the Loop workflow node
# The corresponding Python implementation is in: pkg/workflow/nodes/loop.py
name: loop
category: control
icon: "🔁"
color: '#8b5cf6'
description: 'workflows.nodes.loopDescription'
inputs:
- name: items
type: array
required: false
label:
en_US: Items
zh_Hans: 项目
description:
en_US: Items to iterate over
zh_Hans: 要遍历的项目
outputs:
- name: item
type: any
label:
en_US: Item
zh_Hans: 当前项
description:
en_US: Current item in iteration
zh_Hans: 迭代中的当前项
- name: index
type: number
label:
en_US: Index
zh_Hans: 索引
description:
en_US: Current iteration index
zh_Hans: 当前迭代索引
- name: completed
type: any
label:
en_US: Completed
zh_Hans: 完成
description:
en_US: Output after loop completes
zh_Hans: 循环完成后的输出
config:
- name: loop_type
type: select
required: true
default: foreach
options:
- foreach
- while
- count
label:
en_US: Loop Type
zh_Hans: 循环类型
description:
en_US: Type of loop to execute
zh_Hans: 要执行的循环类型
- name: max_iterations
type: integer
default: 100
label:
en_US: Max Iterations
zh_Hans: 最大迭代次数
description:
en_US: Maximum number of iterations
zh_Hans: 最大迭代次数
- name: count
type: integer
default: 10
label:
en_US: Count
zh_Hans: 计数
description:
en_US: Number of times to iterate
zh_Hans: 迭代次数
- name: while_condition
type: string
default: ""
label:
en_US: While Condition
zh_Hans: While 条件
description:
en_US: Condition expression to continue looping
zh_Hans: 继续循环的条件表达式
- name: parallel
type: boolean
default: false
label:
en_US: Parallel Execution
zh_Hans: 并行执行
description:
en_US: Execute iterations in parallel
zh_Hans: 并行执行迭代
- name: parallel_limit
type: integer
default: 5
label:
en_US: Parallel Limit
zh_Hans: 并行限制
description:
en_US: Maximum number of parallel executions
zh_Hans: 最大并行执行数
@@ -0,0 +1,83 @@
# Mcp Tool Node Configuration
# This file defines the metadata for the Mcp Tool workflow node
# The corresponding Python implementation is in: pkg/workflow/nodes/mcp_tool.py
name: mcp_tool
category: integration
icon: 🔧
color: '#ec4899'
description: workflows.nodes.mcpToolDescription
inputs:
- name: arguments
type: object
required: false
label:
en_US: Arguments
zh_Hans: 参数
description:
en_US: Tool arguments
zh_Hans: 工具参数
outputs:
- name: result
type: any
label:
en_US: Result
zh_Hans: 结果
description:
en_US: Tool execution result
zh_Hans: 工具执行结果
- name: success
type: boolean
label:
en_US: Success
zh_Hans: 成功
description:
en_US: Whether tool call was successful
zh_Hans: 工具调用是否成功
- name: error
type: string
label:
en_US: Error
zh_Hans: 错误
description:
en_US: Error message if failed
zh_Hans: 失败时的错误信息
config:
- name: server_name
type: string
required: true
default: ''
label:
en_US: MCP Server
zh_Hans: MCP 服务器
description:
en_US: Name of the MCP server
zh_Hans: MCP 服务器名称
- name: tool_name
type: string
required: true
default: ''
label:
en_US: Tool Name
zh_Hans: 工具名称
description:
en_US: Name of the MCP tool to invoke
zh_Hans: 要调用的 MCP 工具名称
- name: arguments_template
type: textarea
default: ''
label:
en_US: Arguments Template
zh_Hans: 参数模板
description:
en_US: Tool arguments as JSON
zh_Hans: 工具参数(JSON 格式)
- name: timeout
type: integer
default: 30
label:
en_US: Timeout (seconds)
zh_Hans: 超时时间(秒)
description:
en_US: Maximum execution time
zh_Hans: 最大执行时间
@@ -0,0 +1,94 @@
# Memory Store Node Configuration
# This file defines the metadata for the Memory Store workflow node
# The corresponding Python implementation is in: pkg/workflow/nodes/memory_store.py
name: memory_store
category: integration
icon: "💾"
color: '#ec4899'
description: 'workflows.nodes.memoryStoreDescription'
inputs:
- name: value
type: any
required: false
label:
en_US: Value
zh_Hans:
description:
en_US: Value to store
zh_Hans: 要存储的值
outputs:
- name: result
type: any
label:
en_US: Result
zh_Hans: 结果
description:
en_US: Retrieved or stored value
zh_Hans: 检索到的或存储的值
- name: success
type: boolean
label:
en_US: Success
zh_Hans: 成功
description:
en_US: Whether operation was successful
zh_Hans: 操作是否成功
config:
- name: operation
type: select
required: true
default: get
options:
- get
- set
- delete
- append
- list
label:
en_US: Operation
zh_Hans: 操作
description:
en_US: Memory operation to perform
zh_Hans: 要执行的记忆操作
- name: key
type: string
required: true
default: ""
label:
en_US: Key
zh_Hans:
description:
en_US: Memory key
zh_Hans: 记忆键
- name: scope
type: select
required: true
default: execution
options:
- execution
- workflow
- session
- user
- global
label:
en_US: Scope
zh_Hans: 作用域
description:
en_US: Scope of the memory storage
zh_Hans: 记忆存储的作用域
- name: ttl
type: integer
default: 0
label:
en_US: TTL (seconds)
zh_Hans: TTL(秒)
description:
en_US: Time to live (0 = no expiry)
zh_Hans: 过期时间(0 = 不过期)
@@ -0,0 +1,72 @@
# Merge Node Configuration
name: merge
category: control
icon: "🔗"
color: '#f59e0b'
description: 'workflows.nodes.mergeDescription'
inputs:
- name: input_1
type: any
label:
en_US: Input 1
zh_Hans: 输入 1
description:
en_US: First input
zh_Hans: 第一个输入
- name: input_2
type: any
label:
en_US: Input 2
zh_Hans: 输入 2
description:
en_US: Second input
zh_Hans: 第二个输入
- name: input_3
type: any
label:
en_US: Input 3
zh_Hans: 输入 3
description:
en_US: Third input
zh_Hans: 第三个输入
required: false
- name: input_4
type: any
label:
en_US: Input 4
zh_Hans: 输入 4
description:
en_US: Fourth input
zh_Hans: 第四个输入
required: false
outputs:
- name: merged
type: object
label:
en_US: Merged
zh_Hans: 合并结果
description:
en_US: Merged result
zh_Hans: 合并后的结果
- name: array
type: array
label:
en_US: Array
zh_Hans: 数组
description:
en_US: All inputs as array
zh_Hans: 所有输入作为数组
config:
- name: merge_strategy
type: select
options: ["object", "array", "first_non_null", "concat"]
default: "object"
label:
en_US: Merge Strategy
zh_Hans: 合并策略
description:
en_US: Strategy for merging inputs
zh_Hans: 合并输入的策略
@@ -0,0 +1,100 @@
# Message Trigger Node Configuration
# This file defines the metadata for the Message Trigger workflow node
# The corresponding Python implementation is in: pkg/workflow/nodes/message_trigger.py
name: message_trigger
category: trigger
icon: "💬"
color: '#22c55e'
description: 'workflows.nodes.messageTriggerDescription'
inputs: []
outputs:
- name: message
type: object
label:
en_US: Message
zh_Hans: 消息
description:
en_US: The received message object
zh_Hans: 接收到的消息对象
- name: sender
type: object
label:
en_US: Sender
zh_Hans: 发送者
description:
en_US: Message sender information
zh_Hans: 消息发送者信息
- name: context
type: object
label:
en_US: Context
zh_Hans: 上下文
description:
en_US: Message context information
zh_Hans: 消息上下文信息
config:
- name: match_type
type: select
required: true
default: all
options:
- all
- prefix
- regex
- contains
- exact
label:
en_US: Match Type
zh_Hans: 匹配类型
description:
en_US: How to match the incoming message
zh_Hans: 如何匹配收到的消息
- name: match_pattern
type: string
default: ""
label:
en_US: Match Pattern
zh_Hans: 匹配模式
description:
en_US: The pattern to match against the message
zh_Hans: 用于匹配消息的模式
- name: message_source
type: select
required: true
default: all
options:
- all
- group
- private
label:
en_US: Message Source
zh_Hans: 消息来源
description:
en_US: Filter messages by source type
zh_Hans: 按来源类型筛选消息
- name: platforms
type: json
default: []
label:
en_US: Platform Filter
zh_Hans: 平台筛选
description:
en_US: Only trigger for messages from these platforms
zh_Hans: 仅对来自这些平台的消息触发
- name: ignore_bot_messages
type: boolean
default: true
label:
en_US: Ignore Bot Messages
zh_Hans: 忽略机器人消息
description:
en_US: Do not trigger for messages sent by bots
zh_Hans: 不对机器人发送的消息触发
@@ -0,0 +1,192 @@
# n8n Workflow Node Configuration
name: n8n_workflow
label:
en_US: n8n Workflow
zh_Hans: n8n 工作流
description:
en_US: Call n8n workflow API
zh_Hans: 调用 n8n 工作流 API
category: integration
icon: Workflow
color: '#3b82f6'
inputs:
- name: payload
type: object
label:
en_US: Payload
zh_Hans: 输入数据
description:
en_US: Workflow input data
zh_Hans: 工作流输入数据
required: false
outputs:
- name: result
type: any
label:
en_US: Result
zh_Hans: 结果
description:
en_US: Workflow execution result
zh_Hans: 工作流执行结果
- name: success
type: boolean
label:
en_US: Success
zh_Hans: 成功
description:
en_US: Whether the call was successful
zh_Hans: 调用是否成功
config:
- name: webhook-url
label:
en_US: Webhook URL
zh_Hans: Webhook URL
description:
en_US: n8n workflow webhook URL
zh_Hans: n8n 工作流 Webhook URL
type: string
required: true
default: ''
- name: auth-type
label:
en_US: Authentication Type
zh_Hans: 认证类型
description:
en_US: Authentication type for webhook call
zh_Hans: Webhook 调用的认证类型
type: select
required: true
default: none
options:
- name: none
label:
en_US: None
zh_Hans: 无认证
- name: basic
label:
en_US: Basic Auth
zh_Hans: 基本认证
- name: jwt
label:
en_US: JWT
zh_Hans: JWT认证
- name: header
label:
en_US: Header Auth
zh_Hans: 请求头认证
- name: basic-username
label:
en_US: Username
zh_Hans: 用户名
description:
en_US: Username for Basic Auth
zh_Hans: 基本认证的用户名
type: string
required: false
default: ''
show_if:
field: auth-type
operator: eq
value: basic
- name: basic-password
label:
en_US: Password
zh_Hans: 密码
description:
en_US: Password for Basic Auth
zh_Hans: 基本认证的密码
type: string
required: false
default: ''
show_if:
field: auth-type
operator: eq
value: basic
- name: jwt-secret
label:
en_US: Secret
zh_Hans: 密钥
description:
en_US: Secret for JWT authentication
zh_Hans: JWT认证的密钥
type: string
required: false
default: ''
show_if:
field: auth-type
operator: eq
value: jwt
- name: jwt-algorithm
label:
en_US: Algorithm
zh_Hans: 算法
description:
en_US: Algorithm for JWT authentication
zh_Hans: JWT认证的算法
type: string
required: false
default: HS256
show_if:
field: auth-type
operator: eq
value: jwt
- name: header-name
label:
en_US: Header Name
zh_Hans: 请求头名称
description:
en_US: Header name for Header Auth
zh_Hans: 请求头认证的名称
type: string
required: false
default: ''
show_if:
field: auth-type
operator: eq
value: header
- name: header-value
label:
en_US: Header Value
zh_Hans: 请求头值
description:
en_US: Header value for Header Auth
zh_Hans: 请求头认证的值
type: string
required: false
default: ''
show_if:
field: auth-type
operator: eq
value: header
- name: timeout
label:
en_US: Timeout (seconds)
zh_Hans: 超时时间(秒)
description:
en_US: Request timeout in seconds
zh_Hans: 请求超时时间(秒)
type: integer
required: false
default: 120
- name: output-key
label:
en_US: Output Key
zh_Hans: 输出键名
description:
en_US: Key name of output in webhook response
zh_Hans: Webhook 响应中输出内容的键名
type: string
required: false
default: response
@@ -0,0 +1,57 @@
# Opening Statement Node Configuration
name: opening_statement
category: action
icon: "👋"
color: '#ef4444'
description: 'workflows.nodes.openingStatementDescription'
inputs: []
outputs:
- name: statement
type: string
label:
en_US: Statement
zh_Hans: 声明
description:
en_US: Opening statement
zh_Hans: 开场声明
- name: suggested_questions
type: array
label:
en_US: Suggested Questions
zh_Hans: 建议问题
description:
en_US: Suggested questions
zh_Hans: 建议问题
config:
- name: statement
type: textarea
required: true
label:
en_US: Statement
zh_Hans: 声明
description:
en_US: Opening statement text
zh_Hans: 开场声明文本
- name: suggested_questions
type: json
default: ["问题1", "问题2", "问题3"]
label:
en_US: Suggested Questions
zh_Hans: 建议问题
description:
en_US: List of suggested questions
zh_Hans: 建议问题列表
- name: show_suggestions
type: boolean
default: true
label:
en_US: Show Suggestions
zh_Hans: 显示建议
description:
en_US: Whether to show suggestions
zh_Hans: 是否显示建议
@@ -0,0 +1,77 @@
# Parallel Node Configuration
# This file defines the metadata for the Parallel workflow node
# The corresponding Python implementation is in: pkg/workflow/nodes/parallel.py
name: parallel
category: control
icon: "⚡"
color: '#8b5cf6'
description: 'workflows.nodes.parallelDescription'
inputs:
- name: input
type: any
label:
en_US: Input
zh_Hans: 输入
description:
en_US: Input data for all branches
zh_Hans: 所有分支的输入数据
outputs:
- name: branch_1
type: any
label:
en_US: Branch 1
zh_Hans: 分支 1
description:
en_US: Branch 1 output
zh_Hans: 分支 1 输出
- name: branch_2
type: any
label:
en_US: Branch 2
zh_Hans: 分支 2
description:
en_US: Branch 2 output
zh_Hans: 分支 2 输出
- name: results
type: object
label:
en_US: Results
zh_Hans: 结果
description:
en_US: Combined results from all branches
zh_Hans: 所有分支的合并结果
config:
- name: branches
type: json
required: true
default: "[]"
label:
en_US: Branches
zh_Hans: 分支
description:
en_US: Define branches as JSON array
zh_Hans: 使用 JSON 数组定义分支
- name: wait_for_all
type: boolean
default: true
label:
en_US: Wait for All
zh_Hans: 等待全部完成
description:
en_US: Wait for all branches to complete
zh_Hans: 等待所有分支完成
- name: fail_fast
type: boolean
default: false
label:
en_US: Fail Fast
zh_Hans: 快速失败
description:
en_US: Stop all branches if any one fails
zh_Hans: 如果任何一个分支失败则停止所有分支
@@ -0,0 +1,87 @@
# Parameter Extractor Node Configuration
# This file defines the metadata for the Parameter Extractor workflow node
# The corresponding Python implementation is in: pkg/workflow/nodes/parameter_extractor.py
name: parameter_extractor
category: process
icon: "🔍"
color: '#8b5cf6'
description: 'workflows.nodes.parameterExtractorDescription'
inputs:
- name: text
type: string
label:
en_US: Text
zh_Hans: 文本
description:
en_US: Text to extract parameters from
zh_Hans: 要提取参数的文本
outputs:
- name: parameters
type: object
label:
en_US: Parameters
zh_Hans: 参数
description:
en_US: Extracted parameters as key-value pairs
zh_Hans: 提取的参数键值对
- name: missing
type: array
label:
en_US: Missing
zh_Hans: 缺失项
description:
en_US: List of required parameters that could not be extracted
zh_Hans: 无法提取的必需参数列表
- name: success
type: boolean
label:
en_US: Success
zh_Hans: 成功
description:
en_US: Whether all required parameters were extracted
zh_Hans: 是否所有必需参数都已提取
config:
- name: model
type: llm-model-selector
required: true
label:
en_US: Extraction Model
zh_Hans: 提取模型
description:
en_US: Select the model for parameter extraction
zh_Hans: 选择用于参数提取的模型
- name: parameters
type: textarea
required: true
default: "[]"
label:
en_US: Parameters Schema
zh_Hans: 参数架构
description:
en_US: JSON array defining expected parameters
zh_Hans: 定义期望参数的 JSON 数组
- name: extraction_prompt
type: textarea
default: ""
label:
en_US: Extraction Prompt
zh_Hans: 提取提示
description:
en_US: Additional instructions for the extraction model
zh_Hans: 提取模型的额外指令
- name: strict_mode
type: boolean
default: true
label:
en_US: Strict Mode
zh_Hans: 严格模式
description:
en_US: Fail if any required parameter cannot be extracted
zh_Hans: 如果任何必需参数无法提取则失败
@@ -0,0 +1,87 @@
# Question Classifier Node Configuration
# This file defines the metadata for the Question Classifier workflow node
# The corresponding Python implementation is in: pkg/workflow/nodes/question_classifier.py
name: question_classifier
category: process
icon: "🏷️"
color: '#8b5cf6'
description: 'workflows.nodes.questionClassifierDescription'
inputs:
- name: question
type: string
label:
en_US: Question
zh_Hans: 问题
description:
en_US: The question to classify
zh_Hans: 要分类的问题
outputs:
- name: category
type: string
label:
en_US: Category
zh_Hans: 分类
description:
en_US: The classified category
zh_Hans: 分类结果
- name: confidence
type: number
label:
en_US: Confidence
zh_Hans: 置信度
description:
en_US: Classification confidence score
zh_Hans: 分类置信度分数
- name: all_scores
type: object
label:
en_US: All Scores
zh_Hans: 所有分数
description:
en_US: Scores for all categories
zh_Hans: 所有分类的分数
config:
- name: model
type: llm-model-selector
required: true
label:
en_US: Classification Model
zh_Hans: 分类模型
description:
en_US: Select the model to use for classification
zh_Hans: 选择用于分类的模型
- name: categories
type: textarea
required: true
default: "[]"
label:
en_US: Categories Definition
zh_Hans: 分类定义
description:
en_US: Define categories in JSON format
zh_Hans: 使用 JSON 格式定义分类
- name: confidence_threshold
type: number
default: 0.7
label:
en_US: Confidence Threshold
zh_Hans: 置信度阈值
description:
en_US: Minimum confidence score required
zh_Hans: 所需的最小置信度分数
- name: fallback_category
type: string
default: other
label:
en_US: Fallback Category
zh_Hans: 默认分类
description:
en_US: Category to use when confidence is below threshold
zh_Hans: 当置信度低于阈值时使用的分类
@@ -0,0 +1,113 @@
# Redis Operation Node Configuration
# This file defines the metadata for the Redis Operation workflow node
# The corresponding Python implementation is in: pkg/workflow/nodes/redis_operation.py
name: redis_operation
category: integration
icon: "🔴"
color: '#ec4899'
description: 'workflows.nodes.redisOperationDescription'
inputs:
- name: key
type: string
required: false
label:
en_US: Key
zh_Hans:
description:
en_US: Redis key
zh_Hans: Redis 键
- name: value
type: any
required: false
label:
en_US: Value
zh_Hans:
description:
en_US: Value to store
zh_Hans: 要存储的值
outputs:
- name: result
type: any
label:
en_US: Result
zh_Hans: 结果
description:
en_US: Operation result
zh_Hans: 操作结果
- name: success
type: boolean
label:
en_US: Success
zh_Hans: 成功
description:
en_US: Whether operation was successful
zh_Hans: 操作是否成功
config:
- name: connection_url
type: string
required: true
default: "redis://localhost:6379"
label:
en_US: Redis URL
zh_Hans: Redis URL
description:
en_US: Redis connection URL
zh_Hans: Redis 连接 URL
- name: operation
type: select
required: true
default: get
options:
- get
- set
- delete
- exists
- incr
- decr
- hget
- hset
- lpush
- rpush
- lpop
- rpop
label:
en_US: Operation
zh_Hans: 操作
description:
en_US: Redis operation to perform
zh_Hans: 要执行的 Redis 操作
- name: key_template
type: string
default: ""
label:
en_US: Key Template
zh_Hans: 键模板
description:
en_US: Redis key template
zh_Hans: Redis 键模板
- name: hash_field
type: string
default: ""
label:
en_US: Hash Field
zh_Hans: 哈希字段
description:
en_US: Field name for hash operations
zh_Hans: 哈希操作的字段名
- name: ttl
type: integer
default: 0
label:
en_US: TTL (seconds)
zh_Hans: TTL(秒)
description:
en_US: Time to live for SET operations
zh_Hans: SET 操作的过期时间
@@ -0,0 +1,75 @@
# Reply Message Node Configuration
name: reply_message
category: action
icon: "↩️"
color: '#ef4444'
description: 'workflows.nodes.replyMessageDescription'
inputs:
- name: message
type: string
label:
en_US: Message
zh_Hans: 消息
description:
en_US: Message to reply
zh_Hans: 要回复的消息
outputs:
- name: status
type: string
label:
en_US: Status
zh_Hans: 状态
description:
en_US: Reply status
zh_Hans: 回复状态
- name: message_id
type: string
label:
en_US: Message ID
zh_Hans: 消息 ID
description:
en_US: Message ID
zh_Hans: 消息 ID
config:
- name: reply_mode
type: select
options: ["direct", "quote", "at"]
default: "direct"
label:
en_US: Reply Mode
zh_Hans: 回复模式
description:
en_US: How to reply
zh_Hans: 回复方式
- name: message_template
type: textarea
label:
en_US: Message Template
zh_Hans: 消息模板
description:
en_US: Message template with variable interpolation
zh_Hans: 支持变量插值的消息模板
- name: long_text_processing
type: json
label:
en_US: Long Text Processing
zh_Hans: 长文本处理
description:
en_US: Long text processing settings
zh_Hans: 长文本处理设置
pipeline_config_source: "pipeline:output:long-text-processing"
- name: force_delay
type: json
label:
en_US: Force Delay
zh_Hans: 强制延迟
description:
en_US: Force delay settings
zh_Hans: 强制延迟设置
pipeline_config_source: "pipeline:output:force-delay"
@@ -0,0 +1,95 @@
# Send Message Node Configuration
# This file defines the metadata for the Send Message workflow node
# The corresponding Python implementation is in: pkg/workflow/nodes/send_message.py
name: send_message
category: action
icon: "📤"
color: '#10b981'
description: 'workflows.nodes.sendMessageDescription'
inputs:
- name: content
type: string
required: false
label:
en_US: Content
zh_Hans: 内容
description:
en_US: Message content to send
zh_Hans: 要发送的消息内容
- name: context
type: object
required: false
label:
en_US: Context
zh_Hans: 上下文
description:
en_US: Message context (for reply)
zh_Hans: 消息上下文(用于回复)
outputs:
- name: message_id
type: string
label:
en_US: Message ID
zh_Hans: 消息 ID
description:
en_US: ID of the sent message
zh_Hans: 已发送消息的 ID
- name: success
type: boolean
label:
en_US: Success
zh_Hans: 成功
description:
en_US: Whether the message was sent successfully
zh_Hans: 消息是否发送成功
config:
- name: message_type
type: select
required: true
default: text
options:
- text
- markdown
- image
- file
- card
label:
en_US: Message Type
zh_Hans: 消息类型
description:
en_US: Type of message to send
zh_Hans: 要发送的消息类型
- name: content_template
type: textarea
default: ""
label:
en_US: Content Template
zh_Hans: 内容模板
description:
en_US: Message content template
zh_Hans: 消息内容模板
- name: reply_to_original
type: boolean
default: true
label:
en_US: Reply to Original
zh_Hans: 回复原消息
description:
en_US: Reply to the original message
zh_Hans: 回复原始消息
- name: at_sender
type: boolean
default: false
label:
en_US: '@ Sender'
zh_Hans: '@ 发送者'
description:
en_US: Mention the original sender
zh_Hans: 提及原始发送者
@@ -0,0 +1,59 @@
# Set Variable Node Configuration
name: set_variable
category: action
icon: "📝"
color: '#ef4444'
description: 'workflows.nodes.setVariableDescription'
inputs:
- name: value
type: any
label:
en_US: Value
zh_Hans:
description:
en_US: Value to set
zh_Hans: 要设置的值
outputs:
- name: value
type: any
label:
en_US: Value
zh_Hans:
description:
en_US: Set value
zh_Hans: 设置的值
config:
- name: variable_name
type: string
required: true
label:
en_US: Variable Name
zh_Hans: 变量名
description:
en_US: Name of the variable
zh_Hans: 变量名称
- name: variable_scope
type: select
options: ["workflow", "conversation"]
default: "workflow"
label:
en_US: Variable Scope
zh_Hans: 变量作用域
description:
en_US: Scope of the variable
zh_Hans: 变量作用域
- name: operation
type: select
options: ["set", "append", "increment", "decrement"]
default: "set"
label:
en_US: Operation
zh_Hans: 操作
description:
en_US: Operation to perform
zh_Hans: 要执行的操作
@@ -0,0 +1,65 @@
# Store Data Node Configuration
name: store_data
category: action
icon: "💾"
color: '#ef4444'
description: 'workflows.nodes.storeDataDescription'
inputs:
- name: key
type: string
label:
en_US: Key
zh_Hans:
description:
en_US: Storage key
zh_Hans: 存储键
- name: value
type: any
label:
en_US: Value
zh_Hans:
description:
en_US: Value to store
zh_Hans: 要存储的值
outputs:
- name: status
type: string
label:
en_US: Status
zh_Hans: 状态
description:
en_US: Store status
zh_Hans: 存储状态
config:
- name: storage_type
type: select
options: ["session", "user", "global", "database"]
default: "session"
label:
en_US: Storage Type
zh_Hans: 存储类型
description:
en_US: Type of storage
zh_Hans: 存储类型
- name: ttl
type: integer
default: 0
label:
en_US: TTL (seconds)
zh_Hans: 过期时间(秒)
description:
en_US: Time to live in seconds
zh_Hans: 存活时间(秒)
- name: key_prefix
type: string
label:
en_US: Key Prefix
zh_Hans: 键前缀
description:
en_US: Key prefix
zh_Hans: 键前缀
@@ -0,0 +1,78 @@
# Switch Node Configuration
# This file defines the metadata for the Switch workflow node
# The corresponding Python implementation is in: pkg/workflow/nodes/switch.py
name: switch
category: control
icon: "🔀"
color: '#8b5cf6'
description: 'workflows.nodes.switchDescription'
inputs:
- name: input
type: any
label:
en_US: Input
zh_Hans: 输入
description:
en_US: Value to switch on
zh_Hans: 用于切换的值
outputs:
- name: case_1
type: any
label:
en_US: Case 1
zh_Hans: 情况 1
description:
en_US: Case 1 output
zh_Hans: 情况 1 输出
- name: case_2
type: any
label:
en_US: Case 2
zh_Hans: 情况 2
description:
en_US: Case 2 output
zh_Hans: 情况 2 输出
- name: default
type: any
label:
en_US: Default
zh_Hans: 默认
description:
en_US: Default output
zh_Hans: 默认输出
config:
- name: switch_expression
type: string
required: true
default: "{{input}}"
label:
en_US: Switch Expression
zh_Hans: 开关表达式
description:
en_US: Expression to evaluate for switching
zh_Hans: 用于切换的表达式
- name: cases
type: json
required: true
default: "[]"
label:
en_US: Cases
zh_Hans: 情况
description:
en_US: Define cases as JSON array
zh_Hans: 使用 JSON 数组定义情况
- name: case_sensitive
type: boolean
default: true
label:
en_US: Case Sensitive
zh_Hans: 区分大小写
description:
en_US: Whether string comparisons are case-sensitive
zh_Hans: 字符串比较是否区分大小写
@@ -0,0 +1,48 @@
# Variable Aggregator Node Configuration
name: variable_aggregator
category: control
icon: "📊"
color: '#f59e0b'
description: 'workflows.nodes.variableAggregatorDescription'
inputs:
- name: variables
type: object
label:
en_US: Variables
zh_Hans: 变量
description:
en_US: Variables to aggregate
zh_Hans: 要聚合的变量
outputs:
- name: aggregated
type: object
label:
en_US: Aggregated
zh_Hans: 聚合结果
description:
en_US: Aggregated variables
zh_Hans: 聚合后的变量
config:
- name: variable_mappings
type: json
default: []
label:
en_US: Variable Mappings
zh_Hans: 变量映射
description:
en_US: Variable mapping configurations
zh_Hans: 变量映射配置
- name: aggregation_mode
type: select
options: ["merge", "override", "append"]
default: "merge"
label:
en_US: Aggregation Mode
zh_Hans: 聚合模式
description:
en_US: Mode for aggregating variables
zh_Hans: 变量聚合模式
@@ -0,0 +1,65 @@
# Wait Node Configuration
# This file defines the metadata for the Wait workflow node
# The corresponding Python implementation is in: pkg/workflow/nodes/wait.py
name: wait
category: control
icon: "⏳"
color: '#8b5cf6'
description: 'workflows.nodes.waitDescription'
inputs:
- name: input
type: any
required: false
label:
en_US: Input
zh_Hans: 输入
description:
en_US: Input to pass through
zh_Hans: 传递的输入
outputs:
- name: output
type: any
label:
en_US: Output
zh_Hans: 输出
description:
en_US: Passed through input
zh_Hans: 传递的输入
config:
- name: wait_type
type: select
required: true
default: duration
options:
- duration
- until
label:
en_US: Wait Type
zh_Hans: 等待类型
description:
en_US: Type of wait operation
zh_Hans: 等待操作的类型
- name: duration
type: integer
default: 5
label:
en_US: Duration (seconds)
zh_Hans: 时长(秒)
description:
en_US: Number of seconds to wait
zh_Hans: 等待的秒数
- name: until_time
type: string
default: ""
label:
en_US: Until Time
zh_Hans: 直到时间
description:
en_US: Wait until this time
zh_Hans: 等待直到此时间
@@ -0,0 +1,138 @@
# Webhook Trigger Node Configuration
# This file defines the metadata for the Webhook Trigger workflow node
# The corresponding Python implementation is in: pkg/workflow/nodes/webhook_trigger.py
name: webhook_trigger
category: trigger
icon: "🌐"
color: '#22c55e'
description: 'workflows.nodes.webhookTriggerDescription'
inputs: []
outputs:
- name: body
type: object
label:
en_US: Body
zh_Hans: 请求体
description:
en_US: Request body data
zh_Hans: 请求体数据
- name: headers
type: object
label:
en_US: Headers
zh_Hans: 请求头
description:
en_US: Request headers
zh_Hans: 请求头
- name: query
type: object
label:
en_US: Query
zh_Hans: 查询参数
description:
en_US: Query parameters
zh_Hans: 查询参数
- name: method
type: string
label:
en_US: Method
zh_Hans: HTTP 方法
description:
en_US: HTTP method
zh_Hans: HTTP 请求方法
config:
- name: webhook_path
type: string
required: true
default: ""
label:
en_US: Webhook Path
zh_Hans: Webhook 路径
description:
en_US: Unique path for this webhook
zh_Hans: 此 Webhook 的唯一路径
- name: auth_type
type: select
required: true
default: none
options:
- none
- token
- signature
- basic
label:
en_US: Authentication
zh_Hans: 认证方式
description:
en_US: How to authenticate incoming webhook requests
zh_Hans: 如何验证传入的 Webhook 请求
- name: auth_token
type: string
default: ""
label:
en_US: Auth Token
zh_Hans: 认证令牌
description:
en_US: Token or secret for authentication
zh_Hans: 用于认证的令牌或密钥
- name: allowed_ips
type: json
default: []
label:
en_US: Allowed IPs
zh_Hans: 允许的 IP
description:
en_US: List of allowed IP addresses
zh_Hans: 允许的 IP 地址列表
- name: allowed_methods
type: json
default: ["POST"]
label:
en_US: Allowed Methods
zh_Hans: 允许的方法
description:
en_US: Allowed HTTP methods
zh_Hans: 允许的 HTTP 方法
- name: content_type
type: select
default: "application/json"
options:
- "application/json"
- "application/x-www-form-urlencoded"
- "multipart/form-data"
- "text/plain"
label:
en_US: Content Type
zh_Hans: 内容类型
description:
en_US: Expected Content-Type
zh_Hans: 期望的内容类型
- name: validation
type: json
default: "{}"
label:
en_US: Validation Rules
zh_Hans: 验证规则
description:
en_US: Request validation rules
zh_Hans: 请求验证规则
- name: timeout
type: integer
default: 30
label:
en_US: Timeout (seconds)
zh_Hans: 超时时间(秒)
description:
en_US: Request timeout in seconds
zh_Hans: 请求超时时间(秒)