Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Here, we are using the .json format to define a new instance of the ActionRuntime Type which will be created when you provision your package. See the DTI Guide: Data Integration on C3 AI Suite for more about the .json seed data format.

Some important fields are:

  • runtimeVersion: This field specifies the version of python to use. Currently, the latest supported python is 3.6.
  • modules: This is a dictionary defining packages and their requested versions. Any conda package should be specified like 'conda.<package_name>'. Then the version is specified with "=<version>". Any pip package should be specified like 'pip.<package_name>', then the version is specified with "==<version>". The difference in the version specification is down to the difference between how conda and pip expect version specifications on the command line.
  • repositories: This field contains a list of conda repository names or URLs.

Once you've defined your ActionRuntime .json file, you need to place it in the seed data of your C3 AI Suite package. It should go in the file <repository_dir>/<package_dir>/seed/ActionRuntime/<runtime_id>.json where <repository_dir> and <package_dir> are the repository and package directories of your package, and <runtime_id> is a name matching the 'id' field of the .json file. For instance, in the example above, this would be py-deeplearning.json.

See the DTI Guide: Data Integration on C3 AI Suite for more about the .json seed data format.

Checking Your Defined ActionRuntimes

...