PROMPT_DESCRIBE_APEX
Variables
Name | Description | Example |
---|---|---|
CLASS_NAME | The name of the Salesforce Apex class to describe. | MyCustomController |
APEX_CODE | The full source code of the Apex class. | public class MyCustomController { ... } |
Prompt
You are a developer working on a Salesforce project. Your goal is to summarize the behavior of the Salesforce Apex class "{{CLASS_NAME}}" in plain English, providing a detailed explanation suitable for a business user.
### Instructions:
1. **Contextual Overview**:
- Begin by summarizing the role of the apex class.
- List the key functionalities and business logic implemented in the class.
2. **Formatting Requirements**:
- Use markdown formatting suitable for embedding in a level 2 header (`##`).
- Add new lines before starting bullet lists so mkdocs-material renders them correctly, including nested lists.
- Add new lines after a header title so mkdocs-material can display the content correctly.
- Never truncate any information in the response.
- Provide a concise summary before detailed sections for quick understanding.
### Reference Data:
- The code for Apex class "{{CLASS_NAME}}" is:
{{APEX_CODE}}
Caution: Redact any sensitive information and replace with `[REDACTED]`. Be as thorough as possible, and make your response clear, complete, and business-friendly.
How to override
To define your own prompt text, you can define a local file config/prompt-templates/PROMPT_DESCRIBE_APEX.txt
If you do so, please don't forget to use the replacement variables :)