Documentation
¶
Overview ¶
Package agent implements the Agent Service.
Responsibilities:
- CRUD operations for Agent records
- Validation of agent configurations
- Calculation of agent metadata (max tokens)
Index ¶
- type Service
- func (s *Service) Create(agent *models.Agent) error
- func (s *Service) Delete(id string) error
- func (s *Service) Get(id string) (*models.Agent, error)
- func (s *Service) List() ([]*models.Agent, error)
- func (s *Service) MigrateIDs(credSvc *credential.Service, tokenSvc *token.Service) (int, error)
- func (s *Service) Update(id string, agent *models.Agent) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service manages agent records.
func (*Service) MigrateIDs ¶
MigrateIDs renames UUID-era agents to slug IDs and rewrites every reference: credentials data.agent_id and token AllowedModels entries. Idempotent: re-runs find no UUID rows and change nothing.
Click to show internal directories.
Click to hide internal directories.