runtime

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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