setupcheck

package
v1.0.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	CategoryDefaults     = "defaults"
	CategoryRegistration = "registration"
	CategoryHealth       = "health"
)
View Source
const DefaultOllamaSuggestModel = "qwen2.5:7b"

Variables

This section is empty.

Functions

func ProbeLocalOllamaAPI

func ProbeLocalOllamaAPI(ctx context.Context) (baseURL string, ok bool)

func ResolveMaxOutputTokens added in v0.29.0

func ResolveMaxOutputTokens(states []statetype.BackendRuntimeState, provider, model string) int

Types

type BackendCheck

type BackendCheck struct {
	ID              string   `json:"id"`
	Name            string   `json:"name"`
	Type            string   `json:"type"`
	BaseURL         string   `json:"baseUrl"`
	Status          string   `json:"status"`
	Reachable       bool     `json:"reachable"`
	DefaultProvider bool     `json:"defaultProvider"`
	ModelCount      int      `json:"modelCount"`
	ChatModelCount  int      `json:"chatModelCount"`
	ChatModels      []string `json:"chatModels,omitempty"`
	Error           string   `json:"error,omitempty"`
	Hint            string   `json:"hint,omitempty"`
}

type Input

type Input struct {
	DefaultModel           string
	DefaultProvider        string
	DefaultAltModel        string
	DefaultAltProvider     string
	DefaultChain           string
	HITLPolicyName         string
	States                 []statetype.BackendRuntimeState
	RegisteredBackendCount *int
	RegisteredBackends     []runtimetypes.Backend
	ResolvedFrom           map[string]string
}

func GatherInput

func GatherInput(ctx context.Context, db libdbexec.DBManager, states []statetype.BackendRuntimeState, workspaceID string) (Input, error)

type Issue

type Issue struct {
	Code       string `json:"code"`
	Severity   string `json:"severity"`
	Category   string `json:"category,omitempty"`
	Message    string `json:"message"`
	FixPath    string `json:"fixPath,omitempty"`
	CLICommand string `json:"cliCommand,omitempty"`
}

type Result

type Result struct {
	DefaultModel           string            `json:"defaultModel"`
	DefaultProvider        string            `json:"defaultProvider"`
	DefaultMaxOutputTokens int               `json:"defaultMaxOutputTokens,omitempty"`
	DefaultChain           string            `json:"defaultChain"`
	HITLPolicyName         string            `json:"hitlPolicyName"`
	BackendCount           int               `json:"backendCount"`
	ReachableBackendCount  int               `json:"reachableBackendCount"`
	Issues                 []Issue           `json:"issues"`
	BackendChecks          []BackendCheck    `json:"backendChecks,omitempty"`
	ResolvedFrom           map[string]string `json:"resolvedFrom,omitempty"`
}

func EnrichResultWithOllamaProbe

func EnrichResultWithOllamaProbe(ctx context.Context, r Result) Result

func Evaluate

func Evaluate(in Input) Result

func OverlayEffectiveDefaults added in v0.33.0

func OverlayEffectiveDefaults(res Result, model, provider string) Result

func (Result) BlockingIssues

func (r Result) BlockingIssues() []Issue

func (Result) Ready

func (r Result) Ready() bool

func (Result) Summary

func (r Result) Summary() string

Jump to

Keyboard shortcuts

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