If you come across any inaccurate or low-quality responses from AgentForce for Developers, we encourage you to report them to help us improve. Your feedback is invaluable in enhancing both our LLM and the overall system. To effectively debug the issue, it's essential that you include the final prompt.
Below are instructions for two ways to retrieve the final prompt. You can use either method:
- Retrieve the final prompt by enabling trace
- Retrieve the final prompt with the debug log
Trace
1. Turn on request tracing:
1). Open the.vscode/settings.json file.
2). Add:
"salesforce.einsteinForDevelopers.advanced": {
"trace": {
"request": true,
"response": true
}
}
- Submit a generation request.
- The prompt is written to a file called
trace.md in the workspace root.
Debug Log
1. Turn on debug logging for Einstein for Developers.
1. Click the Einstein icon at the bottom right corner, then select `Edit Einstein for Developers Settings`.
2. Toggle on `Einstein for Developers: Enable Debug Logging` as shown in the screenshot below:

- Reload the window by using the command:
Developer: Reload Window.
- Press
Command/Ctrl + Shift + P to open the command palette
- Select the command
Developer: Reload Window.
- Open the developer console by using the command:
Developer: Toggle Developer Tools .
- Press
Command/Ctrl + Shift + P to open the command palette
- Select the command
Developer: Toggle Developer Tools.
- In the filter input box, search for
ChatService: engineered prompt: to view the final prompt.

If you come across any inaccurate or low-quality responses from AgentForce for Developers, we encourage you to report them to help us improve. Your feedback is invaluable in enhancing both our LLM and the overall system. To effectively debug the issue, it's essential that you include the final prompt.
Below are instructions for two ways to retrieve the final prompt. You can use either method:
Trace
1. Turn on request tracing:1). Open the
.vscode/settings.jsonfile.2). Add:
trace.mdin the workspace root.Debug Log
1. Turn on debug logging for Einstein for Developers. 1. Click the Einstein icon at the bottom right corner, then select `Edit Einstein for Developers Settings`. 2. Toggle on `Einstein for Developers: Enable Debug Logging` as shown in the screenshot below:Developer: Reload Window.Command/Ctrl + Shift + Pto open the command paletteDeveloper: Reload Window.Developer: Toggle Developer Tools.Command/Ctrl + Shift + Pto open the command paletteDeveloper: Toggle Developer Tools.ChatService: engineered prompt:to view the final prompt.