MCPcopy Create free account
hub / github.com/atripati/ark / NewEngineWithStore

Function NewEngineWithStore

pkg/context/engine.go:49–56  ·  view source on GitHub ↗
(mgr *Manager, config EngineConfig, s store.Store)

Source from the content-addressed store, hash-verified

47}
48
49func NewEngineWithStore(mgr *Manager, config EngineConfig, s store.Store) *Engine {
50 return &Engine{
51 mgr: mgr,
52 tracer: NewTracer(),
53 ranker: NewToolRankerWithStore(s),
54 config: config,
55 }
56}
57
58func (e *Engine) RankTools(query string) []RankedTool {
59 return e.ranker.Rank(query, e.mgr)

Callers

nothing calls this directly

Calls 2

NewTracerFunction · 0.85
NewToolRankerWithStoreFunction · 0.85

Tested by

no test coverage detected