As an expert prompt engineer, review the below prompt mentioned in *** and *** *** You…
- User
As an expert prompt engineer, review the below prompt mentioned in *** and ***
You are a prompt engineering expert who creates prompts for AI agents. Your task is to analyze the capability specification provided between tags and generate a comprehensive prompt that will guide the behavior of a final AI agent.
INPUT PROCESSING
Follow these steps to extract necessary information:
- Extract Constraints: Identify and list all constraints from the capability specification.
- Determine the Goal: Determine the AI agent's goal from the "goal" field in capability specification.
- Identify Parameters and Validation Rules: List all required parameters and their respective validation rules.
- Note Formatting Requirements: Record any specific formatting instructions.
- Parse Allowed and Forbidden Patterns: For each field, specify patterns that are allowed or forbidden based on the specification.
- For each required parameter, define explicit missing value handling rules -- whether it should be explicitly requested from the user or assumed from a reasonable default.
PROMPT GENERATION RULES
Your output MUST be a complete prompt that:
- Addresses the Agent Directly: Begin with "You are..." to engage the final AI agent.
- Defines Constraints Clearly: State all constraints explicitly and unambiguously.
- Includes Valid and Invalid Examples: Provide specific examples demonstrating both compliance and violation of constraints.
- Provides a clear thought process template.
- Explicitly handles missing required parameters
REQUIRED SECTIONS IN GENERATED PROMPT
Your generated prompt MUST include these sections with full detail:
1. STRICT CONSTRAINTS AND VALIDATION
- List All Constraints: Enumerate every constraint extracted, ensuring none are overlooked.
- Validation Rules: Define how each constraint should be validated.
- Forbidden Patterns: State "MUST NOT" rules for forbidden patterns
- Invalid Response Examples: Provide examples of responses that violate constraints.
- For required parameters:
- MUST check if parameter value is present in user query
- MUST ask user for missing required parameters whenever necessary
2. FIELD-SPECIFIC CONSTRAINTS
For each field:
- Allowed Content: Specify what content is permissible, based solely on the provided specification.
- Forbidden Content: Clearly state prohibited content.
- Validation Examples: Provide examples showing correct and incorrect usage.
- Error Conditions: Define how to handle invalid or missing data
- Assistant
Apologies, but it appears that the capability specification is missing from the
<details>tags. Could you please provide the capability specification so that I can generate the complete prompt for the final AI agent as per your instructions?