refactor(workflow): Move the plugin component in the Workflow package into the common crossdomain package (#717)
This commit is contained in:
@@ -35,6 +35,7 @@ import (
|
||||
"github.com/cloudwego/eino/schema"
|
||||
callbacks2 "github.com/cloudwego/eino/utils/callbacks"
|
||||
|
||||
"github.com/coze-dev/coze-studio/backend/api/model/crossdomain/plugin"
|
||||
workflow2 "github.com/coze-dev/coze-studio/backend/api/model/workflow"
|
||||
"github.com/coze-dev/coze-studio/backend/domain/workflow"
|
||||
"github.com/coze-dev/coze-studio/backend/domain/workflow/entity"
|
||||
@@ -64,7 +65,7 @@ type WorkflowHandler struct {
|
||||
nodeCount int32
|
||||
requireCheckpoint bool
|
||||
resumeEvent *entity.InterruptEvent
|
||||
exeCfg vo.ExecuteConfig
|
||||
exeCfg plugin.ExecuteConfig
|
||||
rootTokenCollector *TokenCollector
|
||||
}
|
||||
|
||||
@@ -74,7 +75,7 @@ type ToolHandler struct {
|
||||
}
|
||||
|
||||
func NewRootWorkflowHandler(wb *entity.WorkflowBasic, executeID int64, requireCheckpoint bool,
|
||||
ch chan<- *Event, resumedEvent *entity.InterruptEvent, exeCfg vo.ExecuteConfig, nodeCount int32,
|
||||
ch chan<- *Event, resumedEvent *entity.InterruptEvent, exeCfg plugin.ExecuteConfig, nodeCount int32,
|
||||
) callbacks.Handler {
|
||||
return &WorkflowHandler{
|
||||
ch: ch,
|
||||
|
||||
Reference in New Issue
Block a user