models

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package models defines model-discovery command behavior.

Index

Constants

This section is empty.

Variables

View Source
var ErrModelNotFound = errors.New("model not found")

Functions

func Inspect

func Inspect(cfg InspectConfig) error

func Invoke

func Invoke(cfg InvokeConfig) error

func List

func List(cfg ListConfig) error

func Pull

func Pull(cfg PullConfig) error

func QueryModel

func QueryModel(server, modelName string) (factoryapi.ModelDetail, error)

func RenderList

func RenderList(response factoryapi.ListModelsResponse, output io.Writer) error

func RenderModel

func RenderModel(model factoryapi.ModelDetail, output io.Writer) error

func RenderPull

func RenderPull(response factoryapi.ModelPullResponse, output io.Writer) error

Types

type InspectConfig

type InspectConfig struct {
	ModelName   string
	Server      string
	JSON        bool
	Verbose     bool
	Debug       bool
	Output      io.Writer
	Diagnostics io.Writer
}

type InvokeConfig

type InvokeConfig struct {
	ModelName   string
	Operation   string
	Text        string
	OutputPath  string
	Server      string
	JSON        bool
	Verbose     bool
	Debug       bool
	Output      io.Writer
	Diagnostics io.Writer
}

type ListConfig

type ListConfig struct {
	Server      string
	JSON        bool
	Verbose     bool
	Debug       bool
	Output      io.Writer
	Diagnostics io.Writer
}

type PullConfig

type PullConfig struct {
	ModelName   string
	Server      string
	JSON        bool
	Verbose     bool
	Debug       bool
	Output      io.Writer
	Diagnostics io.Writer
}

Jump to

Keyboard shortcuts

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