runner

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUpdateCallback

func GetUpdateCallback() func()

GetUpdateCallback returns a callback function that updates aix

Types

type Options

type Options struct {
	OpenaiApiKey       string `yaml:"openai_api_key"`
	Prompt             string `yaml:"prompt"`
	Gpt3               bool   `yaml:"gpt3"`
	Gpt4               bool   `yaml:"gpt4"`
	Update             bool   `yaml:"update"`
	DisableUpdateCheck bool   `yaml:"disable_update_check"`
	Output             string `yaml:"output"`
	Jsonl              bool   `yaml:"jsonl"`
	Verbose            bool   `yaml:"verbose"`
	Silent             bool   `yaml:"silent"`
	NoColor            bool   `yaml:"no_color"`
	Version            bool   `yaml:"version"`
}

Options contains the configuration options for tuning the enumeration process.

func ParseOptions

func ParseOptions() *Options

ParseOptions parses the command line flags provided by a user

type Result

type Result struct {
	Timestamp  string `json:"timestamp"`
	Prompt     string `json:"prompt"`
	Completion string `json:"completion"`
	Model      string `json:"model"`
}

func (*Result) JSON

func (result *Result) JSON() string

type Runner

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

Runner contains the internal logic of the program

func NewRunner

func NewRunner(options *Options) (*Runner, error)

NewRunner instance

func (*Runner) Run

func (r *Runner) Run() (*Result, error)

Run the instance

Jump to

Keyboard shortcuts

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