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

@@ -1,54 +1,54 @@
namespace go flow.devops.debugger.domain.infra
// ComponentType 支持组件类型
// ComponentType Supports component types
enum ComponentType {
Undefined = 0
CozePlugin = 10000 // Coze Plugin
CozeTool = 10001 // Coze Tool
CozeWorkflow = 10002 // Coze Workflow
CozeSubWorkflow = 10003 // Coze SubWorkflow即在Workflow中被引用的子Workflow
CozeLLMNode = 10004 // Coze workflow中的LLM节点
CozeCodeNode = 10005 // Coze workflow中的Code节点
CozeKnowledgeNode = 10006 // Coze workflow中的Knowledge节点
CozeToolNode = 10007 // Coze workflow中的Tool节点
CozeStartNode = 10008 // Coze workflow中的start节点
CozeVariableNode = 10009 // Coze workflow中的variable节点
CozeSubWorkflow = 10003 // Coze SubWorkflow, which is referenced in Workflow.
CozeLLMNode = 10004 // LLM nodes in Coze workflow
CozeCodeNode = 10005 // Coding nodes in a Coze workflow
CozeKnowledgeNode = 10006 // Knowledge nodes in Coze workflow
CozeToolNode = 10007 // Tools nodes in Coze workflow
CozeStartNode = 10008 // Coze workflow start node
CozeVariableNode = 10009 // Cozing variable nodes in workflow
CozeVariableBot = 20000 // Coze 虚拟节点用于标识 variable 依赖的bot
CozeVariableChat = 20001 // Coze 虚拟节点用于标识 variable 依赖的chat
CozeVariableBot = 20000 // Coze virtual nodes to identify variable dependent bots
CozeVariableChat = 20001 // Coze virtual nodes to identify variable dependent chats
}
// TrafficScene 流量请求场景
// TrafficScene traffic request scenario
enum TrafficScene {
Undefined = 0
CozeSingleAgentDebug = 10000 // 单Agent调试页
CozeMultiAgentDebug = 10001 // 多Agent调试页
CozeToolDebug = 10002 // Tool调试页
CozeWorkflowDebug = 10003 // Workflow调试页
CozeSingleAgentDebug = 10000 // Single Agent Debug Page
CozeMultiAgentDebug = 10001 // Multi-Agent Debug Page
CozeToolDebug = 10002 // Tool Debug Page
CozeWorkflowDebug = 10003 // Workflow debugging page
}
// ComponentMappingType 组件映射类型
// ComponentMappingType Component Mapping Types
enum ComponentMappingType {
Undefined = 0
MockSet = 1
}
// BizCtx 业务上下文
// BizCtx Business Context
struct BizCtx {
1: optional string connectorID // connectorID
2: optional string connectorUID // connector下用户ID
3: optional TrafficScene trafficScene // 业务场景
4: optional string trafficCallerID // 业务场景组件ID比如Bot调试页trafficSceneIDBotID
5: optional string bizSpaceID // 业务线SpaceID用于访问控制
6: optional map<string,string> ext // 额外信息
2: optional string connectorUID // User ID under connector
3: optional TrafficScene trafficScene // business scenario
4: optional string trafficCallerID // Business Scenario Component ID, such as Bot Debug Page, where trafficSceneID is BotID
5: optional string bizSpaceID // Line of business SpaceID for access control
6: optional map<string,string> ext // Additional information
}
// ComponentSubject 业务组件的二级结构
// Secondary structure of the ComponentSubject business component
struct ComponentSubject {
1: optional string componentID // 组件ID例如Tool IDNode ID
2: optional ComponentType componentType // 组件类型
3: optional string parentComponentID // 父组件ID例如Tool->Plugin, Node->Workflow
4: optional ComponentType parentComponentType // 父组件类型
1: optional string componentID // Component IDs, such as Tool ID, Node ID, etc
2: optional ComponentType componentType // component type
3: optional string parentComponentID // Parent component ID, e.g. Tool- > Plugin, Node- > Workflow
4: optional ComponentType parentComponentType // Parent component type
}
enum OrderBy {
@@ -62,9 +62,9 @@ struct Creator {
}
enum DebugScene {
Debug = 0 // 默认play ground Debug场景
Debug = 0 // Default play ground Debug scene
}
enum CozeChannel {
Coze = 0 // 默认为Coze, 未来扩展到其他渠道
Coze = 0 // Default to Coze, expand to other channels in the future
}

View File

@@ -3,10 +3,10 @@ namespace go flow.devops.debugger.domain.testcase
include "infra.thrift"
struct CaseDataBase {
1: optional i64 caseID (go.tag="json:\"caseID,string\"")// 新增时不填,更新时填写
1: optional i64 caseID (go.tag="json:\"caseID,string\"")// Do not fill in when adding, fill in when updating
2: optional string name
3: optional string description
4: optional string input // json格式的输入信息
4: optional string input // Input information in JSON format
5: optional bool isDefault
}
@@ -16,6 +16,6 @@ struct CaseDataDetail{
2: optional string creatorID
3: optional i64 createTimeInSec
4: optional i64 updateTimeInSec
5: optional bool schemaIncompatible // schema不兼容
5: optional bool schemaIncompatible // Schema incompatibility
6: optional infra.Creator updater,
}