feat(agents): add prompts for write tests tool
What does this merge request do and why?
Related to Migrate Duo Chat Tools: WriteTests (gitlab-org/gitlab#475049 - closed)
Based on gitlab-org/gitlab!163449 (merged) in GitLab rails.
In this MR, we:
- Migrate the
WriteTests
tool to use the AIGW
How to set up and validate locally
- Run AI Gateway with Anthropic debug:
ANTHROPIC_LOG=debug poetry run ai_gateway
- Enable
prompt_migration_write_tests
feature flag on Rails (::Feature.enable(:prompt_migration_write_tests)
) - Perform
/tests
slash command in Duo Chat, eg../tests def hello_world(): print("Hello, World!")
- Verify that
/v1/prompts/chat/write_tests
endpoint is called in the AIGW - Verify that the correct prompt is sent to Anthropic