Documentation
¶
Index ¶
- type ServiceContainer
- func (c *ServiceContainer) BackgroundShellService() *services.BackgroundShellService
- func (c *ServiceContainer) GetA2AAgentService() domain.A2AAgentService
- func (c *ServiceContainer) GetAgentManager() domain.AgentManager
- func (c *ServiceContainer) GetAgentService() domain.AgentService
- func (c *ServiceContainer) GetBackgroundJobManager() *services.BackgroundJobManager
- func (c *ServiceContainer) GetBackgroundTaskRegistry() domain.BackgroundTaskRegistry
- func (c *ServiceContainer) GetBackgroundTaskService() domain.BackgroundTaskService
- func (c *ServiceContainer) GetBackupManager() filewriterdomain.BackupManager
- func (c *ServiceContainer) GetChatService() domain.ChatService
- func (c *ServiceContainer) GetChunkManager() filewriterdomain.ChunkManager
- func (c *ServiceContainer) GetConfig() *config.Config
- func (c *ServiceContainer) GetConfigService() *services.ConfigService
- func (c *ServiceContainer) GetConversationOptimizer() domain.ConversationOptimizer
- func (c *ServiceContainer) GetConversationRepository() domain.ConversationRepository
- func (c *ServiceContainer) GetFileService() domain.FileService
- func (c *ServiceContainer) GetFileWriter() filewriterdomain.FileWriter
- func (c *ServiceContainer) GetGatewayManager() domain.GatewayManager
- func (c *ServiceContainer) GetImageService() domain.ImageService
- func (c *ServiceContainer) GetMCPManager() domain.MCPManager
- func (c *ServiceContainer) GetMessageQueue() domain.MessageQueue
- func (c *ServiceContainer) GetModelService() domain.ModelService
- func (c *ServiceContainer) GetParameterExtractor() *tools.ParameterExtractor
- func (c *ServiceContainer) GetPathValidator() filewriterdomain.PathValidator
- func (c *ServiceContainer) GetPricingService() domain.PricingService
- func (c *ServiceContainer) GetSessionRolloverManager() *services.SessionRolloverManager
- func (c *ServiceContainer) GetShortcutRegistry() *shortcuts.Registry
- func (c *ServiceContainer) GetStateManager() domain.StateManager
- func (c *ServiceContainer) GetStorage() storage.ConversationStorage
- func (c *ServiceContainer) GetTaskRetentionService() domain.TaskRetentionService
- func (c *ServiceContainer) GetTheme() domain.Theme
- func (c *ServiceContainer) GetThemeService() domain.ThemeService
- func (c *ServiceContainer) GetTitleGenerator() *services.ConversationTitleGenerator
- func (c *ServiceContainer) GetToolRegistry() *tools.Registry
- func (c *ServiceContainer) GetToolService() domain.ToolService
- func (c *ServiceContainer) GetViper() *viper.Viper
- func (c *ServiceContainer) Logger() *zap.Logger
- func (c *ServiceContainer) PricingService() domain.PricingService
- func (c *ServiceContainer) RegisterShortcut(shortcut shortcuts.Shortcut)
- func (c *ServiceContainer) Shutdown(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceContainer ¶
type ServiceContainer struct {
// contains filtered or unexported fields
}
ServiceContainer manages all application dependencies
func NewServiceContainer ¶
func NewServiceContainer(cfg *config.Config, v ...*viper.Viper) *ServiceContainer
NewServiceContainer creates a new service container with all dependencies
func (*ServiceContainer) BackgroundShellService ¶ added in v0.81.0
func (c *ServiceContainer) BackgroundShellService() *services.BackgroundShellService
BackgroundShellService returns the background shell service
func (*ServiceContainer) GetA2AAgentService ¶ added in v0.49.0
func (c *ServiceContainer) GetA2AAgentService() domain.A2AAgentService
GetA2AAgentService returns the A2A agent service
func (*ServiceContainer) GetAgentManager ¶ added in v0.67.0
func (c *ServiceContainer) GetAgentManager() domain.AgentManager
func (*ServiceContainer) GetAgentService ¶ added in v0.36.0
func (c *ServiceContainer) GetAgentService() domain.AgentService
func (*ServiceContainer) GetBackgroundJobManager ¶ added in v0.46.0
func (c *ServiceContainer) GetBackgroundJobManager() *services.BackgroundJobManager
GetBackgroundJobManager returns the background job manager
func (*ServiceContainer) GetBackgroundTaskRegistry ¶ added in v0.101.0
func (c *ServiceContainer) GetBackgroundTaskRegistry() domain.BackgroundTaskRegistry
GetBackgroundTaskRegistry returns the unified background task registry (the single tracker that owns both A2A tasks and background bash shells). Callers that need only the narrower A2A or shell view can use the returned value as a domain.A2ATaskTracker or domain.ShellTracker.
func (*ServiceContainer) GetBackgroundTaskService ¶ added in v0.53.3
func (c *ServiceContainer) GetBackgroundTaskService() domain.BackgroundTaskService
GetBackgroundTaskService returns the background task service (may be nil if A2A is not enabled)
func (*ServiceContainer) GetBackupManager ¶ added in v0.38.0
func (c *ServiceContainer) GetBackupManager() filewriterdomain.BackupManager
func (*ServiceContainer) GetChatService ¶
func (c *ServiceContainer) GetChatService() domain.ChatService
func (*ServiceContainer) GetChunkManager ¶ added in v0.38.0
func (c *ServiceContainer) GetChunkManager() filewriterdomain.ChunkManager
func (*ServiceContainer) GetConfig ¶
func (c *ServiceContainer) GetConfig() *config.Config
func (*ServiceContainer) GetConfigService ¶ added in v0.41.0
func (c *ServiceContainer) GetConfigService() *services.ConfigService
GetConfigService returns the config service
func (*ServiceContainer) GetConversationOptimizer ¶ added in v0.68.1
func (c *ServiceContainer) GetConversationOptimizer() domain.ConversationOptimizer
func (*ServiceContainer) GetConversationRepository ¶
func (c *ServiceContainer) GetConversationRepository() domain.ConversationRepository
func (*ServiceContainer) GetFileService ¶
func (c *ServiceContainer) GetFileService() domain.FileService
func (*ServiceContainer) GetFileWriter ¶ added in v0.38.0
func (c *ServiceContainer) GetFileWriter() filewriterdomain.FileWriter
func (*ServiceContainer) GetGatewayManager ¶ added in v0.56.0
func (c *ServiceContainer) GetGatewayManager() domain.GatewayManager
GetGatewayManager returns the gateway manager
func (*ServiceContainer) GetImageService ¶ added in v0.57.0
func (c *ServiceContainer) GetImageService() domain.ImageService
func (*ServiceContainer) GetMCPManager ¶ added in v0.79.0
func (c *ServiceContainer) GetMCPManager() domain.MCPManager
GetMCPManager returns the MCP manager (may be nil if MCP is not enabled)
func (*ServiceContainer) GetMessageQueue ¶ added in v0.53.0
func (c *ServiceContainer) GetMessageQueue() domain.MessageQueue
func (*ServiceContainer) GetModelService ¶
func (c *ServiceContainer) GetModelService() domain.ModelService
func (*ServiceContainer) GetParameterExtractor ¶ added in v0.38.0
func (c *ServiceContainer) GetParameterExtractor() *tools.ParameterExtractor
func (*ServiceContainer) GetPathValidator ¶ added in v0.38.0
func (c *ServiceContainer) GetPathValidator() filewriterdomain.PathValidator
File writer service getters
func (*ServiceContainer) GetPricingService ¶ added in v0.86.0
func (c *ServiceContainer) GetPricingService() domain.PricingService
func (*ServiceContainer) GetSessionRolloverManager ¶ added in v0.101.0
func (c *ServiceContainer) GetSessionRolloverManager() *services.SessionRolloverManager
func (*ServiceContainer) GetShortcutRegistry ¶ added in v0.42.0
func (c *ServiceContainer) GetShortcutRegistry() *shortcuts.Registry
func (*ServiceContainer) GetStateManager ¶ added in v0.27.0
func (c *ServiceContainer) GetStateManager() domain.StateManager
New service getters
func (*ServiceContainer) GetStorage ¶ added in v0.46.0
func (c *ServiceContainer) GetStorage() storage.ConversationStorage
GetStorage returns the conversation storage
func (*ServiceContainer) GetTaskRetentionService ¶ added in v0.53.3
func (c *ServiceContainer) GetTaskRetentionService() domain.TaskRetentionService
GetTaskRetentionService returns the task retention service (may be nil if A2A is not enabled)
func (*ServiceContainer) GetTheme ¶
func (c *ServiceContainer) GetTheme() domain.Theme
func (*ServiceContainer) GetThemeService ¶ added in v0.47.0
func (c *ServiceContainer) GetThemeService() domain.ThemeService
func (*ServiceContainer) GetTitleGenerator ¶ added in v0.46.0
func (c *ServiceContainer) GetTitleGenerator() *services.ConversationTitleGenerator
GetTitleGenerator returns the conversation title generator
func (*ServiceContainer) GetToolRegistry ¶ added in v0.14.1
func (c *ServiceContainer) GetToolRegistry() *tools.Registry
func (*ServiceContainer) GetToolService ¶
func (c *ServiceContainer) GetToolService() domain.ToolService
func (*ServiceContainer) GetViper ¶ added in v0.41.0
func (c *ServiceContainer) GetViper() *viper.Viper
GetViper returns the Viper instance
func (*ServiceContainer) Logger ¶ added in v0.100.4
func (c *ServiceContainer) Logger() *zap.Logger
Logger returns the logger instance for this container
func (*ServiceContainer) PricingService ¶ added in v0.86.0
func (c *ServiceContainer) PricingService() domain.PricingService
func (*ServiceContainer) RegisterShortcut ¶ added in v0.42.0
func (c *ServiceContainer) RegisterShortcut(shortcut shortcuts.Shortcut)
RegisterCommand allows external registration of commands