Test a skill in Cloudera Agent Studio to check how an agent loads and applies the skill before you publish the skill to the skill catalog.
The editor of a skill has a Test button. When you click the button, Agent Studio opens the test chat of your authoring session in a new browser tab. The Testing Mode tag next to the Chat title in the tab identifies the chat as a test chat.
Because you open the test chat from a skill, the chat does not limit the agent selector to one agent. You select the agent to chat with. When the agent uses a skill, the conversation displays a Loading skill row while the agent reads the skill, and a Loaded skill row after the agent reads the skill.
The test chat has the following elements:
- New chat button and Search conversations field.
- All sessions link, and the list of your conversations, grouped by period, for example TODAY and PREVIOUS 7 DAYS.
- The agent selector at the top of the conversation.
- The message box, with the mode, model, and space selectors.
- The Agent, Canvas, Todos, and Space tabs, and the Context indicator at the right of the chat.
-
Launch the Cloudera Agent Studio console.
-
In the left navigation pane, click .
The Skills page is displayed. Your draft skills are listed in the My Drafts section.
-
Optional: To display the skills in a table, click
at the top right of the page.
The table has the columns Name, Version, Scope, Authored by, and Updated.
-
In the row of the skill, click
, and then click Edit.
The editor of the skill opens. The
Save,
Test, and
Validate buttons are displayed at the top right of the editor. See
Editing a skill.
-
Click Test.
The test chat opens in a new browser tab. The header displays Agent Studio, the Chat title, and the Testing Mode tag. The conversation displays the message How can I help you today?.
If the chat does not open, the message Could not open the test harness or the message Test harness is not ready yet is displayed in Agent Studio. Click Test again, or reach out to your Administrator.
-
In the agent selector at the top of the conversation, select the agent to chat with.
-
Optional: To select how the agent acts on your request, in the message box, click the mode selector, and then click a mode.
- Ask: Ask before acting. You approve each change. This mode is selected by default.
- Auto: Act without asking.
To switch the mode with the keyboard, press Shift+Tab.
-
Optional: To select the model, in the message box, click the model selector, and then click a model.
The list contains the doc (default) model and other models that are available to the agent.
-
Enter a message that matches the description of the skill, and then press Enter.
The message box displays the text Message agent name…, where agent name is the name of the selected agent. To add a new line, press Shift+Enter.
-
Review the response of the agent.
- The Loading skill row and the Loaded skill row identify the skill that the agent reads.
- The response of the agent indicates whether the agent follows the instructions of the skill.
-
To start another conversation, click New chat.
To return to an earlier conversation, click the conversation in the list at the left. To find a conversation, enter text in Search conversations.
-
To change the skill, close the tab of the test chat, and then edit the skill in the editor. See Editing a skill.
The test chat displays the conversation with the agent, and the conversation is listed under TODAY in the list of conversations. When the agent uses the skill, the Loaded skill row is displayed in the response.
If the agent does not use the skill, revise the description in the SKILL.md file so that it matches the request, and then test the skill again.