config

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BenchmarkConfig deprecated

type BenchmarkConfig = EvalConfig

Deprecated: Use EvalConfig instead.

type EvalConfig added in v0.31.0

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

EvalConfig is the main configuration with functional options.

Deprecated alias: BenchmarkConfig is provided for backward compatibility.

func NewBenchmarkConfig deprecated

func NewBenchmarkConfig(spec *models.EvalSpec, opts ...Option) *EvalConfig

Deprecated: Use NewEvalConfig instead.

func NewEvalConfig added in v0.31.0

func NewEvalConfig(spec *models.EvalSpec, opts ...Option) *EvalConfig

NewEvalConfig creates a new configuration with options

func (*EvalConfig) ContextRoot added in v0.31.0

func (c *EvalConfig) ContextRoot() string

func (*EvalConfig) FixtureDir added in v0.31.0

func (c *EvalConfig) FixtureDir() string

func (*EvalConfig) LogPath added in v0.31.0

func (c *EvalConfig) LogPath() string

func (*EvalConfig) OutputPath added in v0.31.0

func (c *EvalConfig) OutputPath() string

func (*EvalConfig) Spec added in v0.31.0

func (c *EvalConfig) Spec() *models.EvalSpec

Getters

func (*EvalConfig) SpecDir added in v0.31.0

func (c *EvalConfig) SpecDir() string

func (*EvalConfig) TranscriptDir added in v0.31.0

func (c *EvalConfig) TranscriptDir() string

func (*EvalConfig) Verbose added in v0.31.0

func (c *EvalConfig) Verbose() bool

type Option

type Option func(*EvalConfig)

Option is a functional option for EvalConfig

func WithContextRoot

func WithContextRoot(path string) Option

WithContextRoot is an alias for WithFixtureDir for compatibility

func WithFixtureDir

func WithFixtureDir(path string) Option

WithFixtureDir sets the fixture directory (for loading resource files)

func WithLogPath

func WithLogPath(path string) Option

WithLogPath sets the log file path

func WithOutputPath

func WithOutputPath(path string) Option

WithOutputPath sets the output file path

func WithSpecDir

func WithSpecDir(path string) Option

WithSpecDir sets the spec directory (for resolving test patterns)

func WithTranscriptDir

func WithTranscriptDir(path string) Option

WithTranscriptDir sets the directory for per-task transcript files

func WithVerbose

func WithVerbose(enabled bool) Option

WithVerbose enables verbose output

Jump to

Keyboard shortcuts

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