virtual

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package virtual implements the Virtual Models service.

Responsibilities:

  • CRUD operations for Agent records
  • Validation of virtual model configurations
  • Aggregated limits and capabilities across the fall-through list

Index

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 virtual model records.

func New

func New(database *db.DB, providerSvc *provider.Service, modelInfoSvc *modelinfo.Service) *Service

New constructs a new virtual-model Service.

func (*Service) Create

func (s *Service) Create(vm *models.VirtualModel) error

Create creates a new virtual model with a slug ID derived from its name.

func (*Service) Delete

func (s *Service) Delete(id string) error

Delete removes a virtual model by ID.

func (*Service) Get

func (s *Service) Get(id string) (*models.VirtualModel, error)

Get retrieves a virtual model by ID.

func (*Service) List

func (s *Service) List() ([]*models.VirtualModel, error)

List returns all virtual models.

func (*Service) Update

func (s *Service) Update(id string, vm *models.VirtualModel) error

Update updates an existing virtual model.

Jump to

Keyboard shortcuts

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