chore: replace all cn comments to en version by volc api (#313)

This commit is contained in:
tecvan
2025-07-31 15:18:11 +08:00
committed by GitHub
parent 91d6cdb430
commit 5abc63fba6
254 changed files with 5899 additions and 5844 deletions

View File

@@ -17,27 +17,27 @@ struct CreateShortcutCommandResponse {
struct ShortcutStruct {
16: optional list<string> shortcut_sort // 快捷指令ID列表 实体上绑定的
17: optional list<ShortcutCommand> shortcut_list // 快捷指令内容list
16: optional list<string> shortcut_sort // Shortcut ID list, bound on the entity
17: optional list<ShortcutCommand> shortcut_list // Quick command content list
}
struct ShortcutCommand {
2 : i64 object_id (api.js_conv="true") // 绑定实体ID
3 : string command_name // 命令名称
4 : string shortcut_command // 快捷指令
5 : string description // 描述
6 : SendType send_type // 发送类型
7 : ToolType tool_type // 使用工具type
2 : i64 object_id (api.js_conv="true") // Binding Entity ID
3 : string command_name // command name
4 : string shortcut_command // Quick Instruction
5 : string description // describe
6 : SendType send_type // Send type
7 : ToolType tool_type // Use tool type
8 : string work_flow_id
9 : string plugin_id
10: string plugin_api_name
11 : string template_query // 模板query
12 : list<Components> components_list // panel参数
15 : string card_schema // 表单的schema
16 : i64 command_id (api.js_conv="true") // 指令ID
17 : ToolInfo tool_info //工具信息 包含name+变量列表+...
18 : ShortcutFileInfo shortcut_icon // 指令图标
21 : optional string agent_id //multi的指令时,该指令由哪个节点执行
11 : string template_query // Template query
12 : list<Components> components_list // Panel parameters
15 : string card_schema // Form schema
16 : i64 command_id (api.js_conv="true") // Instruction ID
17 : ToolInfo tool_info //Tool information, including name + variable list +...
18 : ShortcutFileInfo shortcut_icon // command icon
21 : optional string agent_id //Multi instruction, which node executes the instruction
22 : i64 plugin_api_id (api.js_conv="true")
}
@@ -47,15 +47,15 @@ struct ShortcutFileInfo {
}
struct Components { // panel参数
struct Components { // Panel parameters
1 : string name
2 : string description
3 : InputType input_type
4 : string parameter // 请求工具时参数的key
4 : string parameter // When requesting the tool, the key of the parameter
5 : list<string> options
6 : DefaultValue default_value
7 : bool hide // 是否隐藏不展示
8 : list<InputType> upload_options // input_typeMixUpload时,支持哪些类型
7 : bool hide // Whether to hide or not to show
8 : list<InputType> upload_options // What types are supported input_type MixUpload
}
struct DefaultValue {
@@ -65,26 +65,26 @@ struct DefaultValue {
struct ToolInfo {
1:string tool_name
2:list<ToolParams> tool_params_list // 变量列表 插件&workFLow
2:list<ToolParams> tool_params_list // Variable lists, plugins & workFLow
}
struct ToolParams { // 参数列表
struct ToolParams { // parameter list
1 : string name
2 : bool required
3 : string desc
4 : string type
6 : string default_value // 默认值
8 : bool refer_component // 是否是panel参数
6 : string default_value // default value
8 : bool refer_component // Is it a panel parameter?
}
enum SendType {
SendTypeQuery = 0 // 直接发query
SendTypePanel = 1 // 使用面板
SendTypeQuery = 0 // Send query directly
SendTypePanel = 1 // use panel
}
enum ToolType {
ToolTypeWorkFlow = 1 // 使用WorkFlow
ToolTypePlugin = 2 // 使用插件
ToolTypeWorkFlow = 1 // Using WorkFlow
ToolTypePlugin = 2 // use plug-ins
}
enum InputType {