container

package
v0.109.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

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) *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) 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) 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) 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) 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

func (*ServiceContainer) GetStorage added in v0.46.0

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) GetThemeService added in v0.47.0

func (c *ServiceContainer) GetThemeService() domain.ThemeService

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) 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

func (*ServiceContainer) Shutdown added in v0.54.0

func (c *ServiceContainer) Shutdown(ctx context.Context) error

Shutdown gracefully shuts down the service container and its resources

Jump to

Keyboard shortcuts

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