MCPcopy Create free account
hub / github.com/InferCore/InferCore / NewBasicEngine

Function NewBasicEngine

internal/policy/basic_engine.go:22–27  ·  view source on GitHub ↗
(cfg *config.Config)

Source from the content-addressed store, hash-verified

20}
21
22func NewBasicEngine(cfg *config.Config) *BasicEngine {
23 return &BasicEngine{
24 cfg: cfg,
25 tenantCounts: map[string]int{},
26 }
27}
28
29func (e *BasicEngine) Evaluate(_ context.Context, req types.AIRequest) (types.PolicyDecision, error) {
30 tenant, ok := e.cfg.TenantByID(req.TenantID)

Calls

no outgoing calls