Versions in this module Expand all Collapse all v0 v0.6.0 Oct 30, 2026 Changes in this version + const DefaultDeadline + type Chat struct + func NewChat(settings port.SettingsRepository, models port.LLMFactory, ...) *Chat + func (uc *Chat) Execute(ctx context.Context, in ChatInput) (*ChatOutput, error) + func (uc *Chat) Status(ctx context.Context, orgID string) (Status, error) + type ChatInput struct + Credentials port.Credentials + OrgID string + Page domain.PageContext + Turns []domain.Turn + type ChatOutput struct + Reply string + Tools []domain.ToolTrace + type SettingsService struct + func NewSettingsService(repo port.SettingsRepository, models port.LLMFactory) *SettingsService + func (s *SettingsService) Delete(ctx context.Context, orgID string) error + func (s *SettingsService) Get(ctx context.Context, orgID string) (SettingsView, error) + func (s *SettingsService) Test(ctx context.Context, orgID string, in UpdateSettings) (TestResult, error) + func (s *SettingsService) Update(ctx context.Context, orgID, actor string, in UpdateSettings) (SettingsView, error) + type SettingsView struct + BaseURL string + EffectiveBaseURL string + EffectiveModel string + Enabled bool + HasKey bool + KeyHint string + KeyUnreadable bool + Model string + Provider string + Providers []domain.Provider + UpdatedAt *time.Time + UpdatedBy string + type Status struct + Enabled bool + Model string + Provider string + type TestResult struct + Error string + LatencyMs int64 + Model string + OK bool + type UpdateSettings struct + APIKey *string + BaseURL string + Enabled bool + Model string + Provider string