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

Method Delete

pkg/a2a/store.go:77–85  ·  view source on GitHub ↗

Delete 删除任务

(agentID, taskID string)

Source from the content-addressed store, hash-verified

75
76// Delete 删除任务
77func (s *InMemoryTaskStore) Delete(agentID, taskID string) error {
78 s.mu.Lock()
79 defer s.mu.Unlock()
80
81 key := makeKey(agentID, taskID)
82 delete(s.tasks, key)
83
84 return nil
85}
86
87// List 列出 Agent 的所有任务
88func (s *InMemoryTaskStore) List(agentID string) ([]*Task, error) {

Callers 1

Calls 2

deleteFunction · 0.85
makeKeyFunction · 0.70

Tested by 1