-
Notifications
You must be signed in to change notification settings - Fork 341
Add support for additional prompt template files #205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add support for additional prompt template files #205
Conversation
1692090
to
4c4efac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, I have minor comments.
cmd/main.go
Outdated
@@ -257,6 +259,7 @@ func (opt *Options) bindCLIFlagsToViper(f *pflag.FlagSet) error { | |||
f.IntVar(&opt.MaxIterations, "max-iterations", opt.MaxIterations, "maximum number of iterations agent will try before giving up") | |||
f.StringVar(&opt.KubeConfigPath, "kubeconfig", opt.KubeConfigPath, "path to kubeconfig file") | |||
f.StringVar(&opt.PromptTemplateFilePath, "prompt-template-file-path", opt.PromptTemplateFilePath, "path to custom prompt template file") | |||
f.StringArrayVar(&opt.AdditionalPromptTemplateFilePaths, "additional-prompt-template-file-paths", opt.AdditionalPromptTemplateFilePaths, "additional paths to custom prompt template files") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name is getting super verbose :) One option is to name it extra-prompt-paths
(extra replaces additional pretty well)
Thinking out loud here: if the paths point to a directory, we can slurp all files from that directory (this could be added later as well doesn't have to be this PR).
PS: We will introduce short flags soon to help with the verbosity.
4c4efac
to
e89890d
Compare
Addressed comments. However, it's no longer a feature I require so feel free to close the PR if you don't want to add this feature yet. |
Good to know. What changed ? |
Close #204
Add
--additional-prompt-template-file-paths
flag with templates that are appended to the default prompt file when generating the prompt.