Documentation
¶
Index ¶
- type Services
- func (s *Services) Close() error
- func (s *Services) Config() *domain.RuntimeConfig
- func (s *Services) EmbeddingService() driven.EmbeddingService
- func (s *Services) LLMService() driven.LLMService
- func (s *Services) SetEmbeddingService(svc driven.EmbeddingService)
- func (s *Services) SetLLMService(svc driven.LLMService)
- func (s *Services) ValidateAndSetEmbedding(ctx context.Context, svc driven.EmbeddingService) error
- func (s *Services) ValidateAndSetLLM(ctx context.Context, svc driven.LLMService) error
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) 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 ¶
ValidateAndSetEmbedding validates connectivity before setting embedding service
func (*Services) ValidateAndSetLLM ¶
ValidateAndSetLLM validates connectivity before setting LLM service