probe

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: MIT Imports: 6 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

func NewEngine

func NewEngine(cfg *config.Config) *Engine

func NewEngineWithBaseline added in v1.2.0

func NewEngineWithBaseline(cfg *config.Config, bl *baseline.Baseline) *Engine

func (*Engine) RunAll

func (e *Engine) RunAll() ([]Result, error)

type Result

type Result struct {
	Provider     string        `json:"provider"`
	Model        string        `json:"model"`
	TTFT         time.Duration `json:"ttft_ms"`
	TotalLatency time.Duration `json:"latency_ms"`
	TokenCount   int           `json:"token_count"`
	TokensPerSec float64       `json:"tokens_per_sec"`
	Status       Status        `json:"status"`
	Error        string        `json:"error,omitempty"`
	Timestamp    time.Time     `json:"timestamp"`
}

type Status

type Status string
const (
	StatusHealthy  Status = "healthy"
	StatusDegraded Status = "degraded"
	StatusError    Status = "error"
)

Jump to

Keyboard shortcuts

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