Create and Manage Conversations in Polyspace Copilot
Polyspace® Copilot provides capabilities powered by generative AI to assist in the use of Polyspace products and static analysis workflows.
Use Polyspace Copilot to assist you with Polyspace workflows and analysis review. Polyspace Copilot can:
Help with Polyspace configuration or product capabilities.
Explain Polyspace code analysis results.
Explain risks and fixes for Polyspace code analysis results.
Generate code suggestions to address Polyspace code analysis results.
Polyspace Copilot opens in the sidebar of Polyspace as You Code™ after you sign into your MathWorks® account.
Create and Manage Polyspace Copilot Conversations
Start conversations with Polyspace Copilot through the Polyspace Copilot pane or from results review panes while performing review of analysis results.
Create Conversations in the Polyspace Copilot Pane
You can create and manage conversations through the Polyspace Copilot pane.
Click the add a conversation icon
to start a new general Polyspace
Copilot conversation where you can ask questions regarding your
code, coding standards, or Polyspace related questions.Click the discard current conversation icon
to close a conversation.Click the manage conversation history icon
to show a list of all active
Polyspace Copilot conversations.
Create Conversations in Polyspace Copilot Using Polyspace Results
After you run a Polyspace as You Code analysis, results appear in the Problems pane. Select a result to view additional information about the result in the Result Details pane. The Result Details pane shows:
The specific coding rule violation or defect Polyspace identified
Additional information about the violation or defect such as the category of the violation and a description.
A code proposal to fix the violation or defect
A suggested justification that you can apply to the violation or defect
When the Polyspace Copilot icon
appears in the Result
Details pane, click the icon to create a Polyspace Copilot
conversation. You can ask Polyspace Copilot for more information about the
violation or defect and about the proposed fix.
Similarly, you can ask Polyspace Copilot about a Polyspace result in the code editor. After Polyspace
as You Code completes an analysis, results are indicated in the code editor
with a red underline. When you place your cursor on a red underline in the code
editor, the show code actions icon
appears next to the code. Click the icon and
then select Chat with Polyspace Copilot for the coding rule
or defect you are interested in. This creates a new conversation explaining the
result and a generated code fix.
Provide Feedback
You can provide feedback about Polyspace Copilot generated responses by using the buttons at the top of every response.

If the generated feedback is helpful, click the thumbs-up icon . If the answer is unhelpful, click the thumbs-down icon . Clicking the thumbs-down icon opens a dialog box where you can provide additional feedback
