Skip to main content

A static code analyzer that provides automated quality control for Dialogflow CX Agents

Project description

Dialogflow CX Linter


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.

Quick Start

In order to use this library, you first need to go through the following steps:

  1. Select or create a Cloud Platform project.
  2. Enable billing for your project.
  3. Setup Authentication.

Mac/Linux

pip install virtualenv
virtualenv <your-env>
source <your-env>/bin/activate
<your-env>/bin/pip install google-cloud-dialogflow-cx

Windows


pip install virtualenv
virtualenv <your-env>
<your-env>\Scripts\activate
<your-env>\Scripts\pip.exe install google-cloud-dialogflow-cx

Authentication

Authentication can vary depending on how and where you are interacting with Dialogfow CX Linter.

Google Colab

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!

Rules

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!

Examples

Code samples and snippets live in the examples/ folder.

Supported Python Versions

Python >= 3.8

Contributing

We welcome any contributions or feature requests you would like to submit!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the Apache 2.0 License. See LICENSE for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cxlint-1.0.4.tar.gz (136.2 kB view hashes)

Uploaded Source

Built Distribution

cxlint-1.0.4-py3-none-any.whl (53.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page