plugin

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 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     string
	Instance model.Model
}

Jump to

Keyboard shortcuts

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