plugin

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the MIT license.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidPreset

func IsValidPreset(preset string) bool

Types

type ModelRegister

type ModelRegister struct {
	sync.RWMutex
	// contains filtered or unexported fields
}
var KaitoModelRegister ModelRegister

func (*ModelRegister) Has

func (reg *ModelRegister) Has(name string) bool

func (*ModelRegister) ListModelNames

func (reg *ModelRegister) ListModelNames() []string

func (*ModelRegister) MustGet

func (reg *ModelRegister) MustGet(name string) model.Model

func (*ModelRegister) Register

func (reg *ModelRegister) Register(r *Registration)

Register allows model to be added

type Registration

type Registration struct {
	// Name is the name of the model. It is used as a key to register and
	// retrieve the model metadata and instance.
	Name string

	// Instance is the actual model instance that implements the model.Model
	// interface. It is used to retrieve the model's compute/storage requirements
	// and runtime parameters.
	Instance model.Model
}

Registration is a struct that holds the name and an instance of a struct that implements the model.Model interface. It is used to register and manage different model instances within the Kaito framework.

Jump to

Keyboard shortcuts

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