runtime

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Services

type Services struct {
	// contains filtered or unexported fields
}

Services holds references to dynamically configurable services. AI services (Embedding, LLM) can be updated at runtime via API. Thread-safe for concurrent access.

func NewServices

func NewServices(config *domain.RuntimeConfig) *Services

NewServices creates a new Services registry

func (*Services) Close

func (s *Services) Close() error

Close shuts down all services

func (*Services) Config

func (s *Services) Config() *domain.RuntimeConfig

Config returns the runtime configuration

func (*Services) EmbeddingService

func (s *Services) EmbeddingService() driven.EmbeddingService

EmbeddingService returns the current embedding service (may be nil)

func (*Services) LLMService

func (s *Services) LLMService() driven.LLMService

LLMService returns the current LLM service (may be nil)

func (*Services) SetEmbeddingService

func (s *Services) SetEmbeddingService(svc driven.EmbeddingService)

SetEmbeddingService updates the embedding service. Closes the old service if present. Updates config flags.

func (*Services) SetLLMService

func (s *Services) SetLLMService(svc driven.LLMService)

SetLLMService updates the LLM service. Closes the old service if present. Updates config flags.

func (*Services) ValidateAndSetEmbedding

func (s *Services) ValidateAndSetEmbedding(ctx context.Context, svc driven.EmbeddingService) error

ValidateAndSetEmbedding validates connectivity before setting embedding service

func (*Services) ValidateAndSetLLM

func (s *Services) ValidateAndSetLLM(ctx context.Context, svc driven.LLMService) error

ValidateAndSetLLM validates connectivity before setting LLM service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL