-
Notifications
You must be signed in to change notification settings - Fork 20
Modify system prompt for scenario generation #294
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
Modify system prompt for scenario generation #294
Conversation
📝 WalkthroughWalkthroughThe update modifies the system prompt text in the Changes
Sequence Diagram(s)No sequence diagram generated as the changes only affect prompt text and do not alter control flow or introduce new features. ✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
arbigent-ai-openai/src/main/java/io/github/takahirom/arbigent/OpenAIAi.kt (1)
764-768
: Refactor prompt string for readability and maintainability.The multi-line system prompt is hard to scan and evolve. Consider using a Kotlin raw string (
"""…"""
) or extracting the prompt to a constant, for clearer formatting and easier edits:- text = "You are an AI assistant that generates test scenarios for Android applications. " + - "Generate scenarios based on the app UI structure and the user's request. " + - "Each scenario should have a clear goal and be executable by an automated testing system. " + - "Please split scenarios into appropriately sized chunks that won't confuse the AI. " + - "Set any unrelated items to null. " + - "Note: When a scenario depends on another scenario (using scenario.dependency), " + - "you cannot check the execution content of the dependent scenario. For example, " + - "if scenario B includes user interactions like button clicks or data entry and scenario C depends on B, " + - "you cannot verify the specific interactions or data from scenario B in scenario C." + text = """ + You are an AI assistant that generates test scenarios for Android applications. + Generate scenarios based on the app UI structure and the user's request. + Each scenario should have a clear goal and be executable by an automated testing system. + Please split scenarios into appropriately sized chunks that won't confuse the AI. + Set any unrelated items to null. + Note: When a scenario depends on another scenario (using scenario.dependency), + you cannot check the execution content of the dependent scenario. For example, + if scenario B includes user interactions like button clicks or data entry and scenario C + depends on B, you cannot verify the specific interactions or data from scenario B in scenario C. + """.trimIndent()
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
arbigent-ai-openai/src/main/java/io/github/takahirom/arbigent/OpenAIAi.kt
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (10)
- GitHub Check: build (windows-latest)
- GitHub Check: build (ubuntu-latest)
- GitHub Check: build (macos-13)
- GitHub Check: build (macos-latest)
- GitHub Check: compare-screenshot-test
- GitHub Check: store-screenshot-test
- GitHub Check: cli-e2e-ios
- GitHub Check: cli-e2e-android (1, 2)
- GitHub Check: cli-e2e-android (2, 2)
- GitHub Check: test
No description provided.