Using the Prompt library in IBM watsonx Code Assistant
Use the Prompt library in watsonx Code Assistantâ„¢.
Before you begin
- Read about watsonx Code Assistant as described in Using IBM watsonx Code Assistant in the IBM App Connect Enterprise Toolkit.
- Open the watsonx Code Assistant chat view as described in Opening the IBM watsonx Code Assistant view in the IBM App Connect Enterprise Toolkit.
- Set up watsonx Code Assistant on IBM Cloud and create an API key as described in Setting up watsonx Code Assistant on IBM Cloud and creating an API key.
- Log in to IBM watsonx Code Assistant as described in Logging in to IBM watsonx Code Assistant in the IBM App Connect Enterprise Toolkit with your API key.
About this task
You can use the Prompt library in the watsonx Code Assistant to submit predefined prompts from the Prompt Library, or to submit code-related questions.
Procedure
- In the watsonx Code Assistant view in the IBM App Connect
Enterprise Toolkit, click Open menu. A menu is displayed with the menu items and .
- Select Prompt library to open the Prompt library.
If you want to submit a predefined prompt from the Prompt Library, complete step 3 to step 6 inclusive.
- Choose a prompt and click Copy to clipboard.
- Click >to open the last chat session that you created.
- Paste the prompt that you copied into the dialog box.
- Click >to run the predefined
prompt. Your prompt is displayed in the Chat session under the participant You.
The response is displayed under the participant watsonx.
If you want to submit a code-related question, complete step 7 and step 8.
- Click >to run the prompt. The response to your prompt question is displayed in the Chat session under the participant You. The response is displayed under the participant watsonx.