MCPcopy Create free account
hub / github.com/astercloud/aster / WithOnPlanComplete

Function WithOnPlanComplete

pkg/executionplan/executor.go:50–54  ·  view source on GitHub ↗

WithOnPlanComplete 设置计划完成回调

(fn func(plan *ExecutionPlan))

Source from the content-addressed store, hash-verified

48
49// WithOnPlanComplete 设置计划完成回调
50func WithOnPlanComplete(fn func(plan *ExecutionPlan)) ExecutorOption {
51 return func(e *Executor) {
52 e.onPlanComplete = fn
53 }
54}
55
56// NewExecutor 创建执行计划执行器
57// toolMap: 工具名称到工具实例的映射

Callers 1

Calls

no outgoing calls

Tested by 1