MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / NewManager

Function NewManager

internal/loop/manager.go:83–91  ·  view source on GitHub ↗

NewManager creates a new loop manager.

(maxIter int, provider Provider)

Source from the content-addressed store, hash-verified

81
82// NewManager creates a new loop manager.
83func NewManager(maxIter int, provider Provider) *Manager {
84 return &Manager{
85 instances: make(map[string]*LoopInstance),
86 events: make(chan ManagerEvent, 100),
87 maxIter: maxIter,
88 retryConfig: DefaultRetryConfig(),
89 provider: provider,
90 }
91}
92
93// SetRetryConfig sets the retry configuration for new loops.
94func (m *Manager) SetRetryConfig(config RetryConfig) {

Calls 1

DefaultRetryConfigFunction · 0.85