params

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ParamsJobName = "params-inference"

Variables

This section is empty.

Functions

func Lib

func Lib() (fs.FS, error)

Types

type Input

type Input struct {
	Spec     string
	Out      string
	WorkDir  string
	Model    string
	Limit    int
	Force    bool
	Progress inference.Progress
}

type Output

type Output struct {
	Out     string   `json:"out"`
	WorkDir string   `json:"workDir"`
	Files   []string `json:"files"`
}

func Exec

func Exec(ctx context.Context, in Input) (Output, error)

type ParamsJob

type ParamsJob struct {
	// contains filtered or unexported fields
}

func NewParamsJob

func NewParamsJob(renderer Renderer) *ParamsJob

func (*ParamsJob) Build

func (j *ParamsJob) Build(ctx context.Context, spec inference.SpecDocument, previous inference.Results) ([]inference.Task, error)

func (*ParamsJob) Name

func (j *ParamsJob) Name() string

func (*ParamsJob) ValidateOutput

func (j *ParamsJob) ValidateOutput(ctx context.Context, task inference.Task, output []byte) ([]byte, []string, error)

type Progress

type Progress = inference.Progress

type Renderer

type Renderer interface {
	inference.BundleRenderer
	RenderCheck(ctx context.Context, template string, input, output []byte) ([]byte, []string, error)
}

Jump to

Keyboard shortcuts

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