chore: replace all cn comments to en version by volc api (#313)
This commit is contained in:
@@ -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调试页,则trafficSceneID为BotID
|
||||
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 ID、Node 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
|
||||
}
|
||||
@@ -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,
|
||||
}
|
||||
@@ -6,9 +6,9 @@ include "./domain/testcase.thrift"
|
||||
|
||||
// ========== TestCase =========== //
|
||||
struct SaveCaseDataReq {
|
||||
1: optional infra.BizCtx bizCtx // 业务信息
|
||||
1: optional infra.BizCtx bizCtx // business information
|
||||
2: optional infra.ComponentSubject bizComponentSubject
|
||||
3: optional testcase.CaseDataBase caseBase // case基本数据
|
||||
3: optional testcase.CaseDataBase caseBase // Case basic data
|
||||
|
||||
255: optional base.Base Base
|
||||
}
|
||||
@@ -22,8 +22,8 @@ struct SaveCaseDataResp {
|
||||
}
|
||||
|
||||
struct DeleteCaseDataReq {
|
||||
1: optional infra.BizCtx bizCtx // 业务信息
|
||||
2: optional list<i64> caseIDs // 单次上限20个
|
||||
1: optional infra.BizCtx bizCtx // business information
|
||||
2: optional list<i64> caseIDs // A single maximum of 20
|
||||
|
||||
255: optional base.Base Base
|
||||
}
|
||||
@@ -38,7 +38,7 @@ struct DeleteCaseDataResp {
|
||||
|
||||
struct CheckCaseDuplicateReq {
|
||||
1: optional infra.BizCtx bizCtx
|
||||
2: optional string caseName // case名称
|
||||
2: optional string caseName // Case name
|
||||
3: optional infra.ComponentSubject bizComponentSubject
|
||||
|
||||
255: optional base.Base Base
|
||||
@@ -46,7 +46,7 @@ struct CheckCaseDuplicateReq {
|
||||
|
||||
struct CheckCaseDuplicateResp {
|
||||
1: optional bool isPass
|
||||
2: optional string failReason // 当pass=false时,给出具体的校验不通过的原因
|
||||
2: optional string failReason // When pass = false, give the specific reason why the check failed
|
||||
3: optional i32 failCode
|
||||
|
||||
253: optional i32 code
|
||||
@@ -55,14 +55,14 @@ struct CheckCaseDuplicateResp {
|
||||
}
|
||||
|
||||
struct GetSchemaByIDReq {
|
||||
1: optional infra.BizCtx bizCtx // 业务信息
|
||||
1: optional infra.BizCtx bizCtx // business information
|
||||
2: optional infra.ComponentSubject bizComponentSubject
|
||||
|
||||
255: optional base.Base Base
|
||||
}
|
||||
|
||||
struct GetSchemaByIDResp {
|
||||
1: optional string schemaJson // Json格式的组件input信息,与Input Json Schema保持一致,不包含Value值信息
|
||||
1: optional string schemaJson // Component input information in JSON format, consistent with Input JSON Schema, does not contain Value information
|
||||
|
||||
253: optional i32 code
|
||||
254: optional string msg
|
||||
|
||||
Reference in New Issue
Block a user