Custom Agent Parameter
User Documentation for Add/Edit Parameter Dialog
Overview
The Add/Edit Parameter dialog is used to configure parameters for the parameters of a custom agent. This dialog allows you to specify details such as the parameter name, type, parameter type, description, enum values, default value, and whether the parameter is required.
Screen Elements
-
Header Section:
- Title: "Update Parameter" (or "Add parameter" when adding a new parameter)
-
Fields:
- Parameter Name:
- Description: The name of the parameter.
- Input: Text field.
- Type:
- Description: The data type of the parameter (e.g., String, Number).
- Input: Dropdown menu.
- Parameter Type:
- Description: Indicates whether the parameter is a query parameter, header, etc.
- Input: Dropdown menu.
- Description:
- Description: A brief description of the parameter and its usage.
- Input: Text area.
- Enum (comma separated, optional):
- Description: A comma-separated list of acceptable values for the parameter.
- Input: Text field.
- Default Value (optional):
- Description: The default value for the parameter if none is provided.
- Input: Text field.
- Required:
- Description: Specifies whether the parameter is mandatory.
- Input: Dropdown menu (True/False).
- Parameter Name:
-
Action Buttons:
- Save:
- Function: Saves the parameter configuration.
- Cancel:
- Function: Discards changes and closes the dialog.
- Save:
How to Use
-
Adding a New Parameter:
- Click on "Add Parameter" from the Edit Agent screen.
- Fill in the details in the dialog:
- Enter the Parameter Name.
- Select the Type from the dropdown.
- Choose the Parameter Type from the dropdown.
- Provide a Description for the parameter.
- If applicable, enter acceptable values in the Enum field, separated by commas.
- Set a Default Value if needed.
- Indicate whether the parameter is Required by selecting True or False.
- Click "Save" to add the parameter.
-
Editing an Existing Parameter:
- Click on the three vertical dots in the Action column next to the parameter and select "Edit".
- Update the necessary details in the dialog:
- Modify the Parameter Name if required.
- Change the Type if necessary.
- Update the Parameter Type if applicable.
- Edit the Description to better explain the parameter’s purpose.
- Adjust the Enum values if needed.
- Change the Default Value if applicable.
- Update the Required field to True or False as necessary.
- Click "Save" to apply the changes.
-
Discarding Changes:
- If you do not wish to save the changes, click "Cancel" to close the dialog without saving.
Notes
- Ensure all required fields are filled out correctly before saving.
- Use the Description field to clearly explain the purpose and usage of the parameter.
- Enum values should be provided only if the parameter can take specific, predefined values.
This documentation should help you effectively use the Add/Edit Parameter dialog to configure parameters for your custom agents. If you have any further questions or need assistance, please refer to the help section or contact support.