Similar to code linting, Dialogflow CX Agents can benefit from an automated linter to catch various common design defects when developing Agents.
The primary goal is to minimize common defects shipped to production by proactively catching and fixing them.
In order to use this library, you first need to go through the following steps:
- Select or create a Cloud Platform project.
- Enable billing for your project.
- Setup Authentication.
pip install virtualenv
virtualenv <your-env>
source <your-env>/bin/activate
<your-env>/bin/pip install google-cloud-dialogflow-cx
pip install virtualenv
virtualenv <your-env>
<your-env>\Scripts\activate
<your-env>\Scripts\pip.exe install google-cloud-dialogflow-cx
Authentication can vary depending on how and where you are interacting with Dialogfow CX Linter.
If you're using cxlint with a Google Colab notebook, you can add the following to the top of your notebook for easy authentication
project_id = '<YOUR_GCP_PROJECT_ID>'
# this will launch an interactive prompt that allows you to auth with GCP in a browser
!gcloud auth application-default login --no-launch-browser
# this will set your active project to the `project_id` above
!gcloud auth application-default set-quota-project $project_id
After running the above, Colab will pick up your credentials from the environment. No need to use Service Account keys!
Curent list of rules that are being implemented for CX Linter.
If you have an idea for a new rule, please submit a Feature Request!
Code samples and snippets live in the examples/ folder.
Python >= 3.8
We welcome any contributions or feature requests you would like to submit!
- Fork the Project
- Create your Feature Branch (git checkout -b feature/AmazingFeature)
- Commit your Changes (git commit -m 'Add some AmazingFeature')
- Push to the Branch (git push origin feature/AmazingFeature)
- Open a Pull Request
Distributed under the Apache 2.0 License. See LICENSE for more information.