Documentation
¶
Index ¶
- func NewAgentService(agentRepo interfaces.AgentRepository, logger *zap.Logger) *agentService
- func NewChatService(chatRepo interfaces.ChatRepository, agentRepo interfaces.AgentRepository, ...) *chatService
- func NewTaskService(taskRepo interfaces.TaskRepository, logger *zap.Logger) *taskService
- func NewToolService(toolRepo interfaces.ToolRepository, logger *zap.Logger) *toolService
- type AgentService
- type ChatService
- type ProviderService
- type TaskService
- type ToolService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAgentService ¶
func NewAgentService(agentRepo interfaces.AgentRepository, logger *zap.Logger) *agentService
func NewChatService ¶
func NewChatService( chatRepo interfaces.ChatRepository, agentRepo interfaces.AgentRepository, providerRepo interfaces.ProviderRepository, toolRepo interfaces.ToolRepository, cfg *config.Config, logger *zap.Logger, ) *chatService
func NewTaskService ¶ added in v1.2.3
func NewTaskService(taskRepo interfaces.TaskRepository, logger *zap.Logger) *taskService
func NewToolService ¶
func NewToolService(toolRepo interfaces.ToolRepository, logger *zap.Logger) *toolService
Types ¶
type AgentService ¶
type AgentService interface {
ListAgents(ctx context.Context) ([]*entities.Agent, error)
GetAgent(ctx context.Context, id string) (*entities.Agent, error)
CreateAgent(ctx context.Context, agent *entities.Agent) error
UpdateAgent(ctx context.Context, agent *entities.Agent) error
DeleteAgent(ctx context.Context, id string) error
}
type ChatService ¶
type ChatService interface {
ListChats(ctx context.Context) ([]*entities.Chat, error)
GetChat(ctx context.Context, id string) (*entities.Chat, error)
GetActiveChat(ctx context.Context) (*entities.Chat, error)
SetActiveChat(ctx context.Context, chatID string) error
CreateChat(ctx context.Context, agentID, name string) (*entities.Chat, error)
UpdateChat(ctx context.Context, id, agentID, name string) (*entities.Chat, error)
DeleteChat(ctx context.Context, id string) error
SendMessage(ctx context.Context, id string, message *entities.Message) (*entities.Message, error)
}
type ProviderService ¶
type ProviderService interface {
ListProviders(ctx context.Context) ([]*entities.Provider, error)
GetProvider(ctx context.Context, id string) (*entities.Provider, error)
}
func NewProviderService ¶
func NewProviderService(providerRepo interfaces.ProviderRepository, logger *zap.Logger) ProviderService
type TaskService ¶ added in v1.2.3
type TaskService interface {
ListTasks(ctx context.Context) ([]*entities.Task, error)
GetTask(ctx context.Context, id string) (*entities.Task, error)
CreateTask(ctx context.Context, task *entities.Task) error
UpdateTask(ctx context.Context, task *entities.Task) error
DeleteTask(ctx context.Context, id string) error
}
type ToolService ¶
type ToolService interface {
ListTools() ([]*entities.Tool, error)
ListToolData(ctx context.Context) ([]*entities.ToolData, error)
GetToolData(ctx context.Context, id string) (*entities.ToolData, error)
CreateToolData(ctx context.Context, tool *entities.ToolData) error
UpdateToolData(ctx context.Context, tool *entities.ToolData) error
DeleteToolData(ctx context.Context, id string) error
}
Click to show internal directories.
Click to hide internal directories.