Skip to content

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

RRethy
Copy link

@RRethy RRethy commented May 10, 2025

Close #204

Add --additional-prompt-template-file-paths flag with templates that are appended to the default prompt file when generating the prompt.

@RRethy RRethy force-pushed the Add_support_for_additional_prompt_template_files branch from 1692090 to 4c4efac Compare May 10, 2025 03:13
Copy link
Member

@droot droot left a 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")
Copy link
Member

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.

@RRethy RRethy force-pushed the Add_support_for_additional_prompt_template_files branch from 4c4efac to e89890d Compare May 12, 2025 18:23
@RRethy
Copy link
Author

RRethy commented May 12, 2025

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.

@droot
Copy link
Member

droot commented May 12, 2025

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support additional prompt files
3 participants