models

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

README

Models Attributes

This package defines the data structures for models served by an endpoint, as reported by the model server's /v1/models API.

ModelDataCollection

A collection of ModelData entries describing the models exposed by an endpoint.

  • Key: ModelsAttributeKey (/v1/models)
  • Fields (per ModelData):
    • ID: Model identifier.
    • Parent: Parent model identifier (optional, e.g. for adapters).

Producers

The following plugins produce this attribute:

  • models-data-extractor (Data Layer): Extracts the list of served models from the endpoint's /v1/models API response.

Documentation

Index

Constants

View Source
const (
	ModelsExtractorType = "models-data-extractor"
)

Variables

View Source
var ModelsAttributeKey = plugin.NewDataKey("/v1/models", ModelsExtractorType)

Functions

This section is empty.

Types

type ModelData

type ModelData struct {
	ID     string `json:"id"`
	Parent string `json:"parent,omitempty"`
}

ModelData defines model's data returned from /v1/models API

func (*ModelData) String

func (m *ModelData) String() string

String returns a string representation of the model info

type ModelDataCollection

type ModelDataCollection []ModelData

ModelDataCollection defines models' data returned from /v1/models API

func (ModelDataCollection) Clone

Clone returns a full copy of the object

func (ModelDataCollection) String

func (m ModelDataCollection) String() string

Jump to

Keyboard shortcuts

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