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

Method KnowledgeBaseByName

internal/config/config.go:483–490  ·  view source on GitHub ↗

KnowledgeBaseByName returns a configured KB by name.

(name string)

Source from the content-addressed store, hash-verified

481
482// KnowledgeBaseByName returns a configured KB by name.
483func (c *Config) KnowledgeBaseByName(name string) (KnowledgeBaseConfig, bool) {
484 for _, kb := range c.KnowledgeBases {
485 if kb.Name == name {
486 return kb, true
487 }
488 }
489 return KnowledgeBaseConfig{}, false
490}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected