MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / Set

Method Set

ai-provider/local/executor.go:55–64  ·  view source on GitHub ↗
(id string, p *Pipeline)

Source from the content-addressed store, hash-verified

53}
54
55func (m *modelPipeline) Set(id string, p *Pipeline) error {
56 _, ok := m.pipelines.Get(id)
57 if !ok {
58 if m.pipelines.Count() > m.maxSize {
59 return fmt.Errorf("pipeline size exceed %d", m.maxSize)
60 }
61 }
62 m.pipelines.Set(id, p)
63 return nil
64}
65
66func (m *modelPipeline) AddPipeline(id string) (*Pipeline, error) {
67 ctx, cancel := context.WithCancel(m.ctx)

Callers 1

AddPipelineMethod · 0.95

Calls 3

GetMethod · 0.65
CountMethod · 0.65
SetMethod · 0.65

Tested by

no test coverage detected