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

Method ResumePlan

pkg/agent/execution_plan.go:282–294  ·  view source on GitHub ↗

ResumePlan 恢复执行当前计划

(ctx context.Context)

Source from the content-addressed store, hash-verified

280
281// ResumePlan 恢复执行当前计划
282func (m *ExecutionPlanManager) ResumePlan(ctx context.Context) error {
283 if m.currentPlan == nil {
284 return errors.New("no plan to resume")
285 }
286
287 toolCtx := &tools.ToolContext{
288 AgentID: m.agent.id,
289 Sandbox: m.agent.sandbox,
290 Signal: ctx,
291 }
292
293 return m.executor.Resume(ctx, m.currentPlan, toolCtx)
294}
295
296// ClearPlan 清除当前计划
297func (m *ExecutionPlanManager) ClearPlan() {

Callers

nothing calls this directly

Calls 1

ResumeMethod · 0.65

Tested by

no test coverage detected