Documentation
¶
Overview ¶
Package batchrun runs the agent over a JSONL prompt dataset in parallel workers and writes trajectories, a checkpoint and tool statistics
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InterruptedError ¶
InterruptedError reports a run a signal stopped before it finished
func (*InterruptedError) Error ¶
func (e *InterruptedError) Error() string
Error names the interruption
func (*InterruptedError) ExitCode ¶
func (e *InterruptedError) ExitCode() int
ExitCode is the status a shell reports for a process the signal ended
type Options ¶
type Options struct {
DatasetFile string
BatchSize int
RunName string
Distribution string
// Tool calling iterations one prompt may take
MaxIterations int
BaseURL string
APIKey string
Model string
NumWorkers int
Verbose bool
// System prompt the agents run under that is never written to a trajectory
EphemeralSystemPrompt string
LogPrefixChars int
ProvidersAllowed []string
ProvidersIgnored []string
ProvidersOrder []string
ProviderSort string
ReasoningConfig map[string]any
PrefillMessages []any
// First entries of the dataset to keep, zero keeping all of them
MaxSamples int
}
Options are the settings of one batch run