Understand package structure and management in the C3 AI Agentic Platform.
A package in the C3 AI Agentic Platform is a way to bundle code so other applications can use it. In a maintenance context, packages could include data models for assets and sensors, logic for condition monitoring, and dashboards for tracking equipment health.Applications can be built from combining several packages or they can be built from a single package. The rest of this section will explain how to make the right choices for your application.What you need to know about packages:
You develop packages locally, publish them as versioned artifacts, and then other applications can import them.
Each package needs a manifest file to identify it, and can include source code, tests, configuration, and other resources.
Package structure in C3 AI is flexible, but there are conventions that help you organize your project by triggering built-in automations.
C3 AI packages use directory structure to activate platform features. Each directory serves a specific purpose, triggering different automations when files are placed in the correct locations.A typical package includes these directories:
In a maintenance context, a wind farm application might use two packages:
An Equipment Monitoring package containing turbine models, failure prediction, and alert dashboards
A Performance Analytics package containing efficiency calculations and trend visualizations
Here’s how these packages would be structured:The Equipment Monitoring package includes everything needed for real-time monitoring: types for representing turbines and sensors, methods for predicting failures and handling alerts, and a dashboard UI for operators.The Performance Analytics package focuses on efficiency tracking with its own types for metrics, methods for trend analysis, and visualization components.These feature sets can then be reused in other applications, like a Solar Farm or Battery Storage system that needs similar monitoring and analytics capabilities.
You start by creating packages within your application, each focused on a specific business capability. In our Wind Farm example, we have packages for monitoring equipment health and analyzing performance:
Once your packages are ready for sharing, you publish them as artifacts. An artifact is a versioned snapshot of your package that includes all its code, configuration, and resources. This versioning ensures other applications can depend on specific, stable versions of your packages:
Published artifacts become available to other applications in your organization. For example, a Solar Farm application might need the same equipment monitoring and performance analysis capabilities. Instead of building these features from scratch, it can import the existing artifacts:This lifecycle enables you to build a library of reusable features across your organization. As you develop new applications, you can combine existing packages in different ways to quickly implement common functionality while focusing your development efforts on unique requirements.
Artifacts only become available to you once they’re published to the C3 AI Agentic Platform and you have the necessary permissions to import them.
Now that you understand the basic concepts of packages in the C3 AI Agentic Platform, the following pages will explain certain concepts in greater detail: