Test a tool in your authoring session test harness in Cloudera Agent Studio before publishing to confirm that it starts and returns the expected results.
When you click Test, Agent Studio opens the test harness of your
authoring session in a new browser tab. The test harness is a chat interface in which you
send messages and review the responses.
- You must have the Admin or Builder role, which includes the
test_authoring_playground action. For more information, see
User roles and capabilities.
- You must create or upload the tool. For more information, see
Creating a tool or
Uploading a tool artifact.
- The tool must pass validation. For more information, see
Validating a tool.
- Your browser must allow Agent Studio to open pop-up windows. If the browser blocks the
new tab, the test harness does not open.
-
Launch the Cloudera Agent Studio console.
-
In the left navigation pane, click .
The Tools page is displayed.
-
In the row of the tool, click
to open the actions menu, and then click Edit.
If an authoring session is not ready, a progress dialog opens. Wait for the dialog to
close.
The tool editor opens.
-
In the tool editor, click Test.
The test harness opens in a new browser tab. If Agent Studio cannot open the test
harness, a message appears, for example Test harness is not ready yet or
Could not open the test harness. Wait a moment, and then click
Test again.
-
In the test harness, enter a message in the message box.
The message box displays the text
Message name…, and the page displays the text
How can I help you today?
-
Send the message, and then review the response.
-
Optional: If the tool needs settings that the manifest declares in
user_config, enter the values.
-
Close the test harness tab, and then return to the tool editor.
The test harness displays the response to your message.