It seems like you encountered an issue with the AgentCore Optimization service flagging a Japanese system prompt as unsafe, likely due to its prompt injection protection mechanisms. This is an interesting problem because it suggests that the safety checks might not be fully adapted for non-English prompts or may have false positives in certain languages.
Here are some steps and considerations you can take:
1. Report the Issue
Reach out to AWS support or file a bug report with your findings. Provide them with:
- The exact prompt that caused the issue.
- Details of how you're using AgentCore Optimization (e.g., via CLI, SDK).
- Any relevant error messages and logs.
2. Check for Known Issues
Before reporting, check if there are any known issues or limitations documented by AWS regarding non-English prompts in their services. Sometimes these details can be found in the service documentation or release notes.
3. Workaround: Use English Prompts Temporarily
If you need to proceed with optimization and testing, try using an equivalent English prompt for now. This will help you validate whether the issue is language-specific or related to something else in your setup.
4. **Analyze the Prompt Content
Read the full article at DEV Community
Want to create content about this topic? Use Nemati AI tools to generate articles, social posts, and more.

![[AINews] The Unreasonable Effectiveness of Closing the Loop](/_next/image?url=https%3A%2F%2Fmedia.nemati.ai%2Fmedia%2Fblog%2Fimages%2Farticles%2F600e22851bc7453b.webp&w=3840&q=75)



