Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runtime ¶
type Runtime struct {
ExampleIndex *resource.RefreshableExampleIndex
RunbookRegistry *runbooks.Registry
RunbookIndex *resource.RefreshableRunbookIndex
EIPRegistry *eips.Registry
EIPIndex *resource.RefreshableEIPIndex
SpecsRegistry *consensusspecs.Registry
SpecsIndex *resource.RefreshableConsensusSpecIndex
// contains filtered or unexported fields
}
Runtime holds the semantic search indices and embedder.
func Build ¶
func Build( ctx context.Context, log logrus.FieldLogger, moduleRegistry *module.Registry, proxyService proxy.Service, cacheDir string, specsCfg config.ConsensusSpecsConfig, ) (*Runtime, error)
Build creates a new search runtime with example, runbook, EIP, and consensus spec indices. Embedding is provided by the proxy's remote embedding service. cacheDir enables a local filesystem cache for embedding vectors when non-empty.
func (*Runtime) OnDiscover ¶ added in v0.38.0
func (r *Runtime) OnDiscover()
OnDiscover is invoked after each successful proxy discovery. It activates semantic search the first time the proxy advertises an embedding model, then becomes a no-op (the background timer owns ongoing refresh). The build runs in its own goroutine so it never blocks the discovery path, guarded single-flight so overlapping discovery events cannot trigger concurrent builds.