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

Method ExecutePlanDirect

pkg/agent/execution_plan.go:227–236  ·  view source on GitHub ↗

ExecutePlanDirect 直接执行指定计划(不设置为当前计划)

(ctx context.Context, plan *executionplan.ExecutionPlan)

Source from the content-addressed store, hash-verified

225
226// ExecutePlanDirect 直接执行指定计划(不设置为当前计划)
227func (m *ExecutionPlanManager) ExecutePlanDirect(ctx context.Context, plan *executionplan.ExecutionPlan) error {
228 // 创建工具上下文
229 toolCtx := &tools.ToolContext{
230 AgentID: m.agent.id,
231 Sandbox: m.agent.sandbox,
232 Signal: ctx,
233 }
234
235 return m.executor.Execute(ctx, plan, toolCtx)
236}
237
238// GetCurrentPlan 获取当前执行计划
239func (m *ExecutionPlanManager) GetCurrentPlan() *executionplan.ExecutionPlan {

Callers

nothing calls this directly

Calls 1

ExecuteMethod · 0.65

Tested by

no test coverage detected