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

Function NewInMemoryTaskStore

pkg/a2a/store.go:42–47  ·  view source on GitHub ↗

NewInMemoryTaskStore 创建内存任务存储

()

Source from the content-addressed store, hash-verified

40
41// NewInMemoryTaskStore 创建内存任务存储
42func NewInMemoryTaskStore() *InMemoryTaskStore {
43 return &InMemoryTaskStore{
44 tasks: make(map[string]*Task),
45 activeCancellations: make(map[string]bool),
46 }
47}
48
49// Load 加载任务
50func (s *InMemoryTaskStore) Load(agentID, taskID string) (*Task, error) {

Calls

no outgoing calls