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

Struct InMemoryTaskStore

pkg/a2a/store.go:35–39  ·  view source on GitHub ↗

InMemoryTaskStore 内存任务存储 使用 Map 存储,支持并发访问

Source from the content-addressed store, hash-verified

33// InMemoryTaskStore 内存任务存储
34// 使用 Map 存储,支持并发访问
35type InMemoryTaskStore struct {
36 mu sync.RWMutex
37 tasks map[string]*Task // key: "agentID-taskID"
38 activeCancellations map[string]bool // key: taskID
39}
40
41// NewInMemoryTaskStore 创建内存任务存储
42func NewInMemoryTaskStore() *InMemoryTaskStore {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected