Skip to content

Fix: Fix duplication in pormptfoo config file auto generation, change remaining arguments to args - #45

Open
dhl123 wants to merge 2 commits into
mainfrom
hl/fix_pr
Open

Fix: Fix duplication in pormptfoo config file auto generation, change remaining arguments to args#45
dhl123 wants to merge 2 commits into
mainfrom
hl/fix_pr

Conversation

@dhl123

@dhl123 dhl123 commented Aug 21, 2026

Copy link
Copy Markdown
Member

Summary

  • Fix two args-migration bugs. Fixed the path in policy_cross_validation.md, README.md, and the two docs guides.

  • Promptfoo config updates weren't idempotent.generate_promptfoo_config.py re-appended the tool-parameter block on every run, so the prompt grew each update. Added a sentinel marker and a strip step so the block is replaced instead of duplicated.

  • Added readme for hr-agent example. It includes installation, etc guidance.

Closes

#46

dhl123 added 2 commits August 21, 2026 14:34
Signed-off-by: Hailun Ding <hailun.ding@ibm.com>
Signed-off-by: Hailun Ding <hailun.ding@ibm.com>
@dhl123 dhl123 changed the title Fix: Fix tool parms' duplication in pormptfoo config file auto generation, change remaining arguments to args Fix: Fix duplication in pormptfoo config file auto generation, change remaining arguments to args Aug 21, 2026
@dhl123
dhl123 marked this pull request as ready for review August 21, 2026 19:19
@dhl123
dhl123 requested a review from araujof as a code owner August 21, 2026 19:19
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.

[BUG]: Incomplete args migration & Promptfoo config updates aren't idempotent

1 participant