feat: refactor logging and execution plan handling, introducing RunLogService for improved structure
This commit is contained in:
@@ -2,8 +2,6 @@ package skills
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"cs-agent/internal/models"
|
||||
)
|
||||
|
||||
// BuildExecutionPlan 构建当前请求的 Skill 执行计划。
|
||||
@@ -11,11 +9,6 @@ func BuildExecutionPlan(execCtx context.Context, ctx RuntimeContext) (*Execution
|
||||
return RuntimeService.BuildExecutionPlan(execCtx, ctx)
|
||||
}
|
||||
|
||||
// WriteRunLog 写入 Skill 路由日志。
|
||||
func WriteRunLog(log *models.SkillRunLog) error {
|
||||
return RuntimeService.WriteRunLog(log)
|
||||
}
|
||||
|
||||
// Select 执行一次 Skill 路由并记录路由日志。
|
||||
func Select(ctx context.Context, runtimeCtx RuntimeContext) (*ExecutionResult, error) {
|
||||
return RuntimeService.Select(ctx, runtimeCtx)
|
||||
|
||||
Reference in New Issue
Block a user