Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPromptOrPromptPathRequired = errors.New("either prompt or prompt-path must be provided") ErrOutpathRewriteConflict = errors.New("outpath and rewrite cannot be provided together") ErrOutpathMultipleFiles = errors.New("outpath cannot be provided when multiple input files are provided") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type ConfirmFunc ¶
type GenerativeAIHandlerFactoryFunc ¶
type GenerativeAIHandlerFactoryFunc func(model string) (openai.GenerativeAIClient, error)
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
func NewProcess ¶
func NewProcess(config *Config, confirmFunc ConfirmFunc) *Process
type RunOption ¶
type RunOption struct {
// contains filtered or unexported fields
}
RunOption holds options for running the Runner.
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner manages the execution of text processing tasks.
func New ¶
func New(config *Config, inputFiles []string, gaiFactory GenerativeAIHandlerFactoryFunc, confirmFunc ConfirmFunc) *Runner
New creates a new Runner instance.
Click to show internal directories.
Click to hide internal directories.