agentgroup

package
v0.1.29 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package agentgroup provides the AgentGroupManageService for managing agent groups.

Index

Constants

This section is empty.

Variables

View Source
var ErrAgentGroupAlreadyExists = errors.New("agent group already exists")

ErrAgentGroupAlreadyExists is returned when an agent group with the same name already exists.

Functions

This section is empty.

Types

type ManageService

type ManageService struct {
	// contains filtered or unexported fields
}

ManageService implements port.AgentGroupManageUsecase. You can inject repository or other dependencies as needed.

func NewManageService

func NewManageService(
	agentgroupUsecase domainport.AgentGroupUsecase,
	agentUsecase domainport.AgentUsecase,
	logger *slog.Logger,
) *ManageService

NewManageService returns a new ManageService.

func (*ManageService) CreateAgentGroup

func (s *ManageService) CreateAgentGroup(
	ctx context.Context,
	agentGroup *v1.AgentGroup,
) (*v1.AgentGroup, error)

CreateAgentGroup creates a new agent group.

func (*ManageService) DeleteAgentGroup

func (s *ManageService) DeleteAgentGroup(
	ctx context.Context,
	name string,
) error

DeleteAgentGroup marks an agent group as deleted.

func (*ManageService) GetAgentGroup

func (s *ManageService) GetAgentGroup(ctx context.Context, name string) (*v1.AgentGroup, error)

GetAgentGroup returns an agent group by its UUID.

func (*ManageService) ListAgentGroups

func (s *ManageService) ListAgentGroups(
	ctx context.Context,
	options *model.ListOptions,
) (*v1.ListResponse[v1.AgentGroup], error)

ListAgentGroups returns a paginated list of agent groups.

func (*ManageService) ListAgentsByAgentGroup added in v0.1.22

func (s *ManageService) ListAgentsByAgentGroup(
	ctx context.Context,
	agentGroupName string,
	options *model.ListOptions,
) (*v1.ListResponse[v1.Agent], error)

ListAgentsByAgentGroup implements port.AgentGroupManageUsecase.

func (*ManageService) UpdateAgentGroup

func (s *ManageService) UpdateAgentGroup(
	ctx context.Context,
	name string,
	apiAgentGroup *v1.AgentGroup,
) (*v1.AgentGroup, error)

UpdateAgentGroup updates an existing agent group.

Jump to

Keyboard shortcuts

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